From 48f2bbb1d1696b7faa77f2f760c78a502e93da7a Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 23 Oct 2014 13:53:23 +0800 Subject: [PATCH 01/21] merge new code --- build/cocos2d_libs.xcodeproj/project.pbxproj | 24 ++ cocos/2d/CCCamera.cpp | 26 +- cocos/2d/CCCamera.h | 16 +- cocos/3d/CCFrustum.cpp | 91 +++++ cocos/3d/CCFrustum.h | 80 ++++ cocos/3d/CCOBB.cpp | 26 +- cocos/3d/CCOBB.h | 13 + cocos/3d/CCPlane.cpp | 100 +++++ cocos/3d/CCPlane.h | 103 ++++++ cocos/3d/CCRay.cpp | 16 + cocos/3d/CCRay.h | 4 + cocos/3d/CCSprite3D.cpp | 4 + .../Classes/Camera3DTest/Camera3DTest.cpp | 347 +++++++++++++++--- .../Classes/Camera3DTest/Camera3DTest.h | 86 +++++ 14 files changed, 872 insertions(+), 64 deletions(-) create mode 100755 cocos/3d/CCFrustum.cpp create mode 100755 cocos/3d/CCFrustum.h create mode 100755 cocos/3d/CCPlane.cpp create mode 100755 cocos/3d/CCPlane.h diff --git a/build/cocos2d_libs.xcodeproj/project.pbxproj b/build/cocos2d_libs.xcodeproj/project.pbxproj index 51b3dddc11..e43372ae36 100644 --- a/build/cocos2d_libs.xcodeproj/project.pbxproj +++ b/build/cocos2d_libs.xcodeproj/project.pbxproj @@ -1761,6 +1761,14 @@ 50ED2BE519BEAF7900A0AB90 /* UIEditBoxImpl-win32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50ED2BDE19BEAF7900A0AB90 /* UIEditBoxImpl-win32.cpp */; }; 50ED2BE619BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50ED2BDF19BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp */; }; 50ED2BE719BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50ED2BDF19BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp */; }; + 5E05054619F8C61A0003BED0 /* CCFrustum.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E05054219F8C61A0003BED0 /* CCFrustum.cpp */; }; + 5E05054719F8C61A0003BED0 /* CCFrustum.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E05054219F8C61A0003BED0 /* CCFrustum.cpp */; }; + 5E05054819F8C61A0003BED0 /* CCFrustum.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E05054319F8C61A0003BED0 /* CCFrustum.h */; }; + 5E05054919F8C61A0003BED0 /* CCFrustum.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E05054319F8C61A0003BED0 /* CCFrustum.h */; }; + 5E05054A19F8C61A0003BED0 /* CCPlane.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E05054419F8C61A0003BED0 /* CCPlane.cpp */; }; + 5E05054B19F8C61A0003BED0 /* CCPlane.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E05054419F8C61A0003BED0 /* CCPlane.cpp */; }; + 5E05054C19F8C61A0003BED0 /* CCPlane.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E05054519F8C61A0003BED0 /* CCPlane.h */; }; + 5E05054D19F8C61A0003BED0 /* CCPlane.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E05054519F8C61A0003BED0 /* CCPlane.h */; }; A07A4CAF1783777C0073F6A7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1551A342158F2AB200E66CFE /* Foundation.framework */; }; B2165EEA19921124000BE3E6 /* CCPrimitiveCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B257B45E198A353E00D9A687 /* CCPrimitiveCommand.cpp */; }; B217703C1977ECB4009EE11B /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B217703B1977ECB4009EE11B /* IOKit.framework */; }; @@ -2906,6 +2914,10 @@ 50FCEB9018C72017004AD434 /* WidgetReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WidgetReader.cpp; sourceTree = ""; }; 50FCEB9118C72017004AD434 /* WidgetReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WidgetReader.h; sourceTree = ""; }; 50FCEB9218C72017004AD434 /* WidgetReaderProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WidgetReaderProtocol.h; sourceTree = ""; }; + 5E05054219F8C61A0003BED0 /* CCFrustum.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCFrustum.cpp; sourceTree = ""; }; + 5E05054319F8C61A0003BED0 /* CCFrustum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCFrustum.h; sourceTree = ""; }; + 5E05054419F8C61A0003BED0 /* CCPlane.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCPlane.cpp; sourceTree = ""; }; + 5E05054519F8C61A0003BED0 /* CCPlane.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCPlane.h; sourceTree = ""; }; A07A4D641783777C0073F6A7 /* libcocos2d iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libcocos2d iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; B217703B1977ECB4009EE11B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; B217703D1977ECC1009EE11B /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; @@ -5075,6 +5087,10 @@ B29594B81926D61F003EEF37 /* 3d */ = { isa = PBXGroup; children = ( + 5E05054219F8C61A0003BED0 /* CCFrustum.cpp */, + 5E05054319F8C61A0003BED0 /* CCFrustum.h */, + 5E05054419F8C61A0003BED0 /* CCPlane.cpp */, + 5E05054519F8C61A0003BED0 /* CCPlane.h */, B60C5BD219AC68B10056FBDE /* CCBillBoard.cpp */, B60C5BD319AC68B10056FBDE /* CCBillBoard.h */, 15AE17E419AAD2F700C27E9E /* CCAABB.cpp */, @@ -5393,6 +5409,7 @@ 299754F6193EC95400A54AC3 /* ObjectFactory.h in Headers */, 50ABBD991925AB4100A911A9 /* CCGLProgramStateCache.h in Headers */, 5034CA3D191D591100CE6051 /* ccShader_PositionColor.frag in Headers */, + 5E05054C19F8C61A0003BED0 /* CCPlane.h in Headers */, 15AE18FB19AAD35000C27E9E /* CCColliderDetector.h in Headers */, 1A570280180BCC900088DEC7 /* CCSprite.h in Headers */, 292DB14719B4574100A80320 /* UIEditBoxImpl-ios.h in Headers */, @@ -5520,6 +5537,7 @@ 15AE1B6619AADA9900C27E9E /* UIImageView.h in Headers */, 15AE1BB419AADFEF00C27E9E /* HttpResponse.h in Headers */, 15AE1A8519AAD40300C27E9E /* b2Joint.h in Headers */, + 5E05054819F8C61A0003BED0 /* CCFrustum.h in Headers */, 15AE1A8D19AAD40300C27E9E /* b2RevoluteJoint.h in Headers */, 50ABBE291925AB6F00A911A9 /* CCAutoreleasePool.h in Headers */, 299CF1FD19A434BC00C378C1 /* ccRandom.h in Headers */, @@ -5691,6 +5709,7 @@ 15AE192619AAD35100C27E9E /* TriggerObj.h in Headers */, 50ABBE2E1925AB6F00A911A9 /* ccCArray.h in Headers */, 15B3707B19EE414C00ABE682 /* AssetsManagerEx.h in Headers */, + 5E05054D19F8C61A0003BED0 /* CCPlane.h in Headers */, 15AE1B9119AADA9A00C27E9E /* UIWidget.h in Headers */, 50ABC0041926664800A911A9 /* CCLock-apple.h in Headers */, B29A7DFE19EE1B7700872B35 /* IkConstraintData.h in Headers */, @@ -5912,6 +5931,7 @@ 15B3708B19EE414C00ABE682 /* Manifest.h in Headers */, 1A570213180BCBF40088DEC7 /* CCProgressTimer.h in Headers */, B37510821823ACA100B3BA6A /* CCPhysicsJointInfo_chipmunk.h in Headers */, + 5E05054919F8C61A0003BED0 /* CCFrustum.h in Headers */, 1A570217180BCBF40088DEC7 /* CCRenderTexture.h in Headers */, 15AE1ABB19AAD40300C27E9E /* b2EdgeAndPolygonContact.h in Headers */, 15AE198719AAD36400C27E9E /* WidgetReaderProtocol.h in Headers */, @@ -6603,6 +6623,7 @@ 15AE1B6719AADA9900C27E9E /* UIScale9Sprite.cpp in Sources */, 292DB14319B4574100A80320 /* UIEditBoxImpl-android.cpp in Sources */, 15AE1A5219AAD40300C27E9E /* b2Draw.cpp in Sources */, + 5E05054619F8C61A0003BED0 /* CCFrustum.cpp in Sources */, 3828C09F19EB8ACA002AB57B /* coded_stream.cc in Sources */, 50ED2BE419BEAF7900A0AB90 /* UIEditBoxImpl-win32.cpp in Sources */, 50ABBE1F1925AB6F00A911A9 /* atitc.cpp in Sources */, @@ -6667,6 +6688,7 @@ 15AE198819AAD36A00C27E9E /* ButtonReader.cpp in Sources */, 15AE1A6319AAD40300C27E9E /* b2Island.cpp in Sources */, 15AE1A8419AAD40300C27E9E /* b2Joint.cpp in Sources */, + 5E05054A19F8C61A0003BED0 /* CCPlane.cpp in Sources */, 50ABBD601925AB0000A911A9 /* Vec4.cpp in Sources */, 50ABC05F1926664800A911A9 /* CCApplication-mac.mm in Sources */, B29A7E2119EE1B7700872B35 /* PolygonBatch.cpp in Sources */, @@ -6807,6 +6829,7 @@ 15AE193A19AAD35100C27E9E /* CCArmatureDataManager.cpp in Sources */, 3EACC9A519F5014D00EB3C5E /* CCLight.cpp in Sources */, 15AE1B7A19AADA9A00C27E9E /* UIScrollView.cpp in Sources */, + 5E05054B19F8C61A0003BED0 /* CCPlane.cpp in Sources */, 1A570076180BC5A10088DEC7 /* CCActionGrid3D.cpp in Sources */, 15AE19B219AAD39700C27E9E /* SliderReader.cpp in Sources */, 15AE1B7E19AADA9A00C27E9E /* UIText.cpp in Sources */, @@ -6996,6 +7019,7 @@ 1A5702EB180BCE750088DEC7 /* CCTileMapAtlas.cpp in Sources */, 1A5702EF180BCE750088DEC7 /* CCTMXLayer.cpp in Sources */, 15AE1BA519AADFDF00C27E9E /* UIHBox.cpp in Sources */, + 5E05054719F8C61A0003BED0 /* CCFrustum.cpp in Sources */, 1A5702F3180BCE750088DEC7 /* CCTMXObjectGroup.cpp in Sources */, 15AE1BAF19AADFDF00C27E9E /* UILayoutManager.cpp in Sources */, 15AE182119AAD2F700C27E9E /* CCBundleReader.cpp in Sources */, diff --git a/cocos/2d/CCCamera.cpp b/cocos/2d/CCCamera.cpp index 27dd0284db..706ac0b446 100644 --- a/cocos/2d/CCCamera.cpp +++ b/cocos/2d/CCCamera.cpp @@ -69,6 +69,8 @@ Camera::Camera() : _cameraFlag(1) , _scene(nullptr) , _viewProjectionDirty(true) +, _frustumDirty(true) +, _enableFrustumCull(true) { } @@ -96,6 +98,7 @@ const Mat4& Camera::getViewMatrix() const if (memcmp(viewInv.m, _viewInv.m, count) != 0) { _viewProjectionDirty = true; + _frustumDirty = true; _viewInv = viewInv; _view = viewInv.getInversed(); } @@ -202,6 +205,7 @@ bool Camera::initPerspective(float fieldOfView, float aspectRatio, float nearPla } #endif _viewProjectionDirty = true; + _frustumDirty = true; return true; } @@ -222,7 +226,7 @@ bool Camera::initOrthographic(float zoomX, float zoomY, float nearPlane, float f } #endif _viewProjectionDirty = true; - + _frustumDirty = true; return true; } @@ -245,6 +249,26 @@ void Camera::unproject(const Size& viewport, Vec3* src, Vec3* dst) const dst->set(screen.x, screen.y, screen.z); } +void Camera::enableFrustumCull(bool bEnalbe, bool bClipZ) +{ + _enableFrustumCull = bEnalbe; + _frustum.setClipZ(bClipZ); +} + +bool Camera::visibleInFrustum(const AABB& aabb) const +{ + if (_enableFrustumCull) + { + if (_frustumDirty) + { + _frustum.initFrustum(this); + _frustumDirty = false; + } + return !_frustum.isOutFrustum(aabb); + } + return true; +} + void Camera::onEnter() { if (_scene == nullptr) diff --git a/cocos/2d/CCCamera.h b/cocos/2d/CCCamera.h index aa95b15064..0dbbd63acc 100644 --- a/cocos/2d/CCCamera.h +++ b/cocos/2d/CCCamera.h @@ -25,10 +25,10 @@ THE SOFTWARE. #define _CCCAMERA_H__ #include "2d/CCNode.h" +#include "3d/CCFrustum.h" NS_CC_BEGIN -//class Ray; class Scene; enum class CameraFlag @@ -128,6 +128,16 @@ public: */ void unproject(const Size& viewport, Vec3* src, Vec3* dst) const; + /** + * Enable frustum culling + */ + void enableFrustumCull(bool bEnalbe, bool bClipZ); + + /** + * Is this aabb visible in frustum + */ + bool visibleInFrustum(const AABB& aabb)const; + //override virtual void onEnter() override; virtual void onExit() override; @@ -164,7 +174,9 @@ protected: float _farPlane; mutable bool _viewProjectionDirty; unsigned short _cameraFlag; // camera flag - + mutable Frustum _frustum; // camera frustum + mutable bool _frustumDirty; + bool _enableFrustumCull; static Camera* _visitingCamera; friend class Director; diff --git a/cocos/3d/CCFrustum.cpp b/cocos/3d/CCFrustum.cpp new file mode 100755 index 0000000000..bc468c8da4 --- /dev/null +++ b/cocos/3d/CCFrustum.cpp @@ -0,0 +1,91 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#include "3d/CCFrustum.h" +#include "2d/CCCamera.h" +NS_CC_BEGIN + +bool Frustum::initFrustum(const Camera* pCamera) +{ + _bInit = true; + createPlane(pCamera); + return true; +} +bool Frustum::isOutFrustum(const AABB& aabb) const +{ + if (_bInit) + { + Vec3 point; + + int nplane = _bClipZ ? 6 : 4; + for (int i = 0; i < nplane; i++) { + const Vec3& normal = _plane[i].getNormal(); + point.x = normal.x < 0 ? aabb._max.x : aabb._min.x; + point.y = normal.y < 0 ? aabb._max.y : aabb._min.y; + point.z = normal.z < 0 ? aabb._max.z : aabb._min.z; + if (_plane[i].getSide(point) == Plane::FRONT_PLANE ) + return true; + + } + } + return false; +} + +bool Frustum::isOutFrustum(const OBB& obb) const +{ + if (_bInit) + { + Vec3 point; + + int nplane = _bClipZ ? 6 : 4; + + for (int i = 0; i < nplane; i++) { + const Vec3& normal = _plane[i].getNormal(); + + point = obb._center; + point = normal.dot(obb._xAxis) > 0 ? point - obb._extentX : point + obb._extentX; + point = normal.dot(obb._yAxis) > 0 ? point - obb._extentY : point + obb._extentY; + point = normal.dot(obb._zAxis) > 0 ? point - obb._extentZ : point + obb._extentZ; + + if (_plane[i].getSide(point) == Plane::FRONT_PLANE) + return true; + } + } + return false; +} + +void Frustum::createPlane(const Camera* pcamera) +{ + const Mat4& mat = pcamera->getViewProjectionMatrix(); + //ref http://www.lighthouse3d.com/tutorials/view-frustum-culling/clip-space-approach-extracting-the-planes/ + //extract frustum plane + _plane[0].initPlane(-Vec3(mat.m[3] + mat.m[0], mat.m[7] + mat.m[4], mat.m[11] + mat.m[8]), (mat.m[15] + mat.m[12]));//left + _plane[1].initPlane(-Vec3(mat.m[3] - mat.m[0], mat.m[7] - mat.m[4], mat.m[11] - mat.m[8]), (mat.m[15] - mat.m[12]));//right + _plane[2].initPlane(-Vec3(mat.m[3] + mat.m[1], mat.m[7] + mat.m[5], mat.m[11] + mat.m[9]), (mat.m[15] + mat.m[13]));//bottom + _plane[3].initPlane(-Vec3(mat.m[3] - mat.m[1], mat.m[7] - mat.m[5], mat.m[11] - mat.m[9]), (mat.m[15] - mat.m[13]));//top + _plane[4].initPlane(-Vec3(mat.m[3] + mat.m[2], mat.m[7] + mat.m[6], mat.m[11] + mat.m[10]), (mat.m[15] + mat.m[14]));//near + _plane[5].initPlane(-Vec3(mat.m[3] - mat.m[2], mat.m[7] - mat.m[6], mat.m[11] - mat.m[10]), (mat.m[15] - mat.m[14]));//far +} + +NS_CC_END diff --git a/cocos/3d/CCFrustum.h b/cocos/3d/CCFrustum.h new file mode 100755 index 0000000000..48f71c1a5d --- /dev/null +++ b/cocos/3d/CCFrustum.h @@ -0,0 +1,80 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#ifndef __CC_FRUSTUM_H_ +#define __CC_FRUSTUM_H_ + +#include "base/ccMacros.h" +#include "math/CCMath.h" +#include "3d/CCAABB.h" +#include "3d/CCOBB.h" +#include "3d/CCPlane.h" + +NS_CC_BEGIN + +class Camera; +class CC_DLL Frustum +{ + friend class Camera; +public: + /** + * Constructor & Destructor. + */ + Frustum(): _bInit(false), _bClipZ(true){} + ~Frustum(){} + + /** + * init frustum from camera. + */ + bool initFrustum(const Camera* pCamera); + + /** + * is aabb out of frustum. + */ + bool isOutFrustum(const AABB& aabb) const; + /** + * is obb out of frustum + */ + bool isOutFrustum(const OBB& obb) const; + + /** + * get & set z clip. if bclipZ == true use near and far plane + */ + void setClipZ(bool bclipZ) { _bClipZ = bclipZ; } + bool isClipZ() { return _bClipZ; } + +protected: + /** + * create clip plane + */ + void createPlane(const Camera* pcamera); + + Plane _plane[6]; // clip plane, left, right, top, bottom, near, far + bool _bClipZ; // use near and far clip plane + bool _bInit; +}; + +NS_CC_END + +#endif//__CC_FRUSTUM_H_ diff --git a/cocos/3d/CCOBB.cpp b/cocos/3d/CCOBB.cpp index 582898657b..826e40d2bf 100755 --- a/cocos/3d/CCOBB.cpp +++ b/cocos/3d/CCOBB.cpp @@ -215,6 +215,8 @@ OBB::OBB(const AABB& aabb) _extents = aabb._max - aabb._min; _extents.scale(0.5f); + + computeExtAxis(); } OBB::OBB(const Vec3* verts, int num) @@ -259,6 +261,8 @@ OBB::OBB(const Vec3* verts, int num) _zAxis.normalize(); _extents = 0.5f * (vecMax - vecMin); + + computeExtAxis(); } bool OBB::containPoint(const Vec3& point) const @@ -296,19 +300,15 @@ void OBB::reset() void OBB::getCorners(Vec3* verts) const { - Vec3 extX = _xAxis * _extents.x; - Vec3 extY = _yAxis * _extents.y; - Vec3 extZ = _zAxis * _extents.z; + verts[0] = _center - _extentX + _extentY + _extentZ; // left top front + verts[1] = _center - _extentX - _extentY + _extentZ; // left bottom front + verts[2] = _center + _extentX - _extentY + _extentZ; // right bottom front + verts[3] = _center + _extentX + _extentY + _extentZ; // right top front - verts[0] = _center - extX + extY + extZ; // left top front - verts[1] = _center - extX - extY + extZ; // left bottom front - verts[2] = _center + extX - extY + extZ; // right bottom front - verts[3] = _center + extX + extY + extZ; // right top front - - verts[4] = _center + extX + extY - extZ; // right top back - verts[5] = _center + extX - extY - extZ; // right bottom back - verts[6] = _center - extX - extY - extZ; // left bottom back - verts[7] = _center - extX + extY - extZ; // left top back + verts[4] = _center + _extentX + _extentY - _extentZ; // right top back + verts[5] = _center + _extentX - _extentY - _extentZ; // right bottom back + verts[6] = _center - _extentX - _extentY - _extentZ; // left bottom back + verts[7] = _center - _extentX + _extentY - _extentZ; // left top back } float OBB::projectPoint(const Vec3& point, const Vec3& axis)const @@ -447,6 +447,8 @@ void OBB::transform(const Mat4& mat) _extents.x *= scale.x; _extents.y *= scale.y; _extents.z *= scale.z; + + computeExtAxis(); } NS_CC_END diff --git a/cocos/3d/CCOBB.h b/cocos/3d/CCOBB.h index 0fd8c1eea1..2065035060 100644 --- a/cocos/3d/CCOBB.h +++ b/cocos/3d/CCOBB.h @@ -84,6 +84,16 @@ public: void transform(const Mat4& mat); protected: + /* + * compute extX, extY, extZ + */ + void computeExtAxis() + { + _extentX = _xAxis * _extents.x; + _extentY = _yAxis * _extents.y; + _extentZ = _zAxis * _extents.z; + } + /* * Project point to the target axis */ @@ -109,6 +119,9 @@ public: Vec3 _xAxis; // x axis of obb, unit vector Vec3 _yAxis; // y axis of obb, unit vecotr Vec3 _zAxis; // z axis of obb, unit vector + Vec3 _extentX; // _xAxis * _extents.x + Vec3 _extentY; // _yAxis * _extents.y + Vec3 _extentZ; // _zAxis * _extents.z Vec3 _extents; // obb length along each axis }; diff --git a/cocos/3d/CCPlane.cpp b/cocos/3d/CCPlane.cpp new file mode 100755 index 0000000000..5449353463 --- /dev/null +++ b/cocos/3d/CCPlane.cpp @@ -0,0 +1,100 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#include "CCPlane.h" + +NS_CC_BEGIN + + +Plane::Plane() +{ + _normal.set(0.0f, 0.0f, 1.0f); + _dist = 0.0f; +} + +// create plane from tree point +Plane::Plane(const Vec3& p1, const Vec3& p2, const Vec3& p3) +{ + initPlane(p1, p2, p3); +} + +// create plane from normal and dist +Plane::Plane(const Vec3& normal, float dist) +{ + initPlane(normal, dist); +} + +// create plane from normal and a point on plane +Plane::Plane(const Vec3& normal, const Vec3& point) +{ + initPlane(normal, point); +} + +Plane::~Plane() +{ +} + +void Plane::initPlane(const Vec3& p1, const Vec3& p2, const Vec3& p3) +{ + Vec3 p21 = p2 - p1; + Vec3 p32 = p3 - p2; + + Vec3::cross(p21, p32, &_normal); + + _normal.normalize(); + _dist = _normal.dot(p1); +} + +void Plane::initPlane(const Vec3& normal, float dist) +{ + float oneOverLength = 1 / normal.length(); + _normal = normal * oneOverLength; + _dist = dist * oneOverLength; +} + +void Plane::initPlane(const Vec3& normal, const Vec3& point) +{ + _normal = normal; + _normal.normalize(); + _dist = _normal.dot(point); +} + +float Plane::dist2Plane(const Vec3& p) const +{ + return _normal.dot(p) - _dist; +} + + +Plane::POINT_SIDE Plane::getSide(const Vec3& point) const +{ + float dist = dist2Plane(point); + if (dist > 0) + return Plane::FRONT_PLANE; + else if (dist < 0) + return Plane::BEHIND_PLANE; + + return Plane::ON_PLANE; +} + +NS_CC_END diff --git a/cocos/3d/CCPlane.h b/cocos/3d/CCPlane.h new file mode 100755 index 0000000000..6c3d0dd403 --- /dev/null +++ b/cocos/3d/CCPlane.h @@ -0,0 +1,103 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#ifndef __CC_PLANE_H_ +#define __CC_PLANE_H_ + +#include "base/ccMacros.h" +#include "math/CCMath.h" + +NS_CC_BEGIN + +class CC_DLL Plane +{ +public: + enum POINT_SIDE + { + ON_PLANE, + FRONT_PLANE, + BEHIND_PLANE, + }; + +public: + /** + * create plane from tree point. + */ + Plane(const Vec3& p1, const Vec3& p2, const Vec3& p3); + + /** + * create plane from normal and dist. + */ + Plane(const Vec3& normal, float dist); + + /** + * create plane from normal and a point on plane. + */ + Plane(const Vec3& normal, const Vec3& point); + Plane(); + ~Plane(); + + /** + * init plane from tree point. + */ + void initPlane(const Vec3& p1, const Vec3& p2, const Vec3& p3); + + /** + * init plane from normal and dist. + */ + void initPlane(const Vec3& normal, float dist); + + /** + * init plane from normal and a point on plane. + */ + void initPlane(const Vec3& normal, const Vec3& point); + + /** + * dist to plane, > 0 normal direction + */ + float dist2Plane(const Vec3& p) const; + + /** + * Gets the plane's normal. + */ + const Vec3& getNormal() const { return _normal; } + + /** + * Gets the plane's distance to the origin along its normal. + */ + float getDist() const { return _dist; } + + /** + * Return the side where the point is. + */ + POINT_SIDE getSide(const Vec3& point) const; + +protected: + Vec3 _normal; + float _dist; +}; + +NS_CC_END + +#endif diff --git a/cocos/3d/CCRay.cpp b/cocos/3d/CCRay.cpp index 94189183d1..604311676f 100755 --- a/cocos/3d/CCRay.cpp +++ b/cocos/3d/CCRay.cpp @@ -140,10 +140,26 @@ bool Ray::intersects(const OBB& obb) const return ray.intersects(aabb); } +float Ray::dist(const Plane& plane) const +{ + float ndd = Vec3::dot(plane.getNormal(),_direction); + if(ndd == 0) + return 0.0f; + float ndo = Vec3::dot(plane.getNormal(),_origin); + return (plane.getDist() - ndo) / ndd; +} + +Vec3 Ray::intersects(const Plane& plane) const +{ + float dis = this->dist(plane); + return _origin + dis * _direction; +} + void Ray::set(const Vec3& origin, const Vec3& direction) { _origin = origin; _direction = direction; + _direction.normalize(); } void Ray::transform(const Mat4& matrix) diff --git a/cocos/3d/CCRay.h b/cocos/3d/CCRay.h index 417147d56d..d4d9f59f46 100644 --- a/cocos/3d/CCRay.h +++ b/cocos/3d/CCRay.h @@ -28,6 +28,7 @@ #include "math/CCMath.h" #include "3d/CCAABB.h" #include "3d/CCOBB.h" +#include "3d/CCPlane.h" NS_CC_BEGIN @@ -67,6 +68,9 @@ public: */ bool intersects(const OBB& obb) const; + float dist(const Plane& plane) const; + Vec3 intersects(const Plane& plane) const; + /** * Sets this ray to the specified values. * diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index d47de90238..2fbec73d32 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -530,6 +530,10 @@ static Texture2D * getDummyTexture() void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { + // camera clipping + if(Camera::getVisitingCamera() && !Camera::getVisitingCamera()->visibleInFrustum(this->getAABB())) + return; + if (_skeleton) _skeleton->updateBoneMatrix(); diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index c7dcae167c..cc4797cb57 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -28,55 +28,6 @@ THE SOFTWARE. #include "../testResource.h" ////////////DrawLine///////////////////// - -class DrawLine3D: public Node -{ -public: - /** creates and initialize a node */ - static DrawLine3D* create(); - - /** - * Draw 3D Line - */ - void drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color); - - /** Clear the geometry in the node's buffer. */ - void clear() - { - _buffer.clear(); - } - - void onDraw(const Mat4 &transform, uint32_t flags); - - // Overrides - virtual void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) override; - -CC_CONSTRUCTOR_ACCESS: - DrawLine3D() - { - - } - virtual ~DrawLine3D() - { - - } - virtual bool init(); - -protected: - struct V3F_C4B - { - Vec3 vertices; - Color4B colors; - }; - - std::vector _buffer; - - CustomCommand _customCommand; - -private: - CC_DISALLOW_COPY_AND_ASSIGN(DrawLine3D); -}; - DrawLine3D* DrawLine3D::create() { auto ret = new (std::nothrow) DrawLine3D(); @@ -103,6 +54,27 @@ void DrawLine3D::drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color _buffer.push_back(vertex); } +void DrawLine3D::drawCube(Vec3* vertices, const Color4F &color) +{ + // front face + drawLine(vertices[0], vertices[1], color); + drawLine(vertices[1], vertices[2], color); + drawLine(vertices[2], vertices[3], color); + drawLine(vertices[3], vertices[0], color); + + // back face + drawLine(vertices[4], vertices[5], color); + drawLine(vertices[5], vertices[6], color); + drawLine(vertices[6], vertices[7], color); + drawLine(vertices[7], vertices[4], color); + + // edge + drawLine(vertices[0], vertices[7], color); + drawLine(vertices[1], vertices[6], color); + drawLine(vertices[2], vertices[5], color); + drawLine(vertices[3], vertices[4], color); +} + void DrawLine3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { _customCommand.init(_globalZOrder); @@ -140,6 +112,7 @@ static int sceneIdx = -1; static std::function createFunctions[] = { CL(Camera3DTestDemo), + CL(CameraClipDemo) }; #define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0])) @@ -755,6 +728,282 @@ void Camera3DTestDemo::onTouchesRotateRightEnd(Touch* touch, Event* event) { _bRotateRight = false; } + +//////////////////////////////////////////////////////////// +// CameraClipDemo +CameraClipDemo::CameraClipDemo(void) +: BaseTest() +, _labelDrawCall(nullptr) +, _layer3D(nullptr) +, _cameraFirst(nullptr) +, _cameraThird(nullptr) +, _moveAction(nullptr) +, _drawAABB(nullptr) +, _drawFrustum(nullptr) +{ +} +CameraClipDemo::~CameraClipDemo(void) +{ +} + +std::string CameraClipDemo::title() const +{ + return "Testing Camera"; +} + +std::string CameraClipDemo::subtitle() const +{ + return "Camera Frustum Clipping"; +} + +void CameraClipDemo::switchViewCallback(Ref* sender, CameraType cameraType) +{ + if(_cameraType==cameraType) + { + return ; + } + _cameraType = cameraType; + if(_cameraType==CameraType::FirstCamera) + { + _drawFrustum->clear(); + _cameraFirst->setCameraFlag(CameraFlag::USER1); + _cameraThird->setCameraFlag(CameraFlag::USER8); + _cameraFirst->enableFrustumCull(true, true); + } + else if(_cameraType==CameraType::ThirdCamera) + { + _cameraThird->setCameraFlag(CameraFlag::USER1); + _cameraFirst->setCameraFlag(CameraFlag::USER8); + _cameraThird->enableFrustumCull(false, false); + } +} +void CameraClipDemo::onEnter() +{ + BaseTest::onEnter(); + auto s = Director::getInstance()->getWinSize(); + auto listener = EventListenerTouchAllAtOnce::create(); + listener->onTouchesBegan = CC_CALLBACK_2(CameraClipDemo::onTouchesBegan, this); + listener->onTouchesMoved = CC_CALLBACK_2(CameraClipDemo::onTouchesMoved, this); + listener->onTouchesEnded = CC_CALLBACK_2(CameraClipDemo::onTouchesEnded, this); + _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); + auto layer3D=Layer::create(); + addChild(layer3D,0); + _layer3D=layer3D; + + TTFConfig ttfConfig("fonts/arial.ttf", 20); + auto label1 = Label::createWithTTF(ttfConfig,"third person"); + auto menuItem1 = MenuItemLabel::create(label1, CC_CALLBACK_1(CameraClipDemo::switchViewCallback,this,CameraType::ThirdCamera)); + auto label2 = Label::createWithTTF(ttfConfig,"first person"); + auto menuItem2 = MenuItemLabel::create(label2, CC_CALLBACK_1(CameraClipDemo::switchViewCallback,this,CameraType::FirstCamera)); + auto menu = Menu::create(menuItem1,menuItem2,NULL); + + menu->setPosition(Vec2::ZERO); + menuItem1->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -50); + menuItem2->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -80); + addChild(menu, 0); + + _labelDrawCall = Label::createWithTTF(ttfConfig,"In Frustum Num: "); + _labelDrawCall->setPosition(VisibleRect::rightTop().x-80, VisibleRect::rightTop().y -50); + addChild(_labelDrawCall, 0); + + schedule(schedule_selector(CameraClipDemo::update), 0.0f); + + if (_cameraFirst == nullptr) + { + _cameraFirst=Camera::createPerspective(30, (GLfloat)s.width/s.height, 10, 200); + _layer3D->addChild(_cameraFirst); + } + if (_cameraThird == nullptr) + { + _cameraThird=Camera::createPerspective(60, (GLfloat)s.width/s.height, 1, 1000); + _layer3D->addChild(_cameraThird); + } + + DrawLine3D* line =DrawLine3D::create(); + const int gridNum = 30; + const int girdSize = 5; + //draw x + for( int j =-gridNum; j<=gridNum ;j++) + { + line->drawLine(Vec3(-gridNum*girdSize, 0, 5*j),Vec3(gridNum*girdSize,0,5*j),Color4F(1,0,0,1)); + } + //draw z + for( int j =-gridNum; j<=gridNum ;j++) + { + line->drawLine(Vec3(5*j, 0, -gridNum*girdSize),Vec3(5*j,0,gridNum*girdSize),Color4F(0,0,1,1)); + } + + _layer3D->addChild(line); + + _drawAABB = DrawLine3D::create(); + _layer3D->addChild(_drawAABB); + + // add some objects to 3d layer + int num = 5; + objects.clear(); + for (int x = -num; x < num; x++) + { + for (int j = 0; j < 4; j++) + { + for (int z = -num; z < num; z++) { + auto sprite = Sprite3D::create("Sprite3DTest/boss.c3b"); + sprite->setPosition3D( Vec3( x*30, j*30, z*30) ); + objects.push_back(sprite); + _layer3D->addChild(sprite); + + Vec3 corners[8]; + sprite->getAABB().getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + } + } + + _drawFrustum = DrawLine3D::create(); + _layer3D->addChild(_drawFrustum); + + switchViewCallback(this,CameraType::FirstCamera); + initCamera(); + _layer3D->setCameraMask(2); +} + +void CameraClipDemo::onExit() +{ + BaseTest::onExit(); + if (_cameraFirst) + { + _cameraFirst = nullptr; + } + if (_cameraThird) + { + _cameraThird = nullptr; + } +} + +void CameraClipDemo::restartCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild(restartSpriteTestAction()); + + Director::getInstance()->replaceScene(s); + s->release(); +} + +void CameraClipDemo::nextCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild( nextSpriteTestAction() ); + Director::getInstance()->replaceScene(s); + s->release(); +} +void CameraClipDemo::backCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild( backSpriteTestAction() ); + Director::getInstance()->replaceScene(s); + s->release(); +} + +void CameraClipDemo::reachEndCallBack() +{ + _cameraFirst->stopActionByTag(100); + auto inverse = (MoveTo*)_moveAction->reverse(); + inverse->retain(); + _moveAction->release(); + _moveAction = inverse; + auto rot = RotateBy::create(1.f, Vec3(0.f, 180.f, 0.f)); + auto seq = Sequence::create(rot, _moveAction, CallFunc::create(CC_CALLBACK_0(CameraClipDemo::reachEndCallBack, this)), nullptr); + seq->setTag(100); + _cameraFirst->runAction(seq); +} + +void CameraClipDemo::drawCameraFrustum() +{ + _drawFrustum->clear(); + auto size = Director::getInstance()->getWinSize(); + + Color4F color(1.f, 1.f, 0.f, 1); + + // top-left + Vec3 tl_0,tl_1; + Vec3 src(0,0,0); + _cameraFirst->unproject(size, &src, &tl_0); + src = Vec3(0,0,1); + _cameraFirst->unproject(size, &src, &tl_1); + + // top-right + Vec3 tr_0,tr_1; + src = Vec3(size.width,0,0); + _cameraFirst->unproject(size, &src, &tr_0); + src = Vec3(size.width,0,1); + _cameraFirst->unproject(size, &src, &tr_1); + + // bottom-left + Vec3 bl_0,bl_1; + src = Vec3(0,size.height,0); + _cameraFirst->unproject(size, &src, &bl_0); + src = Vec3(0,size.height,1); + _cameraFirst->unproject(size, &src, &bl_1); + + // bottom-right + Vec3 br_0,br_1; + src = Vec3(size.width,size.height,0); + _cameraFirst->unproject(size, &src, &br_0); + src = Vec3(size.width,size.height,1); + _cameraFirst->unproject(size, &src, &br_1); + + _drawFrustum->drawLine(tl_0, tl_1, color); + _drawFrustum->drawLine(tr_0, tr_1, color); + _drawFrustum->drawLine(bl_0, bl_1, color); + _drawFrustum->drawLine(br_0, br_1, color); + + _drawFrustum->drawLine(tl_0, tr_0, color); + _drawFrustum->drawLine(tr_0, br_0, color); + _drawFrustum->drawLine(br_0, bl_0, color); + _drawFrustum->drawLine(bl_0, tl_0, color); + + _drawFrustum->drawLine(tl_1, tr_1, color); + _drawFrustum->drawLine(tr_1, br_1, color); + _drawFrustum->drawLine(br_1, bl_1, color); + _drawFrustum->drawLine(bl_1, tl_1, color); +} + +void CameraClipDemo::initCamera() +{ + if (_cameraThird) + { + _cameraFirst->setPosition3D(Vec3(-100,0,0)); + _cameraFirst->lookAt(Vec3(1000,0,0), Vec3(0, 1, 0)); + _moveAction = MoveTo::create(4.f, Vec2(100, 0)); + _moveAction->retain(); + auto seq = Sequence::create(_moveAction, CallFunc::create(CC_CALLBACK_0(CameraClipDemo::reachEndCallBack, this)), nullptr); + seq->setTag(100); + _cameraFirst->runAction(seq); + } + + if (_cameraThird) + { + _cameraThird->setPosition3D(Vec3(0, 130, 130)); + _cameraThird->lookAt(Vec3(0,0,0), Vec3(0, 1, 0)); + } +} + + +void CameraClipDemo::update(float fDelta) +{ + static unsigned long prevCalls = 0; + unsigned long drawCall = Director::getInstance()->getRenderer()->getDrawnBatches() - 10; + if( drawCall != prevCalls ) + { + char szDrawCall[255]; + sprintf(szDrawCall, "In Frustum Num: %6lu", drawCall); + _labelDrawCall->setString(szDrawCall); + } + if( _cameraType==CameraType::ThirdCamera) + { + drawCameraFrustum(); + } +} + void Camera3DTestScene::runThisTest() { auto layer = nextSpriteTestAction(); diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h index 9d24a0fdb7..03f748b32c 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h @@ -32,6 +32,57 @@ namespace cocos2d { class Sprite3D; class Delay; } + +class DrawLine3D: public Node +{ +public: + /** creates and initialize a node */ + static DrawLine3D* create(); + + /** + * Draw 3D Line + */ + void drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color); + + void drawCube(Vec3* vertices, const Color4F &color); + + /** Clear the geometry in the node's buffer. */ + void clear() + { + _buffer.clear(); + } + + void onDraw(const Mat4 &transform, uint32_t flags); + + // Overrides + virtual void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) override; + +CC_CONSTRUCTOR_ACCESS: + DrawLine3D() + { + + } + virtual ~DrawLine3D() + { + + } + virtual bool init(); + +protected: + struct V3F_C4B + { + Vec3 vertices; + Color4B colors; + }; + + std::vector _buffer; + + CustomCommand _customCommand; + +private: + CC_DISALLOW_COPY_AND_ASSIGN(DrawLine3D); +}; + enum State { State_None = 0, @@ -106,6 +157,41 @@ protected: Label* _ZoomInlabel; Label* _ZoomOutlabel; }; + +class CameraClipDemo : public BaseTest +{ +public: + CREATE_FUNC(CameraClipDemo); + CameraClipDemo(void); + virtual ~CameraClipDemo(void); + + void restartCallback(Ref* sender); + void nextCallback(Ref* sender); + void backCallback(Ref* sender); + virtual void onEnter() override; + virtual void onExit() override; + // overrides + virtual std::string title() const override; + virtual std::string subtitle() const override; + void reachEndCallBack(); + void switchViewCallback(Ref* sender,CameraType cameraType); + void update(float fDelta); + void drawCameraFrustum(); + void initCamera(); + +protected: + std::string _title; + Label* _labelDrawCall; + Layer* _layer3D; + std::vector objects; + CameraType _cameraType; + Camera* _cameraFirst; + Camera* _cameraThird; + MoveBy* _moveAction; + DrawLine3D* _drawAABB; + DrawLine3D* _drawFrustum; +}; + class Camera3DTestScene : public TestScene { public: From c589189e4ed7a357e6c33dfb24648f34de9949d0 Mon Sep 17 00:00:00 2001 From: lvlong Date: Tue, 4 Nov 2014 16:36:46 +0800 Subject: [PATCH 02/21] modify android.mk for frustum. --- cocos/Android.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/Android.mk b/cocos/Android.mk index 0efa4badc1..66c5e1a1f8 100644 --- a/cocos/Android.mk +++ b/cocos/Android.mk @@ -77,6 +77,8 @@ cocos2d.cpp \ 2d/CCTransitionPageTurn.cpp \ 2d/CCTransitionProgress.cpp \ 2d/CCTweenFunction.cpp \ +3d/CCFrustum.cpp \ +3d/CCPlane.cpp \ platform/CCGLView.cpp \ platform/CCFileUtils.cpp \ platform/CCSAXParser.cpp \ From 9485d8d41c515217c2dae1db235d0b3b31c54817 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 6 Nov 2014 11:07:58 +0800 Subject: [PATCH 03/21] for camera performance test!! --- .../Classes/Camera3DTest/Camera3DTest.cpp | 253 +++++++++++++++++- .../Classes/Camera3DTest/Camera3DTest.h | 33 +++ 2 files changed, 285 insertions(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index cc4797cb57..259fd1c983 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -112,7 +112,8 @@ static int sceneIdx = -1; static std::function createFunctions[] = { CL(Camera3DTestDemo), - CL(CameraClipDemo) + CL(CameraClipDemo), + CL(CameraClipPerformance) }; #define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0])) @@ -1004,6 +1005,256 @@ void CameraClipDemo::update(float fDelta) } } +//////////////////////////////////////////////////////////// +// CameraClipDemo +CameraClipPerformance::CameraClipPerformance(void) +: BaseTest() +, _labelDrawCall(nullptr) +, _layer3D(nullptr) +, _cameraFirst(nullptr) +, _drawAABB(nullptr) +//, _sprite3D(nullptr) +{ +} +CameraClipPerformance::~CameraClipPerformance(void) +{ +} + +std::string CameraClipPerformance::title() const +{ + return "Testing Camera"; +} + +std::string CameraClipPerformance::subtitle() const +{ + return "ClipPerformance Test"; +} + +void CameraClipPerformance::inFrustum(Ref* sender) +{ + float newY = 0.f - _posY; + Mat4 mat = Mat4::IDENTITY; + mat.translate(0, newY, 0); + _drawAABB->clear(); + + for (auto& iter: listAABB) + { + iter.transform(mat); + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _posY = 0; +} + +void CameraClipPerformance::partInFrustum(Ref* sender) +{ + float newY = 60.f - _posY; + Mat4 mat = Mat4::IDENTITY; + mat.translate(0, newY, 0); + _drawAABB->clear(); + + for (auto& iter: listAABB) + { + iter.transform(mat); + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _posY = 60; +} + +void CameraClipPerformance::outFrustum(Ref* sender) +{ + float newY = 90.f - _posY; + Mat4 mat = Mat4::IDENTITY; + mat.translate(0, newY, 0); + _drawAABB->clear(); + + for (auto& iter: listAABB) + { + iter.transform(mat); + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _posY = 90; +} + +void CameraClipPerformance::calculate(Ref* sender) +{ + AABB aabb; + _cameraFirst->visibleInFrustum(aabb); + + auto lastTime = utils::gettime(); + for (auto& iter : listAABB) + { + _cameraFirst->visibleInFrustum(iter); + } + auto deltaTime = utils::gettime() - lastTime; + + char szDrawCall[255]; + sprintf(szDrawCall, "Time: %f", deltaTime); + _labelDrawCall->setString(szDrawCall); +} + +//void CameraClipPerformance::switchViewCallback(Ref* sender, CameraType cameraType) +//{ +// if(_cameraType==cameraType) +// { +// return ; +// } +// _cameraType = cameraType; +// if(_cameraType==CameraType::FirstCamera) +// { +// _drawFrustum->clear(); +// _cameraFirst->setCameraFlag(CameraFlag::USER1); +// _cameraThird->setCameraFlag(CameraFlag::USER8); +// _cameraFirst->enableFrustumCull(true, true); +// } +// else if(_cameraType==CameraType::ThirdCamera) +// { +// _cameraThird->setCameraFlag(CameraFlag::USER1); +// _cameraFirst->setCameraFlag(CameraFlag::USER8); +// _cameraThird->enableFrustumCull(false, false); +// } +//} + +void CameraClipPerformance::onEnter() +{ + BaseTest::onEnter(); + auto s = Director::getInstance()->getWinSize(); + auto listener = EventListenerTouchAllAtOnce::create(); + listener->onTouchesBegan = CC_CALLBACK_2(CameraClipDemo::onTouchesBegan, this); + listener->onTouchesMoved = CC_CALLBACK_2(CameraClipDemo::onTouchesMoved, this); + listener->onTouchesEnded = CC_CALLBACK_2(CameraClipDemo::onTouchesEnded, this); + _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); + + + TTFConfig ttfConfig("fonts/arial.ttf", 20); + auto label1 = Label::createWithTTF(ttfConfig,"In"); + auto menuItem1 = MenuItemLabel::create(label1, CC_CALLBACK_1(CameraClipPerformance::inFrustum,this)); + auto label2 = Label::createWithTTF(ttfConfig,"Part In"); + auto menuItem2 = MenuItemLabel::create(label2, CC_CALLBACK_1(CameraClipPerformance::partInFrustum,this)); + auto label3 = Label::createWithTTF(ttfConfig,"Out"); + auto menuItem3 = MenuItemLabel::create(label3, CC_CALLBACK_1(CameraClipPerformance::outFrustum,this)); + auto label4 = Label::createWithTTF(ttfConfig,"Calculate"); + auto menuItem4 = MenuItemLabel::create(label4, CC_CALLBACK_1(CameraClipPerformance::calculate,this)); + + auto menu = Menu::create(menuItem1,menuItem2,menuItem3,menuItem4,NULL); + + menu->setPosition(Vec2::ZERO); + menuItem1->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -50); + menuItem2->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -80); + menuItem3->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -110); + menuItem4->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -140); + addChild(menu, 0); + + _labelDrawCall = Label::createWithTTF(ttfConfig,"Time: "); + _labelDrawCall->setPosition(VisibleRect::rightTop().x-80, VisibleRect::rightTop().y -50); + addChild(_labelDrawCall, 0); + + // 3D layer + auto layer3D=Layer::create(); + addChild(layer3D,0); + _layer3D=layer3D; + + // init camera + initCamera(); + + // draw line + DrawLine3D* line =DrawLine3D::create(); + const int gridNum = 30; + const int girdSize = 5; + //draw x + for( int j =-gridNum; j<=gridNum ;j++) + { + line->drawLine(Vec3(-gridNum*girdSize, 0, 5*j),Vec3(gridNum*girdSize,0,5*j),Color4F(1,0,0,1)); + } + //draw z + for( int j =-gridNum; j<=gridNum ;j++) + { + line->drawLine(Vec3(5*j, 0, -gridNum*girdSize),Vec3(5*j,0,gridNum*girdSize),Color4F(0,0,1,1)); + } + + _layer3D->addChild(line); + + _drawAABB = DrawLine3D::create(); + _layer3D->addChild(_drawAABB); + +// // add some objects to 3d layer +// _sprite3D = Sprite3D::create("Sprite3DTest/boss.c3b"); +// _layer3D->addChild(_sprite3D); + + _posY = 0.f; + + //int num = 1000; + listAABB.clear(); + for (int i = -500; i < 500; i++) + { + AABB aabb(Vec3(-10,-10,-10), Vec3(10,10,10)); + Mat4 mat = Mat4::IDENTITY; + mat.translate(i/10.f, _posY, 0); + aabb.transform(mat); + listAABB.push_back(aabb); + } + + for (const auto& iter: listAABB) { + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _layer3D->setCameraMask(2); +} + +void CameraClipPerformance::onExit() +{ + BaseTest::onExit(); + if (_cameraFirst) + { + _cameraFirst = nullptr; + } +} + +void CameraClipPerformance::restartCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild(restartSpriteTestAction()); + + Director::getInstance()->replaceScene(s); + s->release(); +} + +void CameraClipPerformance::nextCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild( nextSpriteTestAction() ); + Director::getInstance()->replaceScene(s); + s->release(); +} +void CameraClipPerformance::backCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild( backSpriteTestAction() ); + Director::getInstance()->replaceScene(s); + s->release(); +} + +void CameraClipPerformance::initCamera() +{ + auto s = Director::getInstance()->getWinSize(); + _cameraFirst=Camera::createPerspective(60, (GLfloat)s.width/s.height, 1, 300); + _cameraFirst->setPosition3D(Vec3(0,0,100)); + _cameraFirst->lookAt(Vec3(0,0,0), Vec3(0, 1, 0)); + _cameraFirst->setCameraFlag(CameraFlag::USER1); + //_cameraFirst->enableFrustumCull(false, false); + _layer3D->addChild(_cameraFirst); +} + void Camera3DTestScene::runThisTest() { auto layer = nextSpriteTestAction(); diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h index 03f748b32c..c068a6f3d7 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h @@ -192,6 +192,39 @@ protected: DrawLine3D* _drawFrustum; }; +class CameraClipPerformance : public BaseTest +{ +public: + CREATE_FUNC(CameraClipPerformance); + CameraClipPerformance(void); + virtual ~CameraClipPerformance(void); + + void restartCallback(Ref* sender); + void nextCallback(Ref* sender); + void backCallback(Ref* sender); + virtual void onEnter() override; + virtual void onExit() override; + // overrides + virtual std::string title() const override; + virtual std::string subtitle() const override; + void reachEndCallBack(); + void inFrustum(Ref* sender); + void partInFrustum(Ref* sender); + void outFrustum(Ref* sender); + void calculate(Ref* sender); + void initCamera(); + +protected: + std::string _title; + Label* _labelDrawCall; + Layer* _layer3D; + Camera* _cameraFirst; + DrawLine3D* _drawAABB; + //Sprite3D* _sprite3D; + std::vector listAABB; + float _posY; +}; + class Camera3DTestScene : public TestScene { public: From 73a2a6385aabf0677240bdb210f185b13cfb0eec Mon Sep 17 00:00:00 2001 From: lvlong Date: Tue, 16 Dec 2014 16:34:35 +0800 Subject: [PATCH 04/21] add frustum culling. --- build/cocos2d_libs.xcodeproj/project.pbxproj | 24 ++ cocos/2d/CCCamera.cpp | 22 ++ cocos/2d/CCCamera.h | 15 +- cocos/3d/CCAttachNode.cpp | 15 + cocos/3d/CCAttachNode.h | 1 + cocos/3d/CCFrustum.cpp | 97 +++++ cocos/3d/CCFrustum.h | 80 ++++ cocos/3d/CCPlane.cpp | 95 +++++ cocos/3d/CCPlane.h | 102 +++++ cocos/3d/CCRay.cpp | 16 + cocos/3d/CCRay.h | 4 + .../Classes/Camera3DTest/Camera3DTest.cpp | 355 +++++++++++++----- .../Classes/Camera3DTest/Camera3DTest.h | 36 ++ 13 files changed, 759 insertions(+), 103 deletions(-) create mode 100755 cocos/3d/CCFrustum.cpp create mode 100755 cocos/3d/CCFrustum.h create mode 100755 cocos/3d/CCPlane.cpp create mode 100755 cocos/3d/CCPlane.h diff --git a/build/cocos2d_libs.xcodeproj/project.pbxproj b/build/cocos2d_libs.xcodeproj/project.pbxproj index 6fd176075d..a229eb70fd 100644 --- a/build/cocos2d_libs.xcodeproj/project.pbxproj +++ b/build/cocos2d_libs.xcodeproj/project.pbxproj @@ -1735,6 +1735,14 @@ 50ED2BE519BEAF7900A0AB90 /* UIEditBoxImpl-win32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50ED2BDE19BEAF7900A0AB90 /* UIEditBoxImpl-win32.cpp */; }; 50ED2BE619BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50ED2BDF19BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp */; }; 50ED2BE719BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50ED2BDF19BEAF7900A0AB90 /* UIEditBoxImpl-wp8.cpp */; }; + 5E9F61261A3FFE3D0038DE01 /* CCFrustum.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E9F61221A3FFE3D0038DE01 /* CCFrustum.cpp */; }; + 5E9F61271A3FFE3D0038DE01 /* CCFrustum.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E9F61221A3FFE3D0038DE01 /* CCFrustum.cpp */; }; + 5E9F61281A3FFE3D0038DE01 /* CCFrustum.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E9F61231A3FFE3D0038DE01 /* CCFrustum.h */; }; + 5E9F61291A3FFE3D0038DE01 /* CCFrustum.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E9F61231A3FFE3D0038DE01 /* CCFrustum.h */; }; + 5E9F612A1A3FFE3D0038DE01 /* CCPlane.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E9F61241A3FFE3D0038DE01 /* CCPlane.cpp */; }; + 5E9F612B1A3FFE3D0038DE01 /* CCPlane.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5E9F61241A3FFE3D0038DE01 /* CCPlane.cpp */; }; + 5E9F612C1A3FFE3D0038DE01 /* CCPlane.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E9F61251A3FFE3D0038DE01 /* CCPlane.h */; }; + 5E9F612D1A3FFE3D0038DE01 /* CCPlane.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E9F61251A3FFE3D0038DE01 /* CCPlane.h */; }; A07A4CAF1783777C0073F6A7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1551A342158F2AB200E66CFE /* Foundation.framework */; }; B2165EEA19921124000BE3E6 /* CCPrimitiveCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B257B45E198A353E00D9A687 /* CCPrimitiveCommand.cpp */; }; B217703C1977ECB4009EE11B /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B217703B1977ECB4009EE11B /* IOKit.framework */; }; @@ -2871,6 +2879,10 @@ 50FCEB9018C72017004AD434 /* WidgetReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WidgetReader.cpp; sourceTree = ""; }; 50FCEB9118C72017004AD434 /* WidgetReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WidgetReader.h; sourceTree = ""; }; 50FCEB9218C72017004AD434 /* WidgetReaderProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WidgetReaderProtocol.h; sourceTree = ""; }; + 5E9F61221A3FFE3D0038DE01 /* CCFrustum.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCFrustum.cpp; sourceTree = ""; }; + 5E9F61231A3FFE3D0038DE01 /* CCFrustum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCFrustum.h; sourceTree = ""; }; + 5E9F61241A3FFE3D0038DE01 /* CCPlane.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCPlane.cpp; sourceTree = ""; }; + 5E9F61251A3FFE3D0038DE01 /* CCPlane.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCPlane.h; sourceTree = ""; }; A07A4D641783777C0073F6A7 /* libcocos2d iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libcocos2d iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; B217703B1977ECB4009EE11B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; B217703D1977ECC1009EE11B /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; @@ -5069,6 +5081,10 @@ B29594B81926D61F003EEF37 /* 3d */ = { isa = PBXGroup; children = ( + 5E9F61221A3FFE3D0038DE01 /* CCFrustum.cpp */, + 5E9F61231A3FFE3D0038DE01 /* CCFrustum.h */, + 5E9F61241A3FFE3D0038DE01 /* CCPlane.cpp */, + 5E9F61251A3FFE3D0038DE01 /* CCPlane.h */, B60C5BD219AC68B10056FBDE /* CCBillBoard.cpp */, B60C5BD319AC68B10056FBDE /* CCBillBoard.h */, 15AE17E419AAD2F700C27E9E /* CCAABB.cpp */, @@ -5274,6 +5290,7 @@ 5034CA47191D591100CE6051 /* ccShader_Label_normal.frag in Headers */, 15AE182219AAD2F700C27E9E /* CCBundleReader.h in Headers */, 15AE18A519AAD33D00C27E9E /* CCScale9SpriteLoader.h in Headers */, + 5E9F61281A3FFE3D0038DE01 /* CCFrustum.h in Headers */, 50ED2BE019BEAF7900A0AB90 /* UIEditBoxImpl-win32.h in Headers */, 15AE197119AAD35700C27E9E /* CCFrame.h in Headers */, 15AE1A6519AAD40300C27E9E /* b2TimeStep.h in Headers */, @@ -5554,6 +5571,7 @@ 50ABBFFD1926664800A911A9 /* CCFileUtils-apple.h in Headers */, 15B3708219EE414C00ABE682 /* CCEventListenerAssetsManagerEx.h in Headers */, 15B3708619EE414C00ABE682 /* Downloader.h in Headers */, + 5E9F612C1A3FFE3D0038DE01 /* CCPlane.h in Headers */, 5034CA41191D591100CE6051 /* ccShader_Position_uColor.frag in Headers */, 50ABBE7F1925AB6F00A911A9 /* CCEventTouch.h in Headers */, 50ABBE5B1925AB6F00A911A9 /* CCEventKeyboard.h in Headers */, @@ -5844,6 +5862,7 @@ 15AE182F19AAD2F700C27E9E /* CCMeshVertexIndexData.h in Headers */, 15AE1BAA19AADFDF00C27E9E /* UIVBox.h in Headers */, 3EACC9A719F5014D00EB3C5E /* CCLight.h in Headers */, + 5E9F61291A3FFE3D0038DE01 /* CCFrustum.h in Headers */, 15AE194E19AAD35100C27E9E /* CCDataReaderHelper.h in Headers */, 15AE1ADB19AAD41000C27E9E /* b2Rope.h in Headers */, 1A5701CE180BCB5A0088DEC7 /* CCLabelTTF.h in Headers */, @@ -6121,6 +6140,7 @@ 15AE19AD19AAD39700C27E9E /* LoadingBarReader.h in Headers */, 50ABBE5C1925AB6F00A911A9 /* CCEventKeyboard.h in Headers */, B375107D1823ACA100B3BA6A /* CCPhysicsBodyInfo_chipmunk.h in Headers */, + 5E9F612D1A3FFE3D0038DE01 /* CCPlane.h in Headers */, 50ABC01C1926664800A911A9 /* CCSAXParser.h in Headers */, 503DD8F11926736A00CD74DD /* OpenGL_Internal-ios.h in Headers */, 38ACD1FF1A27111900C3093D /* WidgetCallBackHandlerProtocol.h in Headers */, @@ -6257,6 +6277,7 @@ 15AE189819AAD33D00C27E9E /* CCMenuItemLoader.cpp in Sources */, 15AE1A5719AAD40300C27E9E /* b2Settings.cpp in Sources */, 50ABBE271925AB6F00A911A9 /* CCAutoreleasePool.cpp in Sources */, + 5E9F612A1A3FFE3D0038DE01 /* CCPlane.cpp in Sources */, 15AE197419AAD35700C27E9E /* CCTimeLine.cpp in Sources */, 15AE188E19AAD33D00C27E9E /* CCLabelTTFLoader.cpp in Sources */, 15AE1A3019AAD3D500C27E9E /* b2ChainShape.cpp in Sources */, @@ -6526,6 +6547,7 @@ 15AE196E19AAD35700C27E9E /* CCActionTimelineCache.cpp in Sources */, 50ABBEB31925AB6F00A911A9 /* CCUserDefault-apple.mm in Sources */, 50ABBEB51925AB6F00A911A9 /* CCUserDefault-android.cpp in Sources */, + 5E9F61261A3FFE3D0038DE01 /* CCFrustum.cpp in Sources */, 29394CF619B01DBA00D2DE1A /* UIWebViewImpl-ios.mm in Sources */, 382383FC1A258FA7002C4610 /* idl_gen_text.cpp in Sources */, 50ABBE831925AB6F00A911A9 /* ccFPSImages.c in Sources */, @@ -6821,6 +6843,7 @@ B29A7E0019EE1B7700872B35 /* Json.c in Sources */, 1A570120180BC90D0088DEC7 /* CCGrid.cpp in Sources */, 15AE181119AAD2F700C27E9E /* CCAnimation3D.cpp in Sources */, + 5E9F612B1A3FFE3D0038DE01 /* CCPlane.cpp in Sources */, 1A57019E180BCB590088DEC7 /* CCFont.cpp in Sources */, 15AE1ACC19AAD40300C27E9E /* b2PrismaticJoint.cpp in Sources */, 15AE195F19AAD35100C27E9E /* CCSpriteFrameCacheHelper.cpp in Sources */, @@ -6988,6 +7011,7 @@ 1A57030D180BCF190088DEC7 /* CCComponent.cpp in Sources */, 15AE1B8F19AADA9A00C27E9E /* UIDeprecated.cpp in Sources */, 464AD6E6197EBB1400E502D8 /* pvr.cpp in Sources */, + 5E9F61271A3FFE3D0038DE01 /* CCFrustum.cpp in Sources */, 15AE1B7619AADA9A00C27E9E /* UIPageView.cpp in Sources */, 1A570311180BCF190088DEC7 /* CCComponentContainer.cpp in Sources */, 50ABBE2C1925AB6F00A911A9 /* ccCArray.cpp in Sources */, diff --git a/cocos/2d/CCCamera.cpp b/cocos/2d/CCCamera.cpp index 9bdbc33edc..63caff23b5 100644 --- a/cocos/2d/CCCamera.cpp +++ b/cocos/2d/CCCamera.cpp @@ -69,6 +69,8 @@ Camera::Camera() : _scene(nullptr) , _viewProjectionDirty(true) , _cameraFlag(1) +, _frustumDirty(true) +, _enableFrustumCull(true) { } @@ -248,6 +250,26 @@ void Camera::unproject(const Size& viewport, Vec3* src, Vec3* dst) const dst->set(screen.x, screen.y, screen.z); } +void Camera::enableFrustumCull(bool bEnalbe, bool bClipZ) +{ + _enableFrustumCull = bEnalbe; + _frustum.setClipZ(bClipZ); +} + +bool Camera::visibleInFrustum(const AABB& aabb) const +{ + if (_enableFrustumCull) + { + if (_frustumDirty) + { + _frustum.initFrustum(this); + _frustumDirty = false; + } + return !_frustum.isOutFrustum(aabb); + } + return true; +} + void Camera::onEnter() { if (_scene == nullptr) diff --git a/cocos/2d/CCCamera.h b/cocos/2d/CCCamera.h index c1178cd96b..0013ef90b7 100644 --- a/cocos/2d/CCCamera.h +++ b/cocos/2d/CCCamera.h @@ -25,6 +25,7 @@ THE SOFTWARE. #define _CCCAMERA_H__ #include "2d/CCNode.h" +#include "3d/CCFrustum.h" NS_CC_BEGIN @@ -135,6 +136,16 @@ public: */ void unproject(const Size& viewport, Vec3* src, Vec3* dst) const; + /** + * Enable frustum culling + */ + void enableFrustumCull(bool bEnalbe, bool bClipZ); + + /** + * Is this aabb visible in frustum + */ + bool visibleInFrustum(const AABB& aabb)const; + //override virtual void onEnter() override; virtual void onExit() override; @@ -171,7 +182,9 @@ protected: float _farPlane; mutable bool _viewProjectionDirty; unsigned short _cameraFlag; // camera flag - + mutable Frustum _frustum; // camera frustum + mutable bool _frustumDirty; + bool _enableFrustumCull; static Camera* _visitingCamera; friend class Director; diff --git a/cocos/3d/CCAttachNode.cpp b/cocos/3d/CCAttachNode.cpp index ee53d03d9d..819b852e58 100644 --- a/cocos/3d/CCAttachNode.cpp +++ b/cocos/3d/CCAttachNode.cpp @@ -62,6 +62,21 @@ Mat4 AttachNode::getWorldToNodeTransform() const return mat; } +Mat4 AttachNode::getNodeToWorldTransform() const +{ + auto parent = getParent(); + Mat4 mat; + if (parent) + { + mat = parent->getNodeToWorldTransform() * _attachBone->getWorldMat(); + } + else + { + mat = _attachBone->getWorldMat(); + } + return mat; +} + void AttachNode::visit(Renderer *renderer, const Mat4& parentTransform, uint32_t parentFlags) { Node::visit(renderer, parentTransform * _attachBone->getWorldMat(), Node::FLAGS_DIRTY_MASK); diff --git a/cocos/3d/CCAttachNode.h b/cocos/3d/CCAttachNode.h index f312b6cc7c..6cba23ae8b 100644 --- a/cocos/3d/CCAttachNode.h +++ b/cocos/3d/CCAttachNode.h @@ -49,6 +49,7 @@ public: static AttachNode* create(Bone3D* attachBone); virtual Mat4 getWorldToNodeTransform() const override; + virtual Mat4 getNodeToWorldTransform() const override; virtual void visit(Renderer *renderer, const Mat4& parentTransform, uint32_t parentFlags) override; CC_CONSTRUCTOR_ACCESS: diff --git a/cocos/3d/CCFrustum.cpp b/cocos/3d/CCFrustum.cpp new file mode 100755 index 0000000000..10fc0a5cac --- /dev/null +++ b/cocos/3d/CCFrustum.cpp @@ -0,0 +1,97 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#include "3d/CCFrustum.h" +#include "2d/CCCamera.h" + +NS_CC_BEGIN + +bool Frustum::initFrustum(const Camera* pCamera) +{ + _bInit = true; + createPlane(pCamera); + return true; +} +bool Frustum::isOutFrustum(const AABB& aabb) const +{ + if (_bInit) + { + Vec3 point; + + int nplane = _bClipZ ? 6 : 4; + for (int i = 0; i < nplane; i++) + { + const Vec3& normal = _plane[i].getNormal(); + point.x = normal.x < 0 ? aabb._max.x : aabb._min.x; + point.y = normal.y < 0 ? aabb._max.y : aabb._min.y; + point.z = normal.z < 0 ? aabb._max.z : aabb._min.z; + + if (_plane[i].getSide(point) == Plane::FRONT_PLANE ) + return true; + } + } + return false; +} + +bool Frustum::isOutFrustum(const OBB& obb) const +{ + if (_bInit) + { + Vec3 point; + + int nplane = _bClipZ ? 6 : 4; + + Vec3 obbExtentX = obb._xAxis * obb._extents.x; + Vec3 obbExtentY = obb._yAxis * obb._extents.y; + Vec3 obbExtentZ = obb._zAxis * obb._extents.z; + + for (int i = 0; i < nplane; i++) + { + const Vec3& normal = _plane[i].getNormal(); + point = obb._center; + point = normal.dot(obb._xAxis) > 0 ? point - obbExtentX : point + obbExtentX; + point = normal.dot(obb._yAxis) > 0 ? point - obbExtentY : point + obbExtentY; + point = normal.dot(obb._zAxis) > 0 ? point - obbExtentZ : point + obbExtentZ; + + if (_plane[i].getSide(point) == Plane::FRONT_PLANE) + return true; + } + } + return false; +} + +void Frustum::createPlane(const Camera* pcamera) +{ + const Mat4& mat = pcamera->getViewProjectionMatrix(); + //ref http://www.lighthouse3d.com/tutorials/view-frustum-culling/clip-space-approach-extracting-the-planes/ + //extract frustum plane + _plane[0].initPlane(-Vec3(mat.m[3] + mat.m[0], mat.m[7] + mat.m[4], mat.m[11] + mat.m[8]), (mat.m[15] + mat.m[12]));//left + _plane[1].initPlane(-Vec3(mat.m[3] - mat.m[0], mat.m[7] - mat.m[4], mat.m[11] - mat.m[8]), (mat.m[15] - mat.m[12]));//right + _plane[2].initPlane(-Vec3(mat.m[3] + mat.m[1], mat.m[7] + mat.m[5], mat.m[11] + mat.m[9]), (mat.m[15] + mat.m[13]));//bottom + _plane[3].initPlane(-Vec3(mat.m[3] - mat.m[1], mat.m[7] - mat.m[5], mat.m[11] - mat.m[9]), (mat.m[15] - mat.m[13]));//top + _plane[4].initPlane(-Vec3(mat.m[3] + mat.m[2], mat.m[7] + mat.m[6], mat.m[11] + mat.m[10]), (mat.m[15] + mat.m[14]));//near + _plane[5].initPlane(-Vec3(mat.m[3] - mat.m[2], mat.m[7] - mat.m[6], mat.m[11] - mat.m[10]), (mat.m[15] - mat.m[14]));//far +} + +NS_CC_END diff --git a/cocos/3d/CCFrustum.h b/cocos/3d/CCFrustum.h new file mode 100755 index 0000000000..48f71c1a5d --- /dev/null +++ b/cocos/3d/CCFrustum.h @@ -0,0 +1,80 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#ifndef __CC_FRUSTUM_H_ +#define __CC_FRUSTUM_H_ + +#include "base/ccMacros.h" +#include "math/CCMath.h" +#include "3d/CCAABB.h" +#include "3d/CCOBB.h" +#include "3d/CCPlane.h" + +NS_CC_BEGIN + +class Camera; +class CC_DLL Frustum +{ + friend class Camera; +public: + /** + * Constructor & Destructor. + */ + Frustum(): _bInit(false), _bClipZ(true){} + ~Frustum(){} + + /** + * init frustum from camera. + */ + bool initFrustum(const Camera* pCamera); + + /** + * is aabb out of frustum. + */ + bool isOutFrustum(const AABB& aabb) const; + /** + * is obb out of frustum + */ + bool isOutFrustum(const OBB& obb) const; + + /** + * get & set z clip. if bclipZ == true use near and far plane + */ + void setClipZ(bool bclipZ) { _bClipZ = bclipZ; } + bool isClipZ() { return _bClipZ; } + +protected: + /** + * create clip plane + */ + void createPlane(const Camera* pcamera); + + Plane _plane[6]; // clip plane, left, right, top, bottom, near, far + bool _bClipZ; // use near and far clip plane + bool _bInit; +}; + +NS_CC_END + +#endif//__CC_FRUSTUM_H_ diff --git a/cocos/3d/CCPlane.cpp b/cocos/3d/CCPlane.cpp new file mode 100755 index 0000000000..7668ea28b3 --- /dev/null +++ b/cocos/3d/CCPlane.cpp @@ -0,0 +1,95 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#include "CCPlane.h" + +NS_CC_BEGIN + +Plane::Plane() +{ + _normal.set(0.0f, 0.0f, 1.0f); + _dist = 0.0f; +} + +// create plane from tree point +Plane::Plane(const Vec3& p1, const Vec3& p2, const Vec3& p3) +{ + initPlane(p1, p2, p3); +} + +// create plane from normal and dist +Plane::Plane(const Vec3& normal, float dist) +{ + initPlane(normal, dist); +} + +// create plane from normal and a point on plane +Plane::Plane(const Vec3& normal, const Vec3& point) +{ + initPlane(normal, point); +} + +void Plane::initPlane(const Vec3& p1, const Vec3& p2, const Vec3& p3) +{ + Vec3 p21 = p2 - p1; + Vec3 p32 = p3 - p2; + + Vec3::cross(p21, p32, &_normal); + + _normal.normalize(); + _dist = _normal.dot(p1); +} + +void Plane::initPlane(const Vec3& normal, float dist) +{ + float oneOverLength = 1 / normal.length(); + _normal = normal * oneOverLength; + _dist = dist * oneOverLength; +} + +void Plane::initPlane(const Vec3& normal, const Vec3& point) +{ + _normal = normal; + _normal.normalize(); + _dist = _normal.dot(point); +} + +float Plane::dist2Plane(const Vec3& p) const +{ + return _normal.dot(p) - _dist; +} + + +Plane::POINT_SIDE Plane::getSide(const Vec3& point) const +{ + float dist = dist2Plane(point); + if (dist > 0) + return Plane::FRONT_PLANE; + else if (dist < 0) + return Plane::BEHIND_PLANE; + + return Plane::ON_PLANE; +} + +NS_CC_END diff --git a/cocos/3d/CCPlane.h b/cocos/3d/CCPlane.h new file mode 100755 index 0000000000..1ce1cb5ec7 --- /dev/null +++ b/cocos/3d/CCPlane.h @@ -0,0 +1,102 @@ +/**************************************************************************** + Copyright (c) 2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#ifndef __CC_PLANE_H_ +#define __CC_PLANE_H_ + +#include "base/ccMacros.h" +#include "math/CCMath.h" + +NS_CC_BEGIN + +class CC_DLL Plane +{ +public: + enum POINT_SIDE + { + ON_PLANE, + FRONT_PLANE, + BEHIND_PLANE, + }; + +public: + /** + * create plane from tree point. + */ + Plane(const Vec3& p1, const Vec3& p2, const Vec3& p3); + + /** + * create plane from normal and dist. + */ + Plane(const Vec3& normal, float dist); + + /** + * create plane from normal and a point on plane. + */ + Plane(const Vec3& normal, const Vec3& point); + Plane(); + + /** + * init plane from tree point. + */ + void initPlane(const Vec3& p1, const Vec3& p2, const Vec3& p3); + + /** + * init plane from normal and dist. + */ + void initPlane(const Vec3& normal, float dist); + + /** + * init plane from normal and a point on plane. + */ + void initPlane(const Vec3& normal, const Vec3& point); + + /** + * dist to plane, > 0 normal direction + */ + float dist2Plane(const Vec3& p) const; + + /** + * Gets the plane's normal. + */ + const Vec3& getNormal() const { return _normal; } + + /** + * Gets the plane's distance to the origin along its normal. + */ + float getDist() const { return _dist; } + + /** + * Return the side where the point is. + */ + POINT_SIDE getSide(const Vec3& point) const; + +protected: + Vec3 _normal; + float _dist; +}; + +NS_CC_END + +#endif diff --git a/cocos/3d/CCRay.cpp b/cocos/3d/CCRay.cpp index 94189183d1..604311676f 100755 --- a/cocos/3d/CCRay.cpp +++ b/cocos/3d/CCRay.cpp @@ -140,10 +140,26 @@ bool Ray::intersects(const OBB& obb) const return ray.intersects(aabb); } +float Ray::dist(const Plane& plane) const +{ + float ndd = Vec3::dot(plane.getNormal(),_direction); + if(ndd == 0) + return 0.0f; + float ndo = Vec3::dot(plane.getNormal(),_origin); + return (plane.getDist() - ndo) / ndd; +} + +Vec3 Ray::intersects(const Plane& plane) const +{ + float dis = this->dist(plane); + return _origin + dis * _direction; +} + void Ray::set(const Vec3& origin, const Vec3& direction) { _origin = origin; _direction = direction; + _direction.normalize(); } void Ray::transform(const Mat4& matrix) diff --git a/cocos/3d/CCRay.h b/cocos/3d/CCRay.h index 417147d56d..d4d9f59f46 100644 --- a/cocos/3d/CCRay.h +++ b/cocos/3d/CCRay.h @@ -28,6 +28,7 @@ #include "math/CCMath.h" #include "3d/CCAABB.h" #include "3d/CCOBB.h" +#include "3d/CCPlane.h" NS_CC_BEGIN @@ -67,6 +68,9 @@ public: */ bool intersects(const OBB& obb) const; + float dist(const Plane& plane) const; + Vec3 intersects(const Plane& plane) const; + /** * Sets this ray to the specified values. * diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 0a4f31b5bb..20b1bbd651 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -27,107 +27,6 @@ THE SOFTWARE. #include #include "../testResource.h" -////////////DrawLine///////////////////// - -class DrawLine3D: public Node -{ -public: - /** creates and initialize a node */ - static DrawLine3D* create(); - - /** - * Draw 3D Line - */ - void drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color); - - /** Clear the geometry in the node's buffer. */ - void clear() - { - _buffer.clear(); - } - - void onDraw(const Mat4 &transform, uint32_t flags); - - // Overrides - virtual void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) override; - -CC_CONSTRUCTOR_ACCESS: - DrawLine3D() - { - - } - virtual ~DrawLine3D() - { - - } - virtual bool init(); - -protected: - struct V3F_C4B - { - Vec3 vertices; - Color4B colors; - }; - - std::vector _buffer; - - CustomCommand _customCommand; - -private: - CC_DISALLOW_COPY_AND_ASSIGN(DrawLine3D); -}; - -DrawLine3D* DrawLine3D::create() -{ - auto ret = new (std::nothrow) DrawLine3D(); - if (ret && ret->init()) - return ret; - CC_SAFE_DELETE(ret); - return nullptr; -} - -bool DrawLine3D::init() -{ - setGLProgramState(GLProgramState::getOrCreateWithGLProgramName(GLProgram::SHADER_NAME_POSITION_COLOR)); - return true; -} - -void DrawLine3D::drawLine(const Vec3 &from, const Vec3 &to, const Color4F &color) -{ - Color4B col = Color4B(color); - DrawLine3D::V3F_C4B vertex; - vertex.vertices = from; - vertex.colors = col; - _buffer.push_back(vertex); - vertex.vertices = to; - _buffer.push_back(vertex); -} - -void DrawLine3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) -{ - _customCommand.init(_globalZOrder); - _customCommand.func = CC_CALLBACK_0(DrawLine3D::onDraw, this, transform, flags); - renderer->addCommand(&_customCommand); -} - -void DrawLine3D::onDraw(const Mat4 &transform, uint32_t flags) -{ - auto glProgram = getGLProgram(); - glProgram->use(); - glProgram->setUniformsForBuiltins(transform); - glEnable(GL_DEPTH_TEST); - glBindBuffer(GL_ARRAY_BUFFER, 0); - glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_POSITION); - glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_POSITION, 3, GL_FLOAT, GL_FALSE, sizeof(V3F_C4B), &(_buffer[0].vertices)); - - glEnableVertexAttribArray(GLProgram::VERTEX_ATTRIB_COLOR); - glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(V3F_C4B), &(_buffer[0].colors)); - glDrawArrays(GL_LINES, 0, static_cast(_buffer.size())); - glDisable(GL_DEPTH_TEST); -} - -//////////////////////////////////////////////////////////////////////////////// - enum { IDC_NEXT = 100, @@ -140,6 +39,7 @@ static int sceneIdx = -1; static std::function createFunctions[] = { CL(Camera3DTestDemo), + CL(CameraClipPerformance) }; #define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0])) @@ -354,7 +254,7 @@ void Camera3DTestDemo::onEnter() _layer3D->addChild(_camera); } SwitchViewCallback(this,CameraType::ThirdCamera); - DrawLine3D* line =DrawLine3D::create(); + DrawNode3D* line =DrawNode3D::create(); //draw x for( int j =-20; j<=20 ;j++) { @@ -755,6 +655,257 @@ void Camera3DTestDemo::onTouchesRotateRightEnd(Touch* touch, Event* event) { _bRotateRight = false; } + + +//////////////////////////////////////////////////////////// +// CameraClipPerformance +CameraClipPerformance::CameraClipPerformance(void) +: BaseTest() +, _labelDrawCall(nullptr) +, _layer3D(nullptr) +, _cameraFirst(nullptr) +, _drawAABB(nullptr) +//, _sprite3D(nullptr) +{ +} +CameraClipPerformance::~CameraClipPerformance(void) +{ +} + +std::string CameraClipPerformance::title() const +{ + return "Testing Camera"; +} + +std::string CameraClipPerformance::subtitle() const +{ + return "ClipPerformance Test"; +} + +void CameraClipPerformance::inFrustum(Ref* sender) +{ + float newY = 0.f - _posY; + Mat4 mat = Mat4::IDENTITY; + mat.translate(0, newY, 0); + _drawAABB->clear(); + + for (auto& iter: listAABB) + { + iter.transform(mat); + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _posY = 0; +} + +void CameraClipPerformance::partInFrustum(Ref* sender) +{ + float newY = 60.f - _posY; + Mat4 mat = Mat4::IDENTITY; + mat.translate(0, newY, 0); + _drawAABB->clear(); + + for (auto& iter: listAABB) + { + iter.transform(mat); + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _posY = 60; +} + +void CameraClipPerformance::outFrustum(Ref* sender) +{ + float newY = 90.f - _posY; + Mat4 mat = Mat4::IDENTITY; + mat.translate(0, newY, 0); + _drawAABB->clear(); + + for (auto& iter: listAABB) + { + iter.transform(mat); + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _posY = 90; +} + +void CameraClipPerformance::calculate(Ref* sender) +{ + AABB aabb; + _cameraFirst->visibleInFrustum(aabb); + + auto lastTime = utils::gettime(); + for (auto& iter : listAABB) + { + _cameraFirst->visibleInFrustum(iter); + } + auto deltaTime = utils::gettime() - lastTime; + + char szDrawCall[255]; + sprintf(szDrawCall, "Time: %f", deltaTime); + _labelDrawCall->setString(szDrawCall); +} + +//void CameraClipPerformance::switchViewCallback(Ref* sender, CameraType cameraType) +//{ +// if(_cameraType==cameraType) +// { +// return ; +// } +// _cameraType = cameraType; +// if(_cameraType==CameraType::FirstCamera) +// { +// _drawFrustum->clear(); +// _cameraFirst->setCameraFlag(CameraFlag::USER1); +// _cameraThird->setCameraFlag(CameraFlag::USER8); +// _cameraFirst->enableFrustumCull(true, true); +// } +// else if(_cameraType==CameraType::ThirdCamera) +// { +// _cameraThird->setCameraFlag(CameraFlag::USER1); +// _cameraFirst->setCameraFlag(CameraFlag::USER8); +// _cameraThird->enableFrustumCull(false, false); +// } +//} + +void CameraClipPerformance::onEnter() +{ + BaseTest::onEnter(); + auto s = Director::getInstance()->getWinSize(); + auto listener = EventListenerTouchAllAtOnce::create(); + listener->onTouchesBegan = CC_CALLBACK_2(CameraClipPerformance::onTouchesBegan, this); + listener->onTouchesMoved = CC_CALLBACK_2(CameraClipPerformance::onTouchesMoved, this); + listener->onTouchesEnded = CC_CALLBACK_2(CameraClipPerformance::onTouchesEnded, this); + _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); + + + TTFConfig ttfConfig("fonts/arial.ttf", 20); + auto label1 = Label::createWithTTF(ttfConfig,"In"); + auto menuItem1 = MenuItemLabel::create(label1, CC_CALLBACK_1(CameraClipPerformance::inFrustum,this)); + auto label2 = Label::createWithTTF(ttfConfig,"Part In"); + auto menuItem2 = MenuItemLabel::create(label2, CC_CALLBACK_1(CameraClipPerformance::partInFrustum,this)); + auto label3 = Label::createWithTTF(ttfConfig,"Out"); + auto menuItem3 = MenuItemLabel::create(label3, CC_CALLBACK_1(CameraClipPerformance::outFrustum,this)); + auto label4 = Label::createWithTTF(ttfConfig,"Calculate"); + auto menuItem4 = MenuItemLabel::create(label4, CC_CALLBACK_1(CameraClipPerformance::calculate,this)); + + auto menu = Menu::create(menuItem1,menuItem2,menuItem3,menuItem4,NULL); + + menu->setPosition(Vec2::ZERO); + menuItem1->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -50); + menuItem2->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -80); + menuItem3->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -110); + menuItem4->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -140); + addChild(menu, 0); + + _labelDrawCall = Label::createWithTTF(ttfConfig,"Time: "); + _labelDrawCall->setPosition(VisibleRect::rightTop().x-80, VisibleRect::rightTop().y -50); + addChild(_labelDrawCall, 0); + + // 3D layer + auto layer3D=Layer::create(); + addChild(layer3D,0); + _layer3D=layer3D; + + // init camera + initCamera(); + + // draw line + DrawNode3D* line =DrawNode3D::create(); + const int gridNum = 30; + const int girdSize = 5; + //draw x + for( int j =-gridNum; j<=gridNum ;j++) + { + line->drawLine(Vec3(-gridNum*girdSize, 0, 5*j),Vec3(gridNum*girdSize,0,5*j),Color4F(1,0,0,1)); + } + //draw z + for( int j =-gridNum; j<=gridNum ;j++) + { + line->drawLine(Vec3(5*j, 0, -gridNum*girdSize),Vec3(5*j,0,gridNum*girdSize),Color4F(0,0,1,1)); + } + + _layer3D->addChild(line); + + _drawAABB = DrawNode3D::create(); + _layer3D->addChild(_drawAABB); + + // // add some objects to 3d layer + // _sprite3D = Sprite3D::create("Sprite3DTest/boss.c3b"); + // _layer3D->addChild(_sprite3D); + + _posY = 0.f; + + //int num = 1000; + listAABB.clear(); + for (int i = -500; i < 500; i++) + { + AABB aabb(Vec3(-10,-10,-10), Vec3(10,10,10)); + Mat4 mat = Mat4::IDENTITY; + mat.translate(i/10.f, _posY, 0); + aabb.transform(mat); + listAABB.push_back(aabb); + } + + for (const auto& iter: listAABB) { + Vec3 corners[8]; + iter.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + + _layer3D->setCameraMask(2); +} + +void CameraClipPerformance::onExit() +{ + BaseTest::onExit(); + if (_cameraFirst) + { + _cameraFirst = nullptr; + } +} + +void CameraClipPerformance::restartCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild(restartSpriteTestAction()); + + Director::getInstance()->replaceScene(s); + s->release(); +} + +void CameraClipPerformance::nextCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild( nextSpriteTestAction() ); + Director::getInstance()->replaceScene(s); + s->release(); +} +void CameraClipPerformance::backCallback(Ref* sender) +{ + auto s = new (std::nothrow) Camera3DTestScene(); + s->addChild( backSpriteTestAction() ); + Director::getInstance()->replaceScene(s); + s->release(); +} + +void CameraClipPerformance::initCamera() +{ + auto s = Director::getInstance()->getWinSize(); + _cameraFirst=Camera::createPerspective(60, (GLfloat)s.width/s.height, 1, 300); + _cameraFirst->setPosition3D(Vec3(0,0,100)); + _cameraFirst->lookAt(Vec3(0,0,0), Vec3(0, 1, 0)); + _cameraFirst->setCameraFlag(CameraFlag::USER1); + _layer3D->addChild(_cameraFirst); +} + void Camera3DTestScene::runThisTest() { auto layer = nextSpriteTestAction(); diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h index 9d24a0fdb7..417b23b94d 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h @@ -27,11 +27,14 @@ THE SOFTWARE. #include "../testBasic.h" #include "../BaseTest.h" +#include "DrawNode3D.h" #include + namespace cocos2d { class Sprite3D; class Delay; } + enum State { State_None = 0, @@ -106,6 +109,39 @@ protected: Label* _ZoomInlabel; Label* _ZoomOutlabel; }; + +class CameraClipPerformance : public BaseTest +{ +public: + CREATE_FUNC(CameraClipPerformance); + CameraClipPerformance(void); + virtual ~CameraClipPerformance(void); + + void restartCallback(Ref* sender); + void nextCallback(Ref* sender); + void backCallback(Ref* sender); + virtual void onEnter() override; + virtual void onExit() override; + // overrides + virtual std::string title() const override; + virtual std::string subtitle() const override; + void reachEndCallBack(); + void inFrustum(Ref* sender); + void partInFrustum(Ref* sender); + void outFrustum(Ref* sender); + void calculate(Ref* sender); + void initCamera(); + +protected: + std::string _title; + Label* _labelDrawCall; + Layer* _layer3D; + Camera* _cameraFirst; + DrawNode3D* _drawAABB; + std::vector listAABB; + float _posY; +}; + class Camera3DTestScene : public TestScene { public: From f6bea9b6bb181b66bfa3ac9de145ac2af54e5d10 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 18 Dec 2014 17:18:22 +0800 Subject: [PATCH 05/21] 1.add camera culling. 2.add camera culling sample. 3.fix bug: load .obj file material. --- cocos/2d/CCCamera.cpp | 3 + cocos/3d/CCAttachNode.cpp | 2 +- cocos/3d/CCBundle3D.cpp | 3 +- cocos/3d/CCSprite3D.cpp | 4 + .../Classes/Camera3DTest/Camera3DTest.cpp | 483 ++++++++++-------- .../Classes/Camera3DTest/Camera3DTest.h | 40 +- 6 files changed, 303 insertions(+), 232 deletions(-) diff --git a/cocos/2d/CCCamera.cpp b/cocos/2d/CCCamera.cpp index 63caff23b5..a1763b889a 100644 --- a/cocos/2d/CCCamera.cpp +++ b/cocos/2d/CCCamera.cpp @@ -98,6 +98,7 @@ const Mat4& Camera::getViewMatrix() const if (memcmp(viewInv.m, _viewInv.m, count) != 0) { _viewProjectionDirty = true; + _frustumDirty = true; _viewInv = viewInv; _view = viewInv.getInversed(); } @@ -207,6 +208,7 @@ bool Camera::initPerspective(float fieldOfView, float aspectRatio, float nearPla } #endif _viewProjectionDirty = true; + _frustumDirty = true; return true; } @@ -227,6 +229,7 @@ bool Camera::initOrthographic(float zoomX, float zoomY, float nearPlane, float f } #endif _viewProjectionDirty = true; + _frustumDirty = true; return true; } diff --git a/cocos/3d/CCAttachNode.cpp b/cocos/3d/CCAttachNode.cpp index 819b852e58..0cb16fca26 100644 --- a/cocos/3d/CCAttachNode.cpp +++ b/cocos/3d/CCAttachNode.cpp @@ -64,8 +64,8 @@ Mat4 AttachNode::getWorldToNodeTransform() const Mat4 AttachNode::getNodeToWorldTransform() const { - auto parent = getParent(); Mat4 mat; + auto parent = getParent(); if (parent) { mat = parent->getNodeToWorldTransform() * _attachBone->getWorldMat(); diff --git a/cocos/3d/CCBundle3D.cpp b/cocos/3d/CCBundle3D.cpp index 7c0848723d..183dd03c10 100644 --- a/cocos/3d/CCBundle3D.cpp +++ b/cocos/3d/CCBundle3D.cpp @@ -269,7 +269,6 @@ bool Bundle3D::loadObj(MeshDatas& meshdatas, MaterialDatas& materialdatas, NodeD } meshdatas.meshDatas.push_back(meshdata); - NMaterialData materialdata; int i = 0; char str[20]; std::string dir = ""; @@ -279,6 +278,8 @@ bool Bundle3D::loadObj(MeshDatas& meshdatas, MaterialDatas& materialdatas, NodeD for (const auto& it : shapes.shapes) { + NMaterialData materialdata; + NTextureData tex; tex.filename = dir + it.material.diffuse_texname; tex.type = NTextureData::Usage::Diffuse; diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 9af61eb005..33873ae0d7 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -537,6 +537,10 @@ static Texture2D * getDummyTexture() void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { + // camera clipping + if(!Camera::getVisitingCamera()->visibleInFrustum(this->getAABB())) + return; + if (_skeleton) _skeleton->updateBoneMatrix(); diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 20b1bbd651..18bcb89f26 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -39,7 +39,7 @@ static int sceneIdx = -1; static std::function createFunctions[] = { CL(Camera3DTestDemo), - CL(CameraClipPerformance) + CL(CameraClippingDemo) }; #define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0])) @@ -656,223 +656,30 @@ void Camera3DTestDemo::onTouchesRotateRightEnd(Touch* touch, Event* event) _bRotateRight = false; } - //////////////////////////////////////////////////////////// -// CameraClipPerformance -CameraClipPerformance::CameraClipPerformance(void) +// CameraClippingDemo +CameraClippingDemo::CameraClippingDemo(void) : BaseTest() -, _labelDrawCall(nullptr) , _layer3D(nullptr) +, _cameraType(CameraType::FirstCamera) , _cameraFirst(nullptr) +, _cameraThird(nullptr) +, _moveAction(nullptr) , _drawAABB(nullptr) -//, _sprite3D(nullptr) +, _drawFrustum(nullptr) +, _row(0) { } -CameraClipPerformance::~CameraClipPerformance(void) +CameraClippingDemo::~CameraClippingDemo(void) { } -std::string CameraClipPerformance::title() const +std::string CameraClippingDemo::title() const { - return "Testing Camera"; + return "Camera Frustum Clipping"; } -std::string CameraClipPerformance::subtitle() const -{ - return "ClipPerformance Test"; -} - -void CameraClipPerformance::inFrustum(Ref* sender) -{ - float newY = 0.f - _posY; - Mat4 mat = Mat4::IDENTITY; - mat.translate(0, newY, 0); - _drawAABB->clear(); - - for (auto& iter: listAABB) - { - iter.transform(mat); - Vec3 corners[8]; - iter.getCorners(corners); - _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); - } - - _posY = 0; -} - -void CameraClipPerformance::partInFrustum(Ref* sender) -{ - float newY = 60.f - _posY; - Mat4 mat = Mat4::IDENTITY; - mat.translate(0, newY, 0); - _drawAABB->clear(); - - for (auto& iter: listAABB) - { - iter.transform(mat); - Vec3 corners[8]; - iter.getCorners(corners); - _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); - } - - _posY = 60; -} - -void CameraClipPerformance::outFrustum(Ref* sender) -{ - float newY = 90.f - _posY; - Mat4 mat = Mat4::IDENTITY; - mat.translate(0, newY, 0); - _drawAABB->clear(); - - for (auto& iter: listAABB) - { - iter.transform(mat); - Vec3 corners[8]; - iter.getCorners(corners); - _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); - } - - _posY = 90; -} - -void CameraClipPerformance::calculate(Ref* sender) -{ - AABB aabb; - _cameraFirst->visibleInFrustum(aabb); - - auto lastTime = utils::gettime(); - for (auto& iter : listAABB) - { - _cameraFirst->visibleInFrustum(iter); - } - auto deltaTime = utils::gettime() - lastTime; - - char szDrawCall[255]; - sprintf(szDrawCall, "Time: %f", deltaTime); - _labelDrawCall->setString(szDrawCall); -} - -//void CameraClipPerformance::switchViewCallback(Ref* sender, CameraType cameraType) -//{ -// if(_cameraType==cameraType) -// { -// return ; -// } -// _cameraType = cameraType; -// if(_cameraType==CameraType::FirstCamera) -// { -// _drawFrustum->clear(); -// _cameraFirst->setCameraFlag(CameraFlag::USER1); -// _cameraThird->setCameraFlag(CameraFlag::USER8); -// _cameraFirst->enableFrustumCull(true, true); -// } -// else if(_cameraType==CameraType::ThirdCamera) -// { -// _cameraThird->setCameraFlag(CameraFlag::USER1); -// _cameraFirst->setCameraFlag(CameraFlag::USER8); -// _cameraThird->enableFrustumCull(false, false); -// } -//} - -void CameraClipPerformance::onEnter() -{ - BaseTest::onEnter(); - auto s = Director::getInstance()->getWinSize(); - auto listener = EventListenerTouchAllAtOnce::create(); - listener->onTouchesBegan = CC_CALLBACK_2(CameraClipPerformance::onTouchesBegan, this); - listener->onTouchesMoved = CC_CALLBACK_2(CameraClipPerformance::onTouchesMoved, this); - listener->onTouchesEnded = CC_CALLBACK_2(CameraClipPerformance::onTouchesEnded, this); - _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); - - - TTFConfig ttfConfig("fonts/arial.ttf", 20); - auto label1 = Label::createWithTTF(ttfConfig,"In"); - auto menuItem1 = MenuItemLabel::create(label1, CC_CALLBACK_1(CameraClipPerformance::inFrustum,this)); - auto label2 = Label::createWithTTF(ttfConfig,"Part In"); - auto menuItem2 = MenuItemLabel::create(label2, CC_CALLBACK_1(CameraClipPerformance::partInFrustum,this)); - auto label3 = Label::createWithTTF(ttfConfig,"Out"); - auto menuItem3 = MenuItemLabel::create(label3, CC_CALLBACK_1(CameraClipPerformance::outFrustum,this)); - auto label4 = Label::createWithTTF(ttfConfig,"Calculate"); - auto menuItem4 = MenuItemLabel::create(label4, CC_CALLBACK_1(CameraClipPerformance::calculate,this)); - - auto menu = Menu::create(menuItem1,menuItem2,menuItem3,menuItem4,NULL); - - menu->setPosition(Vec2::ZERO); - menuItem1->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -50); - menuItem2->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -80); - menuItem3->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -110); - menuItem4->setPosition(VisibleRect::left().x+70, VisibleRect::top().y -140); - addChild(menu, 0); - - _labelDrawCall = Label::createWithTTF(ttfConfig,"Time: "); - _labelDrawCall->setPosition(VisibleRect::rightTop().x-80, VisibleRect::rightTop().y -50); - addChild(_labelDrawCall, 0); - - // 3D layer - auto layer3D=Layer::create(); - addChild(layer3D,0); - _layer3D=layer3D; - - // init camera - initCamera(); - - // draw line - DrawNode3D* line =DrawNode3D::create(); - const int gridNum = 30; - const int girdSize = 5; - //draw x - for( int j =-gridNum; j<=gridNum ;j++) - { - line->drawLine(Vec3(-gridNum*girdSize, 0, 5*j),Vec3(gridNum*girdSize,0,5*j),Color4F(1,0,0,1)); - } - //draw z - for( int j =-gridNum; j<=gridNum ;j++) - { - line->drawLine(Vec3(5*j, 0, -gridNum*girdSize),Vec3(5*j,0,gridNum*girdSize),Color4F(0,0,1,1)); - } - - _layer3D->addChild(line); - - _drawAABB = DrawNode3D::create(); - _layer3D->addChild(_drawAABB); - - // // add some objects to 3d layer - // _sprite3D = Sprite3D::create("Sprite3DTest/boss.c3b"); - // _layer3D->addChild(_sprite3D); - - _posY = 0.f; - - //int num = 1000; - listAABB.clear(); - for (int i = -500; i < 500; i++) - { - AABB aabb(Vec3(-10,-10,-10), Vec3(10,10,10)); - Mat4 mat = Mat4::IDENTITY; - mat.translate(i/10.f, _posY, 0); - aabb.transform(mat); - listAABB.push_back(aabb); - } - - for (const auto& iter: listAABB) { - Vec3 corners[8]; - iter.getCorners(corners); - _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); - } - - _layer3D->setCameraMask(2); -} - -void CameraClipPerformance::onExit() -{ - BaseTest::onExit(); - if (_cameraFirst) - { - _cameraFirst = nullptr; - } -} - -void CameraClipPerformance::restartCallback(Ref* sender) +void CameraClippingDemo::restartCallback(Ref* sender) { auto s = new (std::nothrow) Camera3DTestScene(); s->addChild(restartSpriteTestAction()); @@ -881,14 +688,15 @@ void CameraClipPerformance::restartCallback(Ref* sender) s->release(); } -void CameraClipPerformance::nextCallback(Ref* sender) +void CameraClippingDemo::nextCallback(Ref* sender) { auto s = new (std::nothrow) Camera3DTestScene(); s->addChild( nextSpriteTestAction() ); Director::getInstance()->replaceScene(s); s->release(); } -void CameraClipPerformance::backCallback(Ref* sender) + +void CameraClippingDemo::backCallback(Ref* sender) { auto s = new (std::nothrow) Camera3DTestScene(); s->addChild( backSpriteTestAction() ); @@ -896,14 +704,263 @@ void CameraClipPerformance::backCallback(Ref* sender) s->release(); } -void CameraClipPerformance::initCamera() +void CameraClippingDemo::onEnter() +{ + BaseTest::onEnter(); + schedule(schedule_selector(CameraClippingDemo::update), 0.0f); + + auto s = Director::getInstance()->getWinSize(); + auto listener = EventListenerTouchAllAtOnce::create(); + listener->onTouchesBegan = CC_CALLBACK_2(CameraClippingDemo::onTouchesBegan, this); + listener->onTouchesMoved = CC_CALLBACK_2(CameraClippingDemo::onTouchesMoved, this); + listener->onTouchesEnded = CC_CALLBACK_2(CameraClippingDemo::onTouchesEnded, this); + _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); + auto layer3D=Layer::create(); + addChild(layer3D,0); + _layer3D=layer3D; + + // swich camera + MenuItemFont::setFontName("fonts/arial.ttf"); + MenuItemFont::setFontSize(20); + + auto menuItem1 = MenuItemFont::create("Switch Camera", CC_CALLBACK_1(CameraClippingDemo::switchViewCallback,this)); + menuItem1->setColor(Color3B(0,200,20)); + auto menu = Menu::create(menuItem1,NULL); + menu->setPosition(Vec2::ZERO); + menuItem1->setPosition(VisibleRect::left().x + 80, VisibleRect::top().y -70); + addChild(menu, 1); + + // + - + MenuItemFont::setFontSize(40); + auto decrease = MenuItemFont::create(" - ", CC_CALLBACK_1(CameraClippingDemo::delSpriteCallback, this)); + decrease->setColor(Color3B(0,200,20)); + auto increase = MenuItemFont::create(" + ", CC_CALLBACK_1(CameraClippingDemo::addSpriteCallback, this)); + increase->setColor(Color3B(0,200,20)); + + menu = Menu::create(decrease, increase, nullptr); + menu->alignItemsHorizontally(); + menu->setPosition(Vec2(s.width - 60, VisibleRect::top().y -70)); + addChild(menu, 1); + + TTFConfig ttfCount("fonts/Marker Felt.ttf", 30); + _labelSprite3DCount = Label::createWithTTF(ttfCount,"0 sprits"); + _labelSprite3DCount->setColor(Color3B(0,200,20)); + _labelSprite3DCount->setPosition(Vec2(s.width/2, VisibleRect::top().y -70)); + addChild(_labelSprite3DCount); + + // aabb drawNode3D + _drawAABB = DrawNode3D::create(); + _drawAABB->setCameraMask((unsigned short) CameraFlag::USER1); + addChild(_drawAABB); + + // frustum drawNode3D + _drawFrustum = DrawNode3D::create(); + _drawFrustum->setCameraMask((unsigned short) CameraFlag::USER1); + addChild(_drawFrustum); + + // set camera + switchViewCallback(this); + + // add sprite + addSpriteCallback(nullptr); +} + +void CameraClippingDemo::onExit() +{ + BaseTest::onExit(); + if (_cameraFirst) + { + _cameraFirst = nullptr; + } + if (_cameraThird) + { + _cameraThird = nullptr; + } +} + +void CameraClippingDemo::update(float dt) +{ + _drawAABB->clear(); + + if(_cameraType == CameraType::ThirdCamera) + drawCameraFrustum(); + + Vector& children = _layer3D->getChildren(); + Vec3 corners[8]; + + for (const auto& iter: children) + { + const AABB& aabb = static_cast(iter)->getAABB(); + if (_cameraFirst->visibleInFrustum(aabb)) + { + aabb.getCorners(corners); + _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); + } + } +} + +void CameraClippingDemo::reachEndCallBack() +{ + _cameraFirst->stopActionByTag(100); + auto inverse = (MoveTo*)_moveAction->reverse(); + inverse->retain(); + _moveAction->release(); + _moveAction = inverse; + auto rot = RotateBy::create(1.f, Vec3(0.f, 180.f, 0.f)); + auto seq = Sequence::create(rot, _moveAction, CallFunc::create(CC_CALLBACK_0(CameraClippingDemo::reachEndCallBack, this)), nullptr); + seq->setTag(100); + _cameraFirst->runAction(seq); +} + +void CameraClippingDemo::switchViewCallback(Ref* sender) { auto s = Director::getInstance()->getWinSize(); - _cameraFirst=Camera::createPerspective(60, (GLfloat)s.width/s.height, 1, 300); - _cameraFirst->setPosition3D(Vec3(0,0,100)); - _cameraFirst->lookAt(Vec3(0,0,0), Vec3(0, 1, 0)); - _cameraFirst->setCameraFlag(CameraFlag::USER1); - _layer3D->addChild(_cameraFirst); + + if (_cameraFirst == nullptr) + { + _cameraFirst = Camera::createPerspective(30, (GLfloat)s.width/s.height, 10, 200); + _cameraFirst->setCameraFlag(CameraFlag::USER8); + _cameraFirst->setPosition3D(Vec3(-100,0,0)); + _cameraFirst->lookAt(Vec3(1000,0,0), Vec3(0, 1, 0)); + _moveAction = MoveTo::create(4.f, Vec2(100, 0)); + _moveAction->retain(); + auto seq = Sequence::create(_moveAction, CallFunc::create(CC_CALLBACK_0(CameraClippingDemo::reachEndCallBack, this)), nullptr); + seq->setTag(100); + _cameraFirst->runAction(seq); + addChild(_cameraFirst); + } + + if (_cameraThird == nullptr) + { + _cameraThird = Camera::createPerspective(60, (GLfloat)s.width/s.height, 1, 1000); + _cameraThird->setCameraFlag(CameraFlag::USER8); + _cameraThird->setPosition3D(Vec3(0, 130, 130)); + _cameraThird->lookAt(Vec3(0,0,0), Vec3(0, 1, 0)); + addChild(_cameraThird); + } + + if(_cameraType == CameraType::FirstCamera) + { + _cameraType = CameraType::ThirdCamera; + _cameraThird->setCameraFlag(CameraFlag::USER1); + _cameraThird->enableFrustumCull(false, false); + _cameraFirst->setCameraFlag(CameraFlag::USER8); + } + else if(_cameraType == CameraType::ThirdCamera) + { + _cameraType = CameraType::FirstCamera; + _cameraFirst->setCameraFlag(CameraFlag::USER1); + _cameraFirst->enableFrustumCull(true, true); + _cameraThird->setCameraFlag(CameraFlag::USER8); + _drawFrustum->clear(); + } +} + +void CameraClippingDemo::addSpriteCallback(Ref* sender) +{ + _layer3D->removeAllChildren(); + _objects.clear(); + _drawAABB->clear(); + + ++_row; + for (int x = -_row; x < _row; x++) + { + for (int z = -_row; z < _row; z++) + { + auto sprite = Sprite3D::create("Sprite3DTest/orc.c3b"); + sprite->setPosition3D(Vec3(x * 30, 0, z * 30)); + sprite->setRotation3D(Vec3(0,180,0)); + _objects.push_back(sprite); + _layer3D->addChild(sprite); + } + } + + // set layer mask. + _layer3D->setCameraMask( (unsigned short) CameraFlag::USER1); + + // update sprite number + char szText[16]; + sprintf(szText,"%ld sprits",_layer3D->getChildrenCount()); + _labelSprite3DCount->setString(szText); +} + +void CameraClippingDemo::delSpriteCallback(Ref* sender) +{ + if (_row == 0) return; + + _layer3D->removeAllChildren(); + _objects.clear(); + + --_row; + for (int x = -_row; x < _row; x++) + { + for (int z = -_row; z < _row; z++) + { + auto sprite = Sprite3D::create("Sprite3DTest/orc.c3b"); + sprite->setPosition3D(Vec3(x * 30, 0, z * 30)); + _objects.push_back(sprite); + _layer3D->addChild(sprite); + } + } + + // set layer mask. + _layer3D->setCameraMask((unsigned short) CameraFlag::USER1); + + // update sprite number + char szText[16]; + sprintf(szText,"%ld sprits",_layer3D->getChildrenCount()); + _labelSprite3DCount->setString(szText); +} + +void CameraClippingDemo::drawCameraFrustum() +{ + _drawFrustum->clear(); + auto size = Director::getInstance()->getWinSize(); + + Color4F color(1.f, 1.f, 0.f, 1); + + // top-left + Vec3 tl_0,tl_1; + Vec3 src(0,0,0); + _cameraFirst->unproject(size, &src, &tl_0); + src = Vec3(0,0,1); + _cameraFirst->unproject(size, &src, &tl_1); + + // top-right + Vec3 tr_0,tr_1; + src = Vec3(size.width,0,0); + _cameraFirst->unproject(size, &src, &tr_0); + src = Vec3(size.width,0,1); + _cameraFirst->unproject(size, &src, &tr_1); + + // bottom-left + Vec3 bl_0,bl_1; + src = Vec3(0,size.height,0); + _cameraFirst->unproject(size, &src, &bl_0); + src = Vec3(0,size.height,1); + _cameraFirst->unproject(size, &src, &bl_1); + + // bottom-right + Vec3 br_0,br_1; + src = Vec3(size.width,size.height,0); + _cameraFirst->unproject(size, &src, &br_0); + src = Vec3(size.width,size.height,1); + _cameraFirst->unproject(size, &src, &br_1); + + _drawFrustum->drawLine(tl_0, tl_1, color); + _drawFrustum->drawLine(tr_0, tr_1, color); + _drawFrustum->drawLine(bl_0, bl_1, color); + _drawFrustum->drawLine(br_0, br_1, color); + + _drawFrustum->drawLine(tl_0, tr_0, color); + _drawFrustum->drawLine(tr_0, br_0, color); + _drawFrustum->drawLine(br_0, bl_0, color); + _drawFrustum->drawLine(bl_0, tl_0, color); + + _drawFrustum->drawLine(tl_1, tr_1, color); + _drawFrustum->drawLine(tr_1, br_1, color); + _drawFrustum->drawLine(br_1, bl_1, color); + _drawFrustum->drawLine(bl_1, tl_1, color); } void Camera3DTestScene::runThisTest() diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h index 417b23b94d..f5d514d95d 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h @@ -110,36 +110,42 @@ protected: Label* _ZoomOutlabel; }; -class CameraClipPerformance : public BaseTest +class CameraClippingDemo : public BaseTest { public: - CREATE_FUNC(CameraClipPerformance); - CameraClipPerformance(void); - virtual ~CameraClipPerformance(void); + CREATE_FUNC(CameraClippingDemo); + CameraClippingDemo(void); + virtual ~CameraClippingDemo(void); void restartCallback(Ref* sender); void nextCallback(Ref* sender); void backCallback(Ref* sender); + virtual void onEnter() override; virtual void onExit() override; + + virtual void update(float dt) override; + // overrides virtual std::string title() const override; - virtual std::string subtitle() const override; void reachEndCallBack(); - void inFrustum(Ref* sender); - void partInFrustum(Ref* sender); - void outFrustum(Ref* sender); - void calculate(Ref* sender); - void initCamera(); + void switchViewCallback(Ref* sender); + void addSpriteCallback(Ref* sender); + void delSpriteCallback(Ref* sender); + + void drawCameraFrustum(); protected: - std::string _title; - Label* _labelDrawCall; - Layer* _layer3D; - Camera* _cameraFirst; - DrawNode3D* _drawAABB; - std::vector listAABB; - float _posY; + Label* _labelSprite3DCount; + Layer* _layer3D; + std::vector _objects; + CameraType _cameraType; + Camera* _cameraFirst; + Camera* _cameraThird; + MoveBy* _moveAction; + DrawNode3D* _drawAABB; + DrawNode3D* _drawFrustum; + int _row; }; class Camera3DTestScene : public TestScene From a5746dd2a08545518571054ace690810babc2848 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 18 Dec 2014 18:14:16 +0800 Subject: [PATCH 06/21] 1. modify Android.mk 2. modify DrawNode3D include path --- cocos/Android.mk | 2 ++ tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos/Android.mk b/cocos/Android.mk index 518c888e31..c7d923fc69 100644 --- a/cocos/Android.mk +++ b/cocos/Android.mk @@ -77,6 +77,8 @@ cocos2d.cpp \ 2d/CCTransitionPageTurn.cpp \ 2d/CCTransitionProgress.cpp \ 2d/CCTweenFunction.cpp \ +3d/CCFrustum.cpp \ +3d/CCPlane.cpp \ platform/CCGLView.cpp \ platform/CCFileUtils.cpp \ platform/CCSAXParser.cpp \ diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h index f5d514d95d..21eb61a872 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h @@ -27,7 +27,7 @@ THE SOFTWARE. #include "../testBasic.h" #include "../BaseTest.h" -#include "DrawNode3D.h" +#include "../Sprite3DTest/DrawNode3D.h" #include namespace cocos2d { From 13cae3c480c097b5895e5c8863b31eb8231c82c7 Mon Sep 17 00:00:00 2001 From: lvlong Date: Fri, 19 Dec 2014 10:25:59 +0800 Subject: [PATCH 07/21] deal tab --- cocos/3d/CCRay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/3d/CCRay.h b/cocos/3d/CCRay.h index d4d9f59f46..150c734071 100644 --- a/cocos/3d/CCRay.h +++ b/cocos/3d/CCRay.h @@ -69,7 +69,7 @@ public: bool intersects(const OBB& obb) const; float dist(const Plane& plane) const; - Vec3 intersects(const Plane& plane) const; + Vec3 intersects(const Plane& plane) const; /** * Sets this ray to the specified values. From 7291e6e94affd59b2c9efea26382bae417dcc8a3 Mon Sep 17 00:00:00 2001 From: lvlong Date: Mon, 22 Dec 2014 15:23:41 +0800 Subject: [PATCH 08/21] modify about feedback. --- cocos/2d/CCCamera.cpp | 10 ++++----- cocos/2d/CCCamera.h | 4 ++-- cocos/3d/CCFrustum.cpp | 22 +++++++++---------- cocos/3d/CCFrustum.h | 18 +++++++-------- cocos/3d/CCPlane.cpp | 15 +++++++------ cocos/3d/CCPlane.h | 17 +++++++------- cocos/3d/CCRay.cpp | 12 +++++----- cocos/3d/CCSprite3D.cpp | 2 +- .../Classes/Camera3DTest/Camera3DTest.cpp | 4 ++-- 9 files changed, 52 insertions(+), 52 deletions(-) diff --git a/cocos/2d/CCCamera.cpp b/cocos/2d/CCCamera.cpp index 706ac0b446..aad9b4825e 100644 --- a/cocos/2d/CCCamera.cpp +++ b/cocos/2d/CCCamera.cpp @@ -249,13 +249,13 @@ void Camera::unproject(const Size& viewport, Vec3* src, Vec3* dst) const dst->set(screen.x, screen.y, screen.z); } -void Camera::enableFrustumCull(bool bEnalbe, bool bClipZ) +void Camera::enableFrustumCull(bool enalbe, bool clipZ) { - _enableFrustumCull = bEnalbe; - _frustum.setClipZ(bClipZ); + _enableFrustumCull = enalbe; + _frustum.setClipZ(clipZ); } -bool Camera::visibleInFrustum(const AABB& aabb) const +bool Camera::isVisibleInFrustum(const AABB& aabb) const { if (_enableFrustumCull) { @@ -264,7 +264,7 @@ bool Camera::visibleInFrustum(const AABB& aabb) const _frustum.initFrustum(this); _frustumDirty = false; } - return !_frustum.isOutFrustum(aabb); + return !_frustum.isOutOfFrustum(aabb); } return true; } diff --git a/cocos/2d/CCCamera.h b/cocos/2d/CCCamera.h index 0dbbd63acc..b5cceb48f1 100644 --- a/cocos/2d/CCCamera.h +++ b/cocos/2d/CCCamera.h @@ -131,12 +131,12 @@ public: /** * Enable frustum culling */ - void enableFrustumCull(bool bEnalbe, bool bClipZ); + void enableFrustumCull(bool enalbe, bool clipZ); /** * Is this aabb visible in frustum */ - bool visibleInFrustum(const AABB& aabb)const; + bool isVisibleInFrustum(const AABB& aabb)const; //override virtual void onEnter() override; diff --git a/cocos/3d/CCFrustum.cpp b/cocos/3d/CCFrustum.cpp index bc468c8da4..bf762e5327 100755 --- a/cocos/3d/CCFrustum.cpp +++ b/cocos/3d/CCFrustum.cpp @@ -26,25 +26,25 @@ #include "2d/CCCamera.h" NS_CC_BEGIN -bool Frustum::initFrustum(const Camera* pCamera) +bool Frustum::initFrustum(const Camera* camera) { - _bInit = true; - createPlane(pCamera); + _initialized = true; + createPlane(camera); return true; } -bool Frustum::isOutFrustum(const AABB& aabb) const +bool Frustum::isOutOfFrustum(const AABB& aabb) const { - if (_bInit) + if (_initialized) { Vec3 point; - int nplane = _bClipZ ? 6 : 4; + int nplane = _clipZ ? 6 : 4; for (int i = 0; i < nplane; i++) { const Vec3& normal = _plane[i].getNormal(); point.x = normal.x < 0 ? aabb._max.x : aabb._min.x; point.y = normal.y < 0 ? aabb._max.y : aabb._min.y; point.z = normal.z < 0 ? aabb._max.z : aabb._min.z; - if (_plane[i].getSide(point) == Plane::FRONT_PLANE ) + if (_plane[i].getSide(point) == PointSide::FRONT_PLANE ) return true; } @@ -52,13 +52,13 @@ bool Frustum::isOutFrustum(const AABB& aabb) const return false; } -bool Frustum::isOutFrustum(const OBB& obb) const +bool Frustum::isOutOfFrustum(const OBB& obb) const { - if (_bInit) + if (_initialized) { Vec3 point; - int nplane = _bClipZ ? 6 : 4; + int nplane = _clipZ ? 6 : 4; for (int i = 0; i < nplane; i++) { const Vec3& normal = _plane[i].getNormal(); @@ -68,7 +68,7 @@ bool Frustum::isOutFrustum(const OBB& obb) const point = normal.dot(obb._yAxis) > 0 ? point - obb._extentY : point + obb._extentY; point = normal.dot(obb._zAxis) > 0 ? point - obb._extentZ : point + obb._extentZ; - if (_plane[i].getSide(point) == Plane::FRONT_PLANE) + if (_plane[i].getSide(point) == PointSide::FRONT_PLANE) return true; } } diff --git a/cocos/3d/CCFrustum.h b/cocos/3d/CCFrustum.h index 48f71c1a5d..86638342b1 100755 --- a/cocos/3d/CCFrustum.h +++ b/cocos/3d/CCFrustum.h @@ -41,38 +41,38 @@ public: /** * Constructor & Destructor. */ - Frustum(): _bInit(false), _bClipZ(true){} + Frustum(): _initialized(false), _clipZ(true){} ~Frustum(){} /** * init frustum from camera. */ - bool initFrustum(const Camera* pCamera); + bool initFrustum(const Camera* camera); /** * is aabb out of frustum. */ - bool isOutFrustum(const AABB& aabb) const; + bool isOutOfFrustum(const AABB& aabb) const; /** * is obb out of frustum */ - bool isOutFrustum(const OBB& obb) const; + bool isOutOfFrustum(const OBB& obb) const; /** * get & set z clip. if bclipZ == true use near and far plane */ - void setClipZ(bool bclipZ) { _bClipZ = bclipZ; } - bool isClipZ() { return _bClipZ; } + void setClipZ(bool clipZ) { _clipZ = clipZ; } + bool isClipZ() { return _clipZ; } protected: /** * create clip plane */ - void createPlane(const Camera* pcamera); + void createPlane(const Camera* camera); Plane _plane[6]; // clip plane, left, right, top, bottom, near, far - bool _bClipZ; // use near and far clip plane - bool _bInit; + bool _clipZ; // use near and far clip plane + bool _initialized; }; NS_CC_END diff --git a/cocos/3d/CCPlane.cpp b/cocos/3d/CCPlane.cpp index 5449353463..28a35911bb 100755 --- a/cocos/3d/CCPlane.cpp +++ b/cocos/3d/CCPlane.cpp @@ -28,9 +28,10 @@ NS_CC_BEGIN Plane::Plane() +:_normal(0.f, 0.f, 1.f) +,_dist(0.f) { - _normal.set(0.0f, 0.0f, 1.0f); - _dist = 0.0f; + } // create plane from tree point @@ -86,15 +87,15 @@ float Plane::dist2Plane(const Vec3& p) const } -Plane::POINT_SIDE Plane::getSide(const Vec3& point) const +PointSide Plane::getSide(const Vec3& point) const { float dist = dist2Plane(point); if (dist > 0) - return Plane::FRONT_PLANE; + return PointSide::FRONT_PLANE; else if (dist < 0) - return Plane::BEHIND_PLANE; - - return Plane::ON_PLANE; + return PointSide::BEHIND_PLANE; + else + return PointSide::IN_PLANE; } NS_CC_END diff --git a/cocos/3d/CCPlane.h b/cocos/3d/CCPlane.h index 6c3d0dd403..3744a4faf6 100755 --- a/cocos/3d/CCPlane.h +++ b/cocos/3d/CCPlane.h @@ -30,16 +30,15 @@ NS_CC_BEGIN +enum class PointSide +{ + IN_PLANE, + FRONT_PLANE, + BEHIND_PLANE, +}; + class CC_DLL Plane { -public: - enum POINT_SIDE - { - ON_PLANE, - FRONT_PLANE, - BEHIND_PLANE, - }; - public: /** * create plane from tree point. @@ -91,7 +90,7 @@ public: /** * Return the side where the point is. */ - POINT_SIDE getSide(const Vec3& point) const; + PointSide getSide(const Vec3& point) const; protected: Vec3 _normal; diff --git a/cocos/3d/CCRay.cpp b/cocos/3d/CCRay.cpp index 604311676f..046901e8ef 100755 --- a/cocos/3d/CCRay.cpp +++ b/cocos/3d/CCRay.cpp @@ -142,17 +142,17 @@ bool Ray::intersects(const OBB& obb) const float Ray::dist(const Plane& plane) const { - float ndd = Vec3::dot(plane.getNormal(),_direction); - if(ndd == 0) - return 0.0f; - float ndo = Vec3::dot(plane.getNormal(),_origin); - return (plane.getDist() - ndo) / ndd; + float ndd = Vec3::dot(plane.getNormal(), _direction); + if(ndd == 0) + return 0.0f; + float ndo = Vec3::dot(plane.getNormal(), _origin); + return (plane.getDist() - ndo) / ndd; } Vec3 Ray::intersects(const Plane& plane) const { float dis = this->dist(plane); - return _origin + dis * _direction; + return _origin + dis * _direction; } void Ray::set(const Vec3& origin, const Vec3& direction) diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 2fbec73d32..b592fa0a9b 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -531,7 +531,7 @@ static Texture2D * getDummyTexture() void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { // camera clipping - if(Camera::getVisitingCamera() && !Camera::getVisitingCamera()->visibleInFrustum(this->getAABB())) + if(Camera::getVisitingCamera() && !Camera::getVisitingCamera()->isVisibleInFrustum(this->getAABB())) return; if (_skeleton) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 259fd1c983..61eada2921 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -1087,12 +1087,12 @@ void CameraClipPerformance::outFrustum(Ref* sender) void CameraClipPerformance::calculate(Ref* sender) { AABB aabb; - _cameraFirst->visibleInFrustum(aabb); + _cameraFirst->isVisibleInFrustum(aabb); auto lastTime = utils::gettime(); for (auto& iter : listAABB) { - _cameraFirst->visibleInFrustum(iter); + _cameraFirst->isVisibleInFrustum(iter); } auto deltaTime = utils::gettime() - lastTime; From 63ebf200260a849ed19a86f9190c5217c669d1d6 Mon Sep 17 00:00:00 2001 From: lvlong Date: Mon, 22 Dec 2014 15:51:10 +0800 Subject: [PATCH 09/21] modify code format. --- cocos/3d/CCFrustum.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cocos/3d/CCFrustum.cpp b/cocos/3d/CCFrustum.cpp index bf762e5327..6aedae0fcd 100755 --- a/cocos/3d/CCFrustum.cpp +++ b/cocos/3d/CCFrustum.cpp @@ -37,16 +37,15 @@ bool Frustum::isOutOfFrustum(const AABB& aabb) const if (_initialized) { Vec3 point; - int nplane = _clipZ ? 6 : 4; - for (int i = 0; i < nplane; i++) { + for (int i = 0; i < nplane; i++) + { const Vec3& normal = _plane[i].getNormal(); point.x = normal.x < 0 ? aabb._max.x : aabb._min.x; point.y = normal.y < 0 ? aabb._max.y : aabb._min.y; point.z = normal.z < 0 ? aabb._max.z : aabb._min.z; if (_plane[i].getSide(point) == PointSide::FRONT_PLANE ) return true; - } } return false; @@ -57,17 +56,14 @@ bool Frustum::isOutOfFrustum(const OBB& obb) const if (_initialized) { Vec3 point; - int nplane = _clipZ ? 6 : 4; - - for (int i = 0; i < nplane; i++) { + for (int i = 0; i < nplane; i++) + { const Vec3& normal = _plane[i].getNormal(); - point = obb._center; point = normal.dot(obb._xAxis) > 0 ? point - obb._extentX : point + obb._extentX; point = normal.dot(obb._yAxis) > 0 ? point - obb._extentY : point + obb._extentY; point = normal.dot(obb._zAxis) > 0 ? point - obb._extentZ : point + obb._extentZ; - if (_plane[i].getSide(point) == PointSide::FRONT_PLANE) return true; } From abd9a35504b4fee0d84067aabe78c9a967d652a4 Mon Sep 17 00:00:00 2001 From: lvlong Date: Mon, 22 Dec 2014 17:48:34 +0800 Subject: [PATCH 10/21] CameraClippingDemo: change the sprite number. --- tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 18bcb89f26..9938af2dc5 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -667,7 +667,7 @@ CameraClippingDemo::CameraClippingDemo(void) , _moveAction(nullptr) , _drawAABB(nullptr) , _drawFrustum(nullptr) -, _row(0) +, _row(3) { } CameraClippingDemo::~CameraClippingDemo(void) From db9f4a23fe85d47d3cd2ae302816869b93d5e9d8 Mon Sep 17 00:00:00 2001 From: lvlong Date: Mon, 22 Dec 2014 18:13:07 +0800 Subject: [PATCH 11/21] feedback commit. --- cocos/2d/CCCamera.cpp | 14 +++++++------- cocos/2d/CCCamera.h | 6 +++--- cocos/3d/CCFrustum.cpp | 18 +++++++++--------- cocos/3d/CCFrustum.h | 18 +++++++++--------- cocos/3d/CCPlane.cpp | 18 +++++++++--------- cocos/3d/CCPlane.h | 17 ++++++++--------- cocos/3d/CCRay.cpp | 12 ++++++------ cocos/3d/CCSprite3D.cpp | 2 +- .../Classes/Camera3DTest/Camera3DTest.cpp | 6 +++--- 9 files changed, 55 insertions(+), 56 deletions(-) diff --git a/cocos/2d/CCCamera.cpp b/cocos/2d/CCCamera.cpp index a1763b889a..93a066a422 100644 --- a/cocos/2d/CCCamera.cpp +++ b/cocos/2d/CCCamera.cpp @@ -70,7 +70,7 @@ Camera::Camera() , _viewProjectionDirty(true) , _cameraFlag(1) , _frustumDirty(true) -, _enableFrustumCull(true) +, _enableFrustumCulling(true) { } @@ -253,22 +253,22 @@ void Camera::unproject(const Size& viewport, Vec3* src, Vec3* dst) const dst->set(screen.x, screen.y, screen.z); } -void Camera::enableFrustumCull(bool bEnalbe, bool bClipZ) +void Camera::enableFrustumCulling(bool enalbe, bool clipZ) { - _enableFrustumCull = bEnalbe; - _frustum.setClipZ(bClipZ); + _enableFrustumCulling = enalbe; + _frustum.setClipZ(clipZ); } -bool Camera::visibleInFrustum(const AABB& aabb) const +bool Camera::isVisibleInFrustum(const AABB& aabb) const { - if (_enableFrustumCull) + if (_enableFrustumCulling) { if (_frustumDirty) { _frustum.initFrustum(this); _frustumDirty = false; } - return !_frustum.isOutFrustum(aabb); + return !_frustum.isOutOfFrustum(aabb); } return true; } diff --git a/cocos/2d/CCCamera.h b/cocos/2d/CCCamera.h index 0013ef90b7..a166651cfb 100644 --- a/cocos/2d/CCCamera.h +++ b/cocos/2d/CCCamera.h @@ -139,12 +139,12 @@ public: /** * Enable frustum culling */ - void enableFrustumCull(bool bEnalbe, bool bClipZ); + void enableFrustumCulling(bool enalbe, bool clipZ); /** * Is this aabb visible in frustum */ - bool visibleInFrustum(const AABB& aabb)const; + bool isVisibleInFrustum(const AABB& aabb)const; //override virtual void onEnter() override; @@ -184,7 +184,7 @@ protected: unsigned short _cameraFlag; // camera flag mutable Frustum _frustum; // camera frustum mutable bool _frustumDirty; - bool _enableFrustumCull; + bool _enableFrustumCulling; static Camera* _visitingCamera; friend class Director; diff --git a/cocos/3d/CCFrustum.cpp b/cocos/3d/CCFrustum.cpp index 10fc0a5cac..4df8cf206f 100755 --- a/cocos/3d/CCFrustum.cpp +++ b/cocos/3d/CCFrustum.cpp @@ -29,17 +29,17 @@ NS_CC_BEGIN bool Frustum::initFrustum(const Camera* pCamera) { - _bInit = true; + _initialized = true; createPlane(pCamera); return true; } -bool Frustum::isOutFrustum(const AABB& aabb) const +bool Frustum::isOutOfFrustum(const AABB& aabb) const { - if (_bInit) + if (_initialized) { Vec3 point; - int nplane = _bClipZ ? 6 : 4; + int nplane = _clipZ ? 6 : 4; for (int i = 0; i < nplane; i++) { const Vec3& normal = _plane[i].getNormal(); @@ -47,20 +47,20 @@ bool Frustum::isOutFrustum(const AABB& aabb) const point.y = normal.y < 0 ? aabb._max.y : aabb._min.y; point.z = normal.z < 0 ? aabb._max.z : aabb._min.z; - if (_plane[i].getSide(point) == Plane::FRONT_PLANE ) + if (_plane[i].getSide(point) == PointSide::FRONT_PLANE ) return true; } } return false; } -bool Frustum::isOutFrustum(const OBB& obb) const +bool Frustum::isOutOfFrustum(const OBB& obb) const { - if (_bInit) + if (_initialized) { Vec3 point; - int nplane = _bClipZ ? 6 : 4; + int nplane = _clipZ ? 6 : 4; Vec3 obbExtentX = obb._xAxis * obb._extents.x; Vec3 obbExtentY = obb._yAxis * obb._extents.y; @@ -74,7 +74,7 @@ bool Frustum::isOutFrustum(const OBB& obb) const point = normal.dot(obb._yAxis) > 0 ? point - obbExtentY : point + obbExtentY; point = normal.dot(obb._zAxis) > 0 ? point - obbExtentZ : point + obbExtentZ; - if (_plane[i].getSide(point) == Plane::FRONT_PLANE) + if (_plane[i].getSide(point) == PointSide::FRONT_PLANE) return true; } } diff --git a/cocos/3d/CCFrustum.h b/cocos/3d/CCFrustum.h index 48f71c1a5d..86638342b1 100755 --- a/cocos/3d/CCFrustum.h +++ b/cocos/3d/CCFrustum.h @@ -41,38 +41,38 @@ public: /** * Constructor & Destructor. */ - Frustum(): _bInit(false), _bClipZ(true){} + Frustum(): _initialized(false), _clipZ(true){} ~Frustum(){} /** * init frustum from camera. */ - bool initFrustum(const Camera* pCamera); + bool initFrustum(const Camera* camera); /** * is aabb out of frustum. */ - bool isOutFrustum(const AABB& aabb) const; + bool isOutOfFrustum(const AABB& aabb) const; /** * is obb out of frustum */ - bool isOutFrustum(const OBB& obb) const; + bool isOutOfFrustum(const OBB& obb) const; /** * get & set z clip. if bclipZ == true use near and far plane */ - void setClipZ(bool bclipZ) { _bClipZ = bclipZ; } - bool isClipZ() { return _bClipZ; } + void setClipZ(bool clipZ) { _clipZ = clipZ; } + bool isClipZ() { return _clipZ; } protected: /** * create clip plane */ - void createPlane(const Camera* pcamera); + void createPlane(const Camera* camera); Plane _plane[6]; // clip plane, left, right, top, bottom, near, far - bool _bClipZ; // use near and far clip plane - bool _bInit; + bool _clipZ; // use near and far clip plane + bool _initialized; }; NS_CC_END diff --git a/cocos/3d/CCPlane.cpp b/cocos/3d/CCPlane.cpp index 7668ea28b3..722ed2e91d 100755 --- a/cocos/3d/CCPlane.cpp +++ b/cocos/3d/CCPlane.cpp @@ -27,9 +27,11 @@ NS_CC_BEGIN Plane::Plane() +: +_normal(0.f, 0.f, 1.f), +_dist(0.f) { - _normal.set(0.0f, 0.0f, 1.0f); - _dist = 0.0f; + } // create plane from tree point @@ -54,9 +56,7 @@ void Plane::initPlane(const Vec3& p1, const Vec3& p2, const Vec3& p3) { Vec3 p21 = p2 - p1; Vec3 p32 = p3 - p2; - Vec3::cross(p21, p32, &_normal); - _normal.normalize(); _dist = _normal.dot(p1); } @@ -81,15 +81,15 @@ float Plane::dist2Plane(const Vec3& p) const } -Plane::POINT_SIDE Plane::getSide(const Vec3& point) const +PointSide Plane::getSide(const Vec3& point) const { float dist = dist2Plane(point); if (dist > 0) - return Plane::FRONT_PLANE; + return PointSide::FRONT_PLANE; else if (dist < 0) - return Plane::BEHIND_PLANE; - - return Plane::ON_PLANE; + return PointSide::BEHIND_PLANE; + else + return PointSide::IN_PLANE; } NS_CC_END diff --git a/cocos/3d/CCPlane.h b/cocos/3d/CCPlane.h index 1ce1cb5ec7..ad77ec5bb0 100755 --- a/cocos/3d/CCPlane.h +++ b/cocos/3d/CCPlane.h @@ -30,16 +30,15 @@ NS_CC_BEGIN +enum class PointSide +{ + IN_PLANE, + FRONT_PLANE, + BEHIND_PLANE, +}; + class CC_DLL Plane { -public: - enum POINT_SIDE - { - ON_PLANE, - FRONT_PLANE, - BEHIND_PLANE, - }; - public: /** * create plane from tree point. @@ -90,7 +89,7 @@ public: /** * Return the side where the point is. */ - POINT_SIDE getSide(const Vec3& point) const; + PointSide getSide(const Vec3& point) const; protected: Vec3 _normal; diff --git a/cocos/3d/CCRay.cpp b/cocos/3d/CCRay.cpp index 604311676f..046901e8ef 100755 --- a/cocos/3d/CCRay.cpp +++ b/cocos/3d/CCRay.cpp @@ -142,17 +142,17 @@ bool Ray::intersects(const OBB& obb) const float Ray::dist(const Plane& plane) const { - float ndd = Vec3::dot(plane.getNormal(),_direction); - if(ndd == 0) - return 0.0f; - float ndo = Vec3::dot(plane.getNormal(),_origin); - return (plane.getDist() - ndo) / ndd; + float ndd = Vec3::dot(plane.getNormal(), _direction); + if(ndd == 0) + return 0.0f; + float ndo = Vec3::dot(plane.getNormal(), _origin); + return (plane.getDist() - ndo) / ndd; } Vec3 Ray::intersects(const Plane& plane) const { float dis = this->dist(plane); - return _origin + dis * _direction; + return _origin + dis * _direction; } void Ray::set(const Vec3& origin, const Vec3& direction) diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 33873ae0d7..1d7668fb9b 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -538,7 +538,7 @@ static Texture2D * getDummyTexture() void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { // camera clipping - if(!Camera::getVisitingCamera()->visibleInFrustum(this->getAABB())) + if(!Camera::getVisitingCamera()->isVisibleInFrustum(this->getAABB())) return; if (_skeleton) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 9938af2dc5..86e9ae5e3b 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -791,7 +791,7 @@ void CameraClippingDemo::update(float dt) for (const auto& iter: children) { const AABB& aabb = static_cast(iter)->getAABB(); - if (_cameraFirst->visibleInFrustum(aabb)) + if (_cameraFirst->isVisibleInFrustum(aabb)) { aabb.getCorners(corners); _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); @@ -843,14 +843,14 @@ void CameraClippingDemo::switchViewCallback(Ref* sender) { _cameraType = CameraType::ThirdCamera; _cameraThird->setCameraFlag(CameraFlag::USER1); - _cameraThird->enableFrustumCull(false, false); + _cameraThird->enableFrustumCulling(false, false); _cameraFirst->setCameraFlag(CameraFlag::USER8); } else if(_cameraType == CameraType::ThirdCamera) { _cameraType = CameraType::FirstCamera; _cameraFirst->setCameraFlag(CameraFlag::USER1); - _cameraFirst->enableFrustumCull(true, true); + _cameraFirst->enableFrustumCulling(true, true); _cameraThird->setCameraFlag(CameraFlag::USER8); _drawFrustum->clear(); } From 026f0a8b25a77abab866cf62b9a011b70da3d035 Mon Sep 17 00:00:00 2001 From: lvlong Date: Tue, 23 Dec 2014 09:57:46 +0800 Subject: [PATCH 12/21] modify code format. --- cocos/3d/CCFrustum.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cocos/3d/CCFrustum.cpp b/cocos/3d/CCFrustum.cpp index 4df8cf206f..ace97e6098 100755 --- a/cocos/3d/CCFrustum.cpp +++ b/cocos/3d/CCFrustum.cpp @@ -27,10 +27,10 @@ NS_CC_BEGIN -bool Frustum::initFrustum(const Camera* pCamera) +bool Frustum::initFrustum(const Camera* camera) { _initialized = true; - createPlane(pCamera); + createPlane(camera); return true; } bool Frustum::isOutOfFrustum(const AABB& aabb) const @@ -39,8 +39,8 @@ bool Frustum::isOutOfFrustum(const AABB& aabb) const { Vec3 point; - int nplane = _clipZ ? 6 : 4; - for (int i = 0; i < nplane; i++) + int plane = _clipZ ? 6 : 4; + for (int i = 0; i < plane; i++) { const Vec3& normal = _plane[i].getNormal(); point.x = normal.x < 0 ? aabb._max.x : aabb._min.x; @@ -59,14 +59,12 @@ bool Frustum::isOutOfFrustum(const OBB& obb) const if (_initialized) { Vec3 point; - - int nplane = _clipZ ? 6 : 4; - + int plane = _clipZ ? 6 : 4; Vec3 obbExtentX = obb._xAxis * obb._extents.x; Vec3 obbExtentY = obb._yAxis * obb._extents.y; Vec3 obbExtentZ = obb._zAxis * obb._extents.z; - for (int i = 0; i < nplane; i++) + for (int i = 0; i < plane; i++) { const Vec3& normal = _plane[i].getNormal(); point = obb._center; @@ -81,9 +79,9 @@ bool Frustum::isOutOfFrustum(const OBB& obb) const return false; } -void Frustum::createPlane(const Camera* pcamera) +void Frustum::createPlane(const Camera* camera) { - const Mat4& mat = pcamera->getViewProjectionMatrix(); + const Mat4& mat = camera->getViewProjectionMatrix(); //ref http://www.lighthouse3d.com/tutorials/view-frustum-culling/clip-space-approach-extracting-the-planes/ //extract frustum plane _plane[0].initPlane(-Vec3(mat.m[3] + mat.m[0], mat.m[7] + mat.m[4], mat.m[11] + mat.m[8]), (mat.m[15] + mat.m[12]));//left From 805b248af3bc7816a80b946d5eca9d02afb6c98b Mon Sep 17 00:00:00 2001 From: lvlonggame Date: Wed, 24 Dec 2014 15:06:58 +0800 Subject: [PATCH 13/21] modify win-project --- cocos/2d/libcocos2d.vcxproj | 4 ++++ cocos/2d/libcocos2d.vcxproj.filters | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/cocos/2d/libcocos2d.vcxproj b/cocos/2d/libcocos2d.vcxproj index 529bab53e0..9fecd45f32 100644 --- a/cocos/2d/libcocos2d.vcxproj +++ b/cocos/2d/libcocos2d.vcxproj @@ -228,11 +228,13 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\chipmunk\prebuilt\win32\release-lib\*.* + + @@ -593,11 +595,13 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\chipmunk\prebuilt\win32\release-lib\*.* + + diff --git a/cocos/2d/libcocos2d.vcxproj.filters b/cocos/2d/libcocos2d.vcxproj.filters index 35d7081f5c..f0afb45f09 100644 --- a/cocos/2d/libcocos2d.vcxproj.filters +++ b/cocos/2d/libcocos2d.vcxproj.filters @@ -1289,6 +1289,12 @@ cocostudio\json + + 3d + + + 3d + @@ -2505,6 +2511,12 @@ cocostudio\json + + 3d + + + 3d + From 4d1ca0966c1a373a6db042a78ade626670717ffd Mon Sep 17 00:00:00 2001 From: lvlong Date: Wed, 24 Dec 2014 15:09:26 +0800 Subject: [PATCH 14/21] lua binding --- cocos/cocos2d.h | 2 + .../lua-bindings/auto/api/AttachNode.lua | 18 ++- .../lua-bindings/auto/api/Camera.lua | 14 +++ .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 104 ++++++++++++++++++ .../lua-bindings/auto/lua_cocos2dx_auto.hpp | 2 + 5 files changed, 134 insertions(+), 6 deletions(-) diff --git a/cocos/cocos2d.h b/cocos/cocos2d.h index bdfabeb043..a8d613c27f 100644 --- a/cocos/cocos2d.h +++ b/cocos/cocos2d.h @@ -283,6 +283,8 @@ THE SOFTWARE. #include "3d/CCMeshVertexIndexData.h" #include "3d/CCSkeleton3D.h" #include "3d/CCBillBoard.h" +#include "3d/CCFrustum.h" +#include "3d/CCPlane.h" // Deprecated include #include "deprecated/CCDictionary.h" diff --git a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua index e61a0d0d48..9ae15250db 100644 --- a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua @@ -12,12 +12,6 @@ -- @param #cc.Bone3D attachBone -- @return AttachNode#AttachNode ret (return value: cc.AttachNode) --------------------------------- --- --- @function [parent=#AttachNode] getWorldToNodeTransform --- @param self --- @return mat4_table#mat4_table ret (return value: mat4_table) - -------------------------------- -- -- @function [parent=#AttachNode] visit @@ -26,4 +20,16 @@ -- @param #mat4_table parentTransform -- @param #unsigned int parentFlags +-------------------------------- +-- +-- @function [parent=#AttachNode] getWorldToNodeTransform +-- @param self +-- @return mat4_table#mat4_table ret (return value: mat4_table) + +-------------------------------- +-- +-- @function [parent=#AttachNode] getNodeToWorldTransform +-- @param self +-- @return mat4_table#mat4_table ret (return value: mat4_table) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Camera.lua b/cocos/scripting/lua-bindings/auto/api/Camera.lua index a070acd17e..0826a03728 100644 --- a/cocos/scripting/lua-bindings/auto/api/Camera.lua +++ b/cocos/scripting/lua-bindings/auto/api/Camera.lua @@ -37,6 +37,13 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- Enable frustum culling +-- @function [parent=#Camera] enableFrustumCulling +-- @param self +-- @param #bool enalbe +-- @param #bool clipZ + -------------------------------- -- Creates a view matrix based on the specified input parameters.
-- param eyePosition The eye position.
@@ -48,6 +55,13 @@ -- @param #vec3_table target -- @param #vec3_table up +-------------------------------- +-- Is this aabb visible in frustum +-- @function [parent=#Camera] isVisibleInFrustum +-- @param self +-- @param #cc.AABB aabb +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Camera] setCameraFlag diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 57d1ad2560..a9520e8bdf 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -60772,6 +60772,58 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Camera_enableFrustumCulling(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Camera* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_enableFrustumCulling'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + bool arg0; + bool arg1; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Camera:enableFrustumCulling"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Camera:enableFrustumCulling"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_enableFrustumCulling'", nullptr); + return 0; + } + cobj->enableFrustumCulling(arg0, arg1); + return 0; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:enableFrustumCulling",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_enableFrustumCulling'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) { int argc = 0; @@ -60824,6 +60876,56 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Camera* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::AABB arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.AABB",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); + return 0; + } + bool ret = cobj->isVisibleInFrustum(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:isVisibleInFrustum",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_isVisibleInFrustum'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) { int argc = 0; @@ -61042,7 +61144,9 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S) tolua_function(tolua_S,"getViewMatrix",lua_cocos2dx_Camera_getViewMatrix); tolua_function(tolua_S,"getCameraFlag",lua_cocos2dx_Camera_getCameraFlag); tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType); + tolua_function(tolua_S,"enableFrustumCulling",lua_cocos2dx_Camera_enableFrustumCulling); tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt); + tolua_function(tolua_S,"isVisibleInFrustum",lua_cocos2dx_Camera_isVisibleInFrustum); tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag); tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp index 03c009ff62..f98b508d05 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp @@ -1619,6 +1619,8 @@ int register_all_cocos2dx(lua_State* tolua_S); + + From a4a108f76604e04a437b1e1390c141e617e7233c Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 25 Dec 2014 14:04:41 +0800 Subject: [PATCH 15/21] fix lua binding again!! --- cocos/2d/CCCamera.cpp | 4 ++-- cocos/2d/CCCamera.h | 2 +- cocos/3d/CCSprite3D.cpp | 2 +- cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cocos/2d/CCCamera.cpp b/cocos/2d/CCCamera.cpp index 93a066a422..89baefd956 100644 --- a/cocos/2d/CCCamera.cpp +++ b/cocos/2d/CCCamera.cpp @@ -259,7 +259,7 @@ void Camera::enableFrustumCulling(bool enalbe, bool clipZ) _frustum.setClipZ(clipZ); } -bool Camera::isVisibleInFrustum(const AABB& aabb) const +bool Camera::isVisibleInFrustum(const AABB* aabb) const { if (_enableFrustumCulling) { @@ -268,7 +268,7 @@ bool Camera::isVisibleInFrustum(const AABB& aabb) const _frustum.initFrustum(this); _frustumDirty = false; } - return !_frustum.isOutOfFrustum(aabb); + return !_frustum.isOutOfFrustum(*aabb); } return true; } diff --git a/cocos/2d/CCCamera.h b/cocos/2d/CCCamera.h index a166651cfb..bd4e73fb15 100644 --- a/cocos/2d/CCCamera.h +++ b/cocos/2d/CCCamera.h @@ -144,7 +144,7 @@ public: /** * Is this aabb visible in frustum */ - bool isVisibleInFrustum(const AABB& aabb)const; + bool isVisibleInFrustum(const AABB* aabb)const; //override virtual void onEnter() override; diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 1d7668fb9b..43103be25a 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -538,7 +538,7 @@ static Texture2D * getDummyTexture() void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { // camera clipping - if(!Camera::getVisitingCamera()->isVisibleInFrustum(this->getAABB())) + if(!Camera::getVisitingCamera()->isVisibleInFrustum(&this->getAABB())) return; if (_skeleton) diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index a9520e8bdf..bd35583662 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -60904,9 +60904,9 @@ int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::AABB arg0; + const cocos2d::AABB* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.AABB",&arg0); + ok &= luaval_to_object(tolua_S, 2, "cc.AABB",&arg0); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); From 3f91957e791bd01c5d751b50d6c273b320fd7885 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 25 Dec 2014 15:21:53 +0800 Subject: [PATCH 16/21] revert --- .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 31809 ++++++++-------- 1 file changed, 15852 insertions(+), 15957 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index bd35583662..a748f61dd7 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -11,28 +11,28 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_release'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44,12 +44,12 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:release",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_release'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ref_retain(lua_State* tolua_S) @@ -57,28 +57,28 @@ int lua_cocos2dx_Ref_retain(lua_State* tolua_S) int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_retain'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -90,12 +90,12 @@ int lua_cocos2dx_Ref_retain(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:retain",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_retain'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) @@ -103,28 +103,28 @@ int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_getReferenceCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -137,12 +137,12 @@ int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:getReferenceCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_getReferenceCount'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Ref_finalize(lua_State* tolua_S) @@ -155,11 +155,11 @@ int lua_register_cocos2dx_Ref(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ref"); tolua_cclass(tolua_S,"Ref","cc.Ref","",nullptr); - + tolua_beginmodule(tolua_S,"Ref"); - tolua_function(tolua_S,"release",lua_cocos2dx_Ref_release); - tolua_function(tolua_S,"retain",lua_cocos2dx_Ref_retain); - tolua_function(tolua_S,"getReferenceCount",lua_cocos2dx_Ref_getReferenceCount); + tolua_function(tolua_S,"release",lua_cocos2dx_Ref_release); + tolua_function(tolua_S,"retain",lua_cocos2dx_Ref_retain); + tolua_function(tolua_S,"getReferenceCount",lua_cocos2dx_Ref_getReferenceCount); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Ref).name(); g_luaType[typeName] = "cc.Ref"; @@ -172,28 +172,28 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_stop'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -205,12 +205,12 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:stop",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_stop'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) @@ -218,31 +218,31 @@ int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_listenOnTCP'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Console:listenOnTCP"); if(!ok) { @@ -255,12 +255,12 @@ int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:listenOnTCP",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_listenOnTCP'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) @@ -268,31 +268,31 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_listenOnFileDescriptor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Console:listenOnFileDescriptor"); if(!ok) { @@ -305,12 +305,12 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:listenOnFileDescriptor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_listenOnFileDescriptor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Console_log(lua_State* tolua_S) @@ -318,31 +318,31 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_log'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { const char* arg0; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Console:log"); arg0 = arg0_tmp.c_str(); if(!ok) { @@ -354,12 +354,12 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:log",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_log'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Console_finalize(lua_State* tolua_S) @@ -372,12 +372,12 @@ int lua_register_cocos2dx_Console(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Console"); tolua_cclass(tolua_S,"Console","cc.Console","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Console"); - tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); - tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); - tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); - tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); + tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); + tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); + tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); + tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Console).name(); g_luaType[typeName] = "cc.Console"; @@ -390,28 +390,28 @@ int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getMaxT'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -424,12 +424,12 @@ int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getMaxT",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getMaxT'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) @@ -437,28 +437,28 @@ int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getStringForFormat'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -471,12 +471,12 @@ int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getStringForFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getStringForFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) @@ -487,7 +487,7 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif @@ -504,11 +504,11 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) if (argc == 2) { cocos2d::Image* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0); - + if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Texture2D:initWithImage"); - + if (!ok) { break; } bool ret = cobj->initWithImage(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -520,7 +520,7 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) if (argc == 1) { cocos2d::Image* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0); - + if (!ok) { break; } bool ret = cobj->initWithImage(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -530,12 +530,12 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:initWithImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) @@ -543,28 +543,28 @@ int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getMaxS'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -577,12 +577,12 @@ int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getMaxS",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getMaxS'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) @@ -590,28 +590,28 @@ int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_releaseGLTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -623,12 +623,12 @@ int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:releaseGLTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_releaseGLTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) @@ -636,28 +636,28 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -670,12 +670,12 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:hasPremultipliedAlpha",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) @@ -683,28 +683,28 @@ int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelsHigh'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -717,12 +717,12 @@ int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelsHigh",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelsHigh'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) @@ -733,7 +733,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif @@ -750,7 +750,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) if (argc == 1) { cocos2d::Texture2D::PixelFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Texture2D:getBitsPerPixelForFormat"); - + if (!ok) { break; } unsigned int ret = cobj->getBitsPerPixelForFormat(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -768,12 +768,12 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getBitsPerPixelForFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getBitsPerPixelForFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) @@ -781,28 +781,28 @@ int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -815,12 +815,12 @@ int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) @@ -831,7 +831,7 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif @@ -848,11 +848,11 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } cocos2d::FontDefinition arg1; ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -864,15 +864,15 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -884,19 +884,19 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 4) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -908,23 +908,23 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 5) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); @@ -936,27 +936,27 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 6) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); @@ -966,12 +966,12 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:initWithString",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) @@ -979,31 +979,31 @@ int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setMaxT'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Texture2D:setMaxT"); if(!ok) { @@ -1015,12 +1015,12 @@ int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setMaxT",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setMaxT'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) @@ -1028,31 +1028,31 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_drawInRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Texture2D:drawInRect"); if(!ok) { @@ -1064,12 +1064,12 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:drawInRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_drawInRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) @@ -1077,28 +1077,28 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getContentSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1111,12 +1111,12 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getContentSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getContentSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) @@ -1124,28 +1124,28 @@ int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1157,12 +1157,12 @@ int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAliasTexParameters",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) @@ -1170,28 +1170,28 @@ int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1203,12 +1203,12 @@ int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAntiAliasTexParameters",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) @@ -1216,28 +1216,28 @@ int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_generateMipmap'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1249,12 +1249,12 @@ int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:generateMipmap",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_generateMipmap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) @@ -1262,28 +1262,28 @@ int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getDescription'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1296,12 +1296,12 @@ int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getDescription",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getDescription'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) @@ -1309,28 +1309,28 @@ int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelFormat'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1343,12 +1343,12 @@ int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) @@ -1356,31 +1356,31 @@ int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgram* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); if(!ok) { @@ -1392,12 +1392,12 @@ int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) @@ -1405,28 +1405,28 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1439,12 +1439,12 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getContentSizeInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) @@ -1452,28 +1452,28 @@ int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelsWide'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1486,12 +1486,12 @@ int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelsWide",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelsWide'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) @@ -1499,31 +1499,31 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_drawAtPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Texture2D:drawAtPoint"); if(!ok) { @@ -1535,12 +1535,12 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:drawAtPoint",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_drawAtPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) @@ -1548,28 +1548,28 @@ int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1582,12 +1582,12 @@ int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getGLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) @@ -1595,28 +1595,28 @@ int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_hasMipmaps'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1629,12 +1629,12 @@ int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:hasMipmaps",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_hasMipmaps'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) @@ -1642,31 +1642,31 @@ int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setMaxS'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Texture2D:setMaxS"); if(!ok) { @@ -1678,29 +1678,29 @@ int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setMaxS",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setMaxS'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Texture2D::PixelFormat arg0; @@ -1716,7 +1716,7 @@ int lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Texture2D:setDefaultAlphaPixelFormat",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat'.",&tolua_err); #endif return 0; @@ -1725,17 +1725,17 @@ int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -1750,7 +1750,7 @@ int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Texture2D:getDefaultAlphaPixelFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat'.",&tolua_err); #endif return 0; @@ -1760,15 +1760,15 @@ int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1784,11 +1784,11 @@ int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:Texture2D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_constructor'.",&tolua_err); #endif - + return 0; } @@ -1802,36 +1802,36 @@ int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Texture2D"); tolua_cclass(tolua_S,"Texture2D","cc.Texture2D","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Texture2D"); - tolua_function(tolua_S,"new",lua_cocos2dx_Texture2D_constructor); - tolua_function(tolua_S,"getMaxT",lua_cocos2dx_Texture2D_getMaxT); - tolua_function(tolua_S,"getStringForFormat",lua_cocos2dx_Texture2D_getStringForFormat); - tolua_function(tolua_S,"initWithImage",lua_cocos2dx_Texture2D_initWithImage); - tolua_function(tolua_S,"getMaxS",lua_cocos2dx_Texture2D_getMaxS); - tolua_function(tolua_S,"releaseGLTexture",lua_cocos2dx_Texture2D_releaseGLTexture); - tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Texture2D_hasPremultipliedAlpha); - tolua_function(tolua_S,"getPixelsHigh",lua_cocos2dx_Texture2D_getPixelsHigh); - tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_cocos2dx_Texture2D_getBitsPerPixelForFormat); - tolua_function(tolua_S,"getName",lua_cocos2dx_Texture2D_getName); - tolua_function(tolua_S,"initWithString",lua_cocos2dx_Texture2D_initWithString); - tolua_function(tolua_S,"setMaxT",lua_cocos2dx_Texture2D_setMaxT); - tolua_function(tolua_S,"drawInRect",lua_cocos2dx_Texture2D_drawInRect); - tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Texture2D_getContentSize); - tolua_function(tolua_S,"setAliasTexParameters",lua_cocos2dx_Texture2D_setAliasTexParameters); - tolua_function(tolua_S,"setAntiAliasTexParameters",lua_cocos2dx_Texture2D_setAntiAliasTexParameters); - tolua_function(tolua_S,"generateMipmap",lua_cocos2dx_Texture2D_generateMipmap); - tolua_function(tolua_S,"getDescription",lua_cocos2dx_Texture2D_getDescription); - tolua_function(tolua_S,"getPixelFormat",lua_cocos2dx_Texture2D_getPixelFormat); - tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Texture2D_setGLProgram); - tolua_function(tolua_S,"getContentSizeInPixels",lua_cocos2dx_Texture2D_getContentSizeInPixels); - tolua_function(tolua_S,"getPixelsWide",lua_cocos2dx_Texture2D_getPixelsWide); - tolua_function(tolua_S,"drawAtPoint",lua_cocos2dx_Texture2D_drawAtPoint); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Texture2D_getGLProgram); - tolua_function(tolua_S,"hasMipmaps",lua_cocos2dx_Texture2D_hasMipmaps); - tolua_function(tolua_S,"setMaxS",lua_cocos2dx_Texture2D_setMaxS); - tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat); - tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat); + tolua_function(tolua_S,"new",lua_cocos2dx_Texture2D_constructor); + tolua_function(tolua_S,"getMaxT",lua_cocos2dx_Texture2D_getMaxT); + tolua_function(tolua_S,"getStringForFormat",lua_cocos2dx_Texture2D_getStringForFormat); + tolua_function(tolua_S,"initWithImage",lua_cocos2dx_Texture2D_initWithImage); + tolua_function(tolua_S,"getMaxS",lua_cocos2dx_Texture2D_getMaxS); + tolua_function(tolua_S,"releaseGLTexture",lua_cocos2dx_Texture2D_releaseGLTexture); + tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Texture2D_hasPremultipliedAlpha); + tolua_function(tolua_S,"getPixelsHigh",lua_cocos2dx_Texture2D_getPixelsHigh); + tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_cocos2dx_Texture2D_getBitsPerPixelForFormat); + tolua_function(tolua_S,"getName",lua_cocos2dx_Texture2D_getName); + tolua_function(tolua_S,"initWithString",lua_cocos2dx_Texture2D_initWithString); + tolua_function(tolua_S,"setMaxT",lua_cocos2dx_Texture2D_setMaxT); + tolua_function(tolua_S,"drawInRect",lua_cocos2dx_Texture2D_drawInRect); + tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Texture2D_getContentSize); + tolua_function(tolua_S,"setAliasTexParameters",lua_cocos2dx_Texture2D_setAliasTexParameters); + tolua_function(tolua_S,"setAntiAliasTexParameters",lua_cocos2dx_Texture2D_setAntiAliasTexParameters); + tolua_function(tolua_S,"generateMipmap",lua_cocos2dx_Texture2D_generateMipmap); + tolua_function(tolua_S,"getDescription",lua_cocos2dx_Texture2D_getDescription); + tolua_function(tolua_S,"getPixelFormat",lua_cocos2dx_Texture2D_getPixelFormat); + tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Texture2D_setGLProgram); + tolua_function(tolua_S,"getContentSizeInPixels",lua_cocos2dx_Texture2D_getContentSizeInPixels); + tolua_function(tolua_S,"getPixelsWide",lua_cocos2dx_Texture2D_getPixelsWide); + tolua_function(tolua_S,"drawAtPoint",lua_cocos2dx_Texture2D_drawAtPoint); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Texture2D_getGLProgram); + tolua_function(tolua_S,"hasMipmaps",lua_cocos2dx_Texture2D_hasMipmaps); + tolua_function(tolua_S,"setMaxS",lua_cocos2dx_Texture2D_setMaxS); + tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat); + tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Texture2D).name(); g_luaType[typeName] = "cc.Texture2D"; @@ -1844,28 +1844,28 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getPreviousLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1878,12 +1878,12 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getPreviousLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getPreviousLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) @@ -1891,28 +1891,28 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1925,12 +1925,12 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) @@ -1938,28 +1938,28 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getDelta'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1972,12 +1972,12 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getDelta",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getDelta'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) @@ -1985,28 +1985,28 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getStartLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2019,12 +2019,12 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getStartLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getStartLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) @@ -2032,28 +2032,28 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getStartLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2066,12 +2066,12 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getStartLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getStartLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getID(lua_State* tolua_S) @@ -2079,28 +2079,28 @@ int lua_cocos2dx_Touch_getID(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2113,12 +2113,12 @@ int lua_cocos2dx_Touch_getID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getID",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) @@ -2126,37 +2126,37 @@ int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_setTouchInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { int arg0; double arg1; double arg2; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Touch:setTouchInfo"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Touch:setTouchInfo"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Touch:setTouchInfo"); if(!ok) { @@ -2168,12 +2168,12 @@ int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:setTouchInfo",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_setTouchInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) @@ -2181,28 +2181,28 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2215,12 +2215,12 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) @@ -2228,28 +2228,28 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getPreviousLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2262,12 +2262,12 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getPreviousLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getPreviousLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) @@ -2275,15 +2275,15 @@ int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2299,11 +2299,11 @@ int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:Touch",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_constructor'.",&tolua_err); #endif - + return 0; } @@ -2317,18 +2317,18 @@ int lua_register_cocos2dx_Touch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Touch"); tolua_cclass(tolua_S,"Touch","cc.Touch","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Touch"); - tolua_function(tolua_S,"new",lua_cocos2dx_Touch_constructor); - tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_Touch_getPreviousLocationInView); - tolua_function(tolua_S,"getLocation",lua_cocos2dx_Touch_getLocation); - tolua_function(tolua_S,"getDelta",lua_cocos2dx_Touch_getDelta); - tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_Touch_getStartLocationInView); - tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_Touch_getStartLocation); - tolua_function(tolua_S,"getId",lua_cocos2dx_Touch_getID); - tolua_function(tolua_S,"setTouchInfo",lua_cocos2dx_Touch_setTouchInfo); - tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_Touch_getLocationInView); - tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_Touch_getPreviousLocation); + tolua_function(tolua_S,"new",lua_cocos2dx_Touch_constructor); + tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_Touch_getPreviousLocationInView); + tolua_function(tolua_S,"getLocation",lua_cocos2dx_Touch_getLocation); + tolua_function(tolua_S,"getDelta",lua_cocos2dx_Touch_getDelta); + tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_Touch_getStartLocationInView); + tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_Touch_getStartLocation); + tolua_function(tolua_S,"getId",lua_cocos2dx_Touch_getID); + tolua_function(tolua_S,"setTouchInfo",lua_cocos2dx_Touch_setTouchInfo); + tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_Touch_getLocationInView); + tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_Touch_getPreviousLocation); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Touch).name(); g_luaType[typeName] = "cc.Touch"; @@ -2341,28 +2341,28 @@ int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_isStopped'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2375,12 +2375,12 @@ int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:isStopped",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_isStopped'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Event_getType(lua_State* tolua_S) @@ -2388,28 +2388,28 @@ int lua_cocos2dx_Event_getType(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_getType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2422,12 +2422,12 @@ int lua_cocos2dx_Event_getType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_getType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) @@ -2435,28 +2435,28 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_getCurrentTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2469,12 +2469,12 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getCurrentTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_getCurrentTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) @@ -2482,28 +2482,28 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_stopPropagation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2515,12 +2515,12 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:stopPropagation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_stopPropagation'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Event_finalize(lua_State* tolua_S) @@ -2533,12 +2533,12 @@ int lua_register_cocos2dx_Event(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Event"); tolua_cclass(tolua_S,"Event","cc.Event","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Event"); - tolua_function(tolua_S,"isStopped",lua_cocos2dx_Event_isStopped); - tolua_function(tolua_S,"getType",lua_cocos2dx_Event_getType); - tolua_function(tolua_S,"getCurrentTarget",lua_cocos2dx_Event_getCurrentTarget); - tolua_function(tolua_S,"stopPropagation",lua_cocos2dx_Event_stopPropagation); + tolua_function(tolua_S,"isStopped",lua_cocos2dx_Event_isStopped); + tolua_function(tolua_S,"getType",lua_cocos2dx_Event_getType); + tolua_function(tolua_S,"getCurrentTarget",lua_cocos2dx_Event_getCurrentTarget); + tolua_function(tolua_S,"stopPropagation",lua_cocos2dx_Event_stopPropagation); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Event).name(); g_luaType[typeName] = "cc.Event"; @@ -2551,28 +2551,28 @@ int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventTouch_getEventCode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2585,12 +2585,12 @@ int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:getEventCode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_getEventCode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) @@ -2598,31 +2598,31 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventTouch_setEventCode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventTouch::EventCode arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventTouch:setEventCode"); if(!ok) { @@ -2634,12 +2634,12 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:setEventCode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_setEventCode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) @@ -2647,15 +2647,15 @@ int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2671,11 +2671,11 @@ int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:EventTouch",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_constructor'.",&tolua_err); #endif - + return 0; } @@ -2689,11 +2689,11 @@ int lua_register_cocos2dx_EventTouch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventTouch"); tolua_cclass(tolua_S,"EventTouch","cc.EventTouch","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventTouch"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventTouch_constructor); - tolua_function(tolua_S,"getEventCode",lua_cocos2dx_EventTouch_getEventCode); - tolua_function(tolua_S,"setEventCode",lua_cocos2dx_EventTouch_setEventCode); + tolua_function(tolua_S,"new",lua_cocos2dx_EventTouch_constructor); + tolua_function(tolua_S,"getEventCode",lua_cocos2dx_EventTouch_getEventCode); + tolua_function(tolua_S,"setEventCode",lua_cocos2dx_EventTouch_setEventCode); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventTouch).name(); g_luaType[typeName] = "cc.EventTouch"; @@ -2706,21 +2706,21 @@ int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventKeyboard* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventKeyboard::KeyCode arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventKeyboard:EventKeyboard"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventKeyboard:EventKeyboard"); if(!ok) { @@ -2736,11 +2736,11 @@ int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventKeyboard:EventKeyboard",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventKeyboard_constructor'.",&tolua_err); #endif - + return 0; } @@ -2754,9 +2754,9 @@ int lua_register_cocos2dx_EventKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventKeyboard"); tolua_cclass(tolua_S,"EventKeyboard","cc.EventKeyboard","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventKeyboard"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); + tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventKeyboard).name(); g_luaType[typeName] = "cc.EventKeyboard"; @@ -2772,7 +2772,7 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -2789,11 +2789,11 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); - + if (!ok) { break; } cobj->addChild(arg0, arg1); return 0; @@ -2804,7 +2804,7 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } cobj->addChild(arg0); return 0; @@ -2815,15 +2815,15 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Node:addChild"); - + if (!ok) { break; } cobj->addChild(arg0, arg1, arg2); return 0; @@ -2834,15 +2834,15 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); - + if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.Node:addChild"); - + if (!ok) { break; } cobj->addChild(arg0, arg1, arg2); return 0; @@ -2851,12 +2851,12 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:addChild",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_addChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) @@ -2867,7 +2867,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -2884,7 +2884,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) if (argc == 1) { cocos2d::Component* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0); - + if (!ok) { break; } bool ret = cobj->removeComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -2896,7 +2896,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeComponent"); - + if (!ok) { break; } bool ret = cobj->removeComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -2906,12 +2906,12 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeComponent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeComponent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) @@ -2919,31 +2919,31 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::PhysicsBody* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0); if(!ok) { @@ -2955,12 +2955,12 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPhysicsBody",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPhysicsBody'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) @@ -2968,28 +2968,28 @@ int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDescription'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3002,12 +3002,12 @@ int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDescription",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDescription'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) @@ -3015,31 +3015,31 @@ int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotationSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotationSkewY"); if(!ok) { @@ -3051,12 +3051,12 @@ int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotationSkewY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotationSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) @@ -3064,31 +3064,31 @@ int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setOpacityModifyRGB"); if(!ok) { @@ -3100,12 +3100,12 @@ int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOpacityModifyRGB",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) @@ -3113,31 +3113,31 @@ int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setCascadeOpacityEnabled"); if(!ok) { @@ -3149,12 +3149,12 @@ int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCascadeOpacityEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) @@ -3165,7 +3165,7 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -3196,12 +3196,12 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) @@ -3209,36 +3209,36 @@ int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOnExitCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOnExitCallback'", nullptr); @@ -3249,12 +3249,12 @@ int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOnExitCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOnExitCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_pause(lua_State* tolua_S) @@ -3262,28 +3262,28 @@ int lua_cocos2dx_Node_pause(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_pause'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3295,12 +3295,12 @@ int lua_cocos2dx_Node_pause(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:pause",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_pause'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) @@ -3308,31 +3308,31 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpaceAR"); if(!ok) { @@ -3345,12 +3345,12 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToWorldSpaceAR",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) @@ -3358,28 +3358,28 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3392,12 +3392,12 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isIgnoreAnchorPointForPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) @@ -3405,31 +3405,31 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:getChildByName"); if(!ok) { @@ -3442,12 +3442,12 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) @@ -3455,31 +3455,31 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateDisplayedOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.Node:updateDisplayedOpacity"); if(!ok) { @@ -3491,12 +3491,12 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateDisplayedOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateDisplayedOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) @@ -3504,28 +3504,28 @@ int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getCameraMask'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3538,12 +3538,12 @@ int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getCameraMask",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getCameraMask'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) @@ -3551,31 +3551,31 @@ int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotation"); if(!ok) { @@ -3587,12 +3587,12 @@ int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) @@ -3600,31 +3600,31 @@ int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleZ"); if(!ok) { @@ -3636,12 +3636,12 @@ int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleZ",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) @@ -3649,31 +3649,31 @@ int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleY"); if(!ok) { @@ -3685,12 +3685,12 @@ int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) @@ -3698,31 +3698,31 @@ int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleX"); if(!ok) { @@ -3734,12 +3734,12 @@ int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) @@ -3747,31 +3747,31 @@ int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotationSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotationSkewX"); if(!ok) { @@ -3783,12 +3783,12 @@ int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotationSkewX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotationSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) @@ -3796,36 +3796,36 @@ int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'", nullptr); @@ -3836,12 +3836,12 @@ int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setonEnterTransitionDidFinishCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S) @@ -3849,28 +3849,28 @@ int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeFromPhysicsWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3882,12 +3882,12 @@ int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeFromPhysicsWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeFromPhysicsWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) @@ -3895,28 +3895,28 @@ int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeAllComponents'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3928,12 +3928,12 @@ int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeAllComponents",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeAllComponents'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) @@ -3941,28 +3941,28 @@ int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3975,12 +3975,12 @@ int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) @@ -3988,31 +3988,31 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCameraMask'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned short arg0; - + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.Node:setCameraMask"); if(!ok) { @@ -4022,13 +4022,13 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) cobj->setCameraMask(arg0); return 0; } - if (argc == 2) + if (argc == 2) { unsigned short arg0; bool arg1; - + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.Node:setCameraMask"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:setCameraMask"); if(!ok) { @@ -4040,12 +4040,12 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCameraMask",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCameraMask'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getTag(lua_State* tolua_S) @@ -4053,28 +4053,28 @@ int lua_cocos2dx_Node_getTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4087,12 +4087,12 @@ int lua_cocos2dx_Node_getTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getTag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) @@ -4100,28 +4100,28 @@ int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4134,12 +4134,12 @@ int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) @@ -4147,28 +4147,28 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToWorldTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4181,12 +4181,12 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToWorldTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToWorldTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) @@ -4194,28 +4194,28 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPosition3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4228,12 +4228,12 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPosition3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPosition3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) @@ -4241,31 +4241,31 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -4275,13 +4275,13 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) cobj->removeChild(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChild"); if(!ok) { @@ -4293,12 +4293,12 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) @@ -4306,31 +4306,31 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToWorldSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpace"); if(!ok) { @@ -4343,12 +4343,12 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToWorldSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToWorldSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScene(lua_State* tolua_S) @@ -4356,28 +4356,28 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4390,12 +4390,12 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) @@ -4403,28 +4403,28 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4437,12 +4437,12 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getEventDispatcher",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) @@ -4450,31 +4450,31 @@ int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setSkewX"); if(!ok) { @@ -4486,12 +4486,12 @@ int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setSkewX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) @@ -4499,31 +4499,31 @@ int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGLProgramState'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgramState* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgramState",&arg0); if(!ok) { @@ -4535,12 +4535,12 @@ int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGLProgramState",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGLProgramState'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) @@ -4548,36 +4548,36 @@ int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOnEnterCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOnEnterCallback'", nullptr); @@ -4588,12 +4588,12 @@ int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOnEnterCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOnEnterCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) @@ -4601,31 +4601,31 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setNormalizedPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setNormalizedPosition"); if(!ok) { @@ -4637,12 +4637,12 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setNormalizedPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setNormalizedPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) @@ -4650,36 +4650,36 @@ int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'", nullptr); @@ -4690,12 +4690,12 @@ int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setonExitTransitionDidStartCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) @@ -4703,31 +4703,31 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Touch* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); if(!ok) { @@ -4740,12 +4740,12 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertTouchToNodeSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -4756,7 +4756,7 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -4773,7 +4773,7 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:removeAllChildrenWithCleanup"); - + if (!ok) { break; } cobj->removeAllChildrenWithCleanup(arg0); return 0; @@ -4789,12 +4789,12 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeAllChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) @@ -4802,28 +4802,28 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToParentAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4836,12 +4836,12 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToParentAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToParentAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) @@ -4849,28 +4849,28 @@ int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4883,12 +4883,12 @@ int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isCascadeOpacityEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setParent(lua_State* tolua_S) @@ -4896,31 +4896,31 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setParent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -4932,12 +4932,12 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setParent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setParent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getName(lua_State* tolua_S) @@ -4945,28 +4945,28 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4979,12 +4979,12 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_resume(lua_State* tolua_S) @@ -4992,28 +4992,28 @@ int lua_cocos2dx_Node_resume(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_resume'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5025,12 +5025,12 @@ int lua_cocos2dx_Node_resume(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:resume",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_resume'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) @@ -5038,28 +5038,28 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotation3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5072,12 +5072,12 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotation3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotation3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) @@ -5085,28 +5085,28 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToParentTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5119,12 +5119,12 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToParentTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToParentTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) @@ -5132,31 +5132,31 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Touch* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); if(!ok) { @@ -5169,12 +5169,12 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertTouchToNodeSpaceAR",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) @@ -5182,31 +5182,31 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToNodeSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpace"); if(!ok) { @@ -5219,12 +5219,12 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToNodeSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToNodeSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) @@ -5232,28 +5232,28 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPhysicsBody'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5266,12 +5266,12 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPhysicsBody",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPhysicsBody'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) @@ -5282,7 +5282,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -5299,11 +5299,11 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPosition"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Node:setPosition"); - + if (!ok) { break; } cobj->setPosition(arg0, arg1); return 0; @@ -5314,7 +5314,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setPosition"); - + if (!ok) { break; } cobj->setPosition(arg0); return 0; @@ -5323,12 +5323,12 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) @@ -5336,31 +5336,31 @@ int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:stopActionByTag"); if(!ok) { @@ -5372,12 +5372,12 @@ int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopActionByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) @@ -5385,34 +5385,34 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_reorderChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:reorderChild"); if(!ok) { @@ -5424,12 +5424,12 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:reorderChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_reorderChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_ignoreAnchorPointForPosition(lua_State* tolua_S) @@ -5437,31 +5437,31 @@ int lua_cocos2dx_Node_ignoreAnchorPointForPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_ignoreAnchorPointForPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:ignoreAnchorPointForPosition"); if(!ok) { @@ -5473,12 +5473,12 @@ int lua_cocos2dx_Node_ignoreAnchorPointForPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:ignoreAnchorPointForPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_ignoreAnchorPointForPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) @@ -5486,31 +5486,31 @@ int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setSkewY"); if(!ok) { @@ -5522,12 +5522,12 @@ int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setSkewY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) @@ -5535,31 +5535,31 @@ int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionZ"); if(!ok) { @@ -5571,12 +5571,12 @@ int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionZ",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) @@ -5584,31 +5584,31 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotation3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setRotation3D"); if(!ok) { @@ -5620,12 +5620,12 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotation3D",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotation3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) @@ -5633,31 +5633,31 @@ int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionX"); if(!ok) { @@ -5669,12 +5669,12 @@ int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) @@ -5682,31 +5682,31 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setNodeToParentTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Mat4 arg0; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Node:setNodeToParentTransform"); if(!ok) { @@ -5718,12 +5718,12 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setNodeToParentTransform",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setNodeToParentTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) @@ -5731,28 +5731,28 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getAnchorPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5765,12 +5765,12 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getAnchorPoint",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getAnchorPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) @@ -5778,28 +5778,28 @@ int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNumberOfRunningActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5812,12 +5812,12 @@ int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNumberOfRunningActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNumberOfRunningActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) @@ -5825,28 +5825,28 @@ int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5858,12 +5858,12 @@ int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) @@ -5871,28 +5871,28 @@ int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isVisible'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5905,12 +5905,12 @@ int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isVisible",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isVisible'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) @@ -5918,28 +5918,28 @@ int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildrenCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5952,12 +5952,12 @@ int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildrenCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildrenCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) @@ -5965,31 +5965,31 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpaceAR"); if(!ok) { @@ -6002,12 +6002,12 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToNodeSpaceAR",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) @@ -6015,31 +6015,31 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_addComponent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Component* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0); if(!ok) { @@ -6052,12 +6052,12 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:addComponent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_addComponent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_runAction(lua_State* tolua_S) @@ -6065,31 +6065,31 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_runAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Action* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); if(!ok) { @@ -6102,12 +6102,12 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:runAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_runAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) @@ -6115,28 +6115,28 @@ int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6149,12 +6149,12 @@ int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isOpacityModifyRGB",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) @@ -6162,28 +6162,28 @@ int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6196,12 +6196,12 @@ int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) @@ -6209,28 +6209,28 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getAnchorPointInPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6243,12 +6243,12 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getAnchorPointInPoints",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getAnchorPointInPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_visit(lua_State* tolua_S) @@ -6259,7 +6259,7 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -6283,15 +6283,15 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) if (argc == 3) { cocos2d::Renderer* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:visit"); - + if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Node:visit"); - + if (!ok) { break; } cobj->visit(arg0, arg1, arg2); return 0; @@ -6300,12 +6300,12 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:visit",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_visit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) @@ -6313,31 +6313,31 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChildByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeChildByName"); if(!ok) { @@ -6347,13 +6347,13 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) cobj->removeChildByName(arg0); return 0; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeChildByName"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChildByName"); if(!ok) { @@ -6365,12 +6365,12 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChildByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChildByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) @@ -6378,28 +6378,28 @@ int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGLProgramState'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6412,12 +6412,12 @@ int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGLProgramState",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGLProgramState'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) @@ -6425,31 +6425,31 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScheduler'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scheduler* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0); if(!ok) { @@ -6461,12 +6461,12 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScheduler",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) @@ -6474,28 +6474,28 @@ int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAllActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6507,12 +6507,12 @@ int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAllActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAllActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) @@ -6520,28 +6520,28 @@ int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6554,12 +6554,12 @@ int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getSkewX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) @@ -6567,28 +6567,28 @@ int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6601,12 +6601,12 @@ int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getSkewY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) @@ -6614,28 +6614,28 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDisplayedColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6648,12 +6648,12 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDisplayedColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDisplayedColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) @@ -6661,31 +6661,31 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:getActionByTag"); if(!ok) { @@ -6698,12 +6698,12 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setName(lua_State* tolua_S) @@ -6711,31 +6711,31 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:setName"); if(!ok) { @@ -6747,12 +6747,12 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) @@ -6760,28 +6760,28 @@ int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDisplayedOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6794,12 +6794,12 @@ int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDisplayedOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDisplayedOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) @@ -6807,28 +6807,28 @@ int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getLocalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6841,12 +6841,12 @@ int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getLocalZOrder",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getLocalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) @@ -6857,7 +6857,7 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -6888,12 +6888,12 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScheduler",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) @@ -6901,28 +6901,28 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6935,12 +6935,12 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParentToNodeAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getOrderOfArrival(lua_State* tolua_S) @@ -6948,28 +6948,28 @@ int lua_cocos2dx_Node_getOrderOfArrival(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getOrderOfArrival'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6982,12 +6982,12 @@ int lua_cocos2dx_Node_getOrderOfArrival(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getOrderOfArrival",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getOrderOfArrival'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) @@ -6995,31 +6995,31 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setActionManager'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionManager* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0); if(!ok) { @@ -7031,12 +7031,12 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setActionManager",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setColor(lua_State* tolua_S) @@ -7044,31 +7044,31 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:setColor"); if(!ok) { @@ -7080,12 +7080,12 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) @@ -7093,28 +7093,28 @@ int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isRunning'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7127,12 +7127,12 @@ int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isRunning",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isRunning'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getParent(lua_State* tolua_S) @@ -7143,7 +7143,7 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -7174,12 +7174,12 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) @@ -7187,28 +7187,28 @@ int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7221,12 +7221,12 @@ int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionZ",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) @@ -7234,28 +7234,28 @@ int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7268,12 +7268,12 @@ int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) @@ -7281,28 +7281,28 @@ int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7315,12 +7315,12 @@ int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) @@ -7328,31 +7328,31 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:removeChildByTag"); if(!ok) { @@ -7362,13 +7362,13 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) cobj->removeChildByTag(arg0); return 0; } - if (argc == 2) + if (argc == 2) { int arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:removeChildByTag"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChildByTag"); if(!ok) { @@ -7380,12 +7380,12 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) @@ -7393,31 +7393,31 @@ int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionY"); if(!ok) { @@ -7429,12 +7429,12 @@ int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) @@ -7442,28 +7442,28 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7476,12 +7476,12 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToWorldAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) @@ -7489,31 +7489,31 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateDisplayedColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:updateDisplayedColor"); if(!ok) { @@ -7525,12 +7525,12 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateDisplayedColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateDisplayedColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) @@ -7538,31 +7538,31 @@ int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setVisible'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setVisible"); if(!ok) { @@ -7574,12 +7574,12 @@ int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setVisible",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setVisible'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) @@ -7587,28 +7587,28 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParentToNodeTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7621,12 +7621,12 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParentToNodeTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParentToNodeTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) @@ -7634,31 +7634,31 @@ int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isScheduled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:isScheduled"); if(!ok) { @@ -7671,12 +7671,12 @@ int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isScheduled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isScheduled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) @@ -7684,31 +7684,31 @@ int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGlobalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setGlobalZOrder"); if(!ok) { @@ -7720,12 +7720,12 @@ int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGlobalZOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGlobalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScale(lua_State* tolua_S) @@ -7736,7 +7736,7 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -7753,11 +7753,11 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScale"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Node:setScale"); - + if (!ok) { break; } cobj->setScale(arg0, arg1); return 0; @@ -7768,7 +7768,7 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScale"); - + if (!ok) { break; } cobj->setScale(arg0); return 0; @@ -7777,12 +7777,12 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScale",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) @@ -7790,31 +7790,31 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:getChildByTag"); if(!ok) { @@ -7827,12 +7827,12 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOrderOfArrival(lua_State* tolua_S) @@ -7840,31 +7840,31 @@ int lua_cocos2dx_Node_setOrderOfArrival(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOrderOfArrival'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setOrderOfArrival"); if(!ok) { @@ -7876,12 +7876,12 @@ int lua_cocos2dx_Node_setOrderOfArrival(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOrderOfArrival",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOrderOfArrival'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) @@ -7889,28 +7889,28 @@ int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7923,12 +7923,12 @@ int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleZ",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) @@ -7936,28 +7936,28 @@ int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7970,12 +7970,12 @@ int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) @@ -7983,28 +7983,28 @@ int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8017,12 +8017,12 @@ int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) @@ -8030,31 +8030,31 @@ int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setLocalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setLocalZOrder"); if(!ok) { @@ -8066,12 +8066,12 @@ int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setLocalZOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setLocalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) @@ -8079,28 +8079,28 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8113,12 +8113,12 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getWorldToNodeAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) @@ -8126,31 +8126,31 @@ int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCascadeColorEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setCascadeColorEnabled"); if(!ok) { @@ -8162,12 +8162,12 @@ int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCascadeColorEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCascadeColorEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) @@ -8175,31 +8175,31 @@ int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.Node:setOpacity"); if(!ok) { @@ -8211,12 +8211,12 @@ int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) @@ -8224,28 +8224,28 @@ int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_cleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8257,12 +8257,12 @@ int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:cleanup",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_cleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) @@ -8270,31 +8270,31 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getComponent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:getComponent"); if(!ok) { @@ -8307,12 +8307,12 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getComponent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getComponent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) @@ -8320,28 +8320,28 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getContentSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8354,12 +8354,12 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getContentSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getContentSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) @@ -8367,31 +8367,31 @@ int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAllActionsByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:stopAllActionsByTag"); if(!ok) { @@ -8403,12 +8403,12 @@ int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAllActionsByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAllActionsByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getColor(lua_State* tolua_S) @@ -8416,28 +8416,28 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8450,12 +8450,12 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) @@ -8463,28 +8463,28 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getBoundingBox'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8497,12 +8497,12 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getBoundingBox",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getBoundingBox'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) @@ -8510,31 +8510,31 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventDispatcher* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0); if(!ok) { @@ -8546,12 +8546,12 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setEventDispatcher",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) @@ -8559,28 +8559,28 @@ int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGlobalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8593,12 +8593,12 @@ int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGlobalZOrder",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGlobalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_draw(lua_State* tolua_S) @@ -8609,7 +8609,7 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -8633,15 +8633,15 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) if (argc == 3) { cocos2d::Renderer* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:draw"); - + if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Node:draw"); - + if (!ok) { break; } cobj->draw(arg0, arg1, arg2); return 0; @@ -8650,12 +8650,12 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:draw",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_draw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) @@ -8663,31 +8663,31 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setUserObject'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Ref* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Ref",&arg0); if(!ok) { @@ -8699,12 +8699,12 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setUserObject",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setUserObject'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) @@ -8715,7 +8715,7 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -8732,7 +8732,7 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:removeFromParentAndCleanup"); - + if (!ok) { break; } cobj->removeFromParentAndCleanup(arg0); return 0; @@ -8748,12 +8748,12 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeFromParent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeFromParentAndCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) @@ -8761,31 +8761,31 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPosition3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setPosition3D"); if(!ok) { @@ -8797,12 +8797,12 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPosition3D",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPosition3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_update(lua_State* tolua_S) @@ -8810,31 +8810,31 @@ int lua_cocos2dx_Node_update(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:update"); if(!ok) { @@ -8846,12 +8846,12 @@ int lua_cocos2dx_Node_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) @@ -8859,28 +8859,28 @@ int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_sortAllChildren'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8892,12 +8892,12 @@ int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:sortAllChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_sortAllChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) @@ -8905,28 +8905,28 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getWorldToNodeTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8939,12 +8939,12 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getWorldToNodeTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getWorldToNodeTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) @@ -8952,31 +8952,31 @@ int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgram* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); if(!ok) { @@ -8988,12 +8988,12 @@ int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScale(lua_State* tolua_S) @@ -9001,28 +9001,28 @@ int lua_cocos2dx_Node_getScale(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9035,12 +9035,12 @@ int lua_cocos2dx_Node_getScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScale",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) @@ -9048,28 +9048,28 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNormalizedPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9082,12 +9082,12 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNormalizedPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNormalizedPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) @@ -9095,28 +9095,28 @@ int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotationSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9129,12 +9129,12 @@ int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotationSkewX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotationSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) @@ -9142,28 +9142,28 @@ int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotationSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9176,12 +9176,12 @@ int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotationSkewY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotationSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setTag(lua_State* tolua_S) @@ -9189,31 +9189,31 @@ int lua_cocos2dx_Node_setTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setTag"); if(!ok) { @@ -9225,12 +9225,12 @@ int lua_cocos2dx_Node_setTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) @@ -9238,28 +9238,28 @@ int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isCascadeColorEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9272,12 +9272,12 @@ int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isCascadeColorEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isCascadeColorEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) @@ -9285,31 +9285,31 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Action* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); if(!ok) { @@ -9321,12 +9321,12 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) @@ -9337,7 +9337,7 @@ int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -9368,29 +9368,29 @@ int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionManager",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -9405,7 +9405,7 @@ int lua_cocos2dx_Node_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Node:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_create'.",&tolua_err); #endif return 0; @@ -9420,143 +9420,143 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Node"); tolua_cclass(tolua_S,"Node","cc.Node","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Node"); - tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); - tolua_function(tolua_S,"removeComponent",lua_cocos2dx_Node_removeComponent); - tolua_function(tolua_S,"setPhysicsBody",lua_cocos2dx_Node_setPhysicsBody); - tolua_function(tolua_S,"getDescription",lua_cocos2dx_Node_getDescription); - tolua_function(tolua_S,"setRotationSkewY",lua_cocos2dx_Node_setRotationSkewY); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_Node_setOpacityModifyRGB); - tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_cocos2dx_Node_setCascadeOpacityEnabled); - tolua_function(tolua_S,"getChildren",lua_cocos2dx_Node_getChildren); - tolua_function(tolua_S,"setOnExitCallback",lua_cocos2dx_Node_setOnExitCallback); - tolua_function(tolua_S,"pause",lua_cocos2dx_Node_pause); - tolua_function(tolua_S,"convertToWorldSpaceAR",lua_cocos2dx_Node_convertToWorldSpaceAR); - tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_cocos2dx_Node_isIgnoreAnchorPointForPosition); - tolua_function(tolua_S,"getChildByName",lua_cocos2dx_Node_getChildByName); - tolua_function(tolua_S,"updateDisplayedOpacity",lua_cocos2dx_Node_updateDisplayedOpacity); - tolua_function(tolua_S,"getCameraMask",lua_cocos2dx_Node_getCameraMask); - tolua_function(tolua_S,"setRotation",lua_cocos2dx_Node_setRotation); - tolua_function(tolua_S,"setScaleZ",lua_cocos2dx_Node_setScaleZ); - tolua_function(tolua_S,"setScaleY",lua_cocos2dx_Node_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_cocos2dx_Node_setScaleX); - tolua_function(tolua_S,"setRotationSkewX",lua_cocos2dx_Node_setRotationSkewX); - tolua_function(tolua_S,"setonEnterTransitionDidFinishCallback",lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback); - tolua_function(tolua_S,"removeFromPhysicsWorld",lua_cocos2dx_Node_removeFromPhysicsWorld); - tolua_function(tolua_S,"removeAllComponents",lua_cocos2dx_Node_removeAllComponents); - tolua_function(tolua_S,"getOpacity",lua_cocos2dx_Node_getOpacity); - tolua_function(tolua_S,"setCameraMask",lua_cocos2dx_Node_setCameraMask); - tolua_function(tolua_S,"getTag",lua_cocos2dx_Node_getTag); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Node_getGLProgram); - tolua_function(tolua_S,"getNodeToWorldTransform",lua_cocos2dx_Node_getNodeToWorldTransform); - tolua_function(tolua_S,"getPosition3D",lua_cocos2dx_Node_getPosition3D); - tolua_function(tolua_S,"removeChild",lua_cocos2dx_Node_removeChild); - tolua_function(tolua_S,"convertToWorldSpace",lua_cocos2dx_Node_convertToWorldSpace); - tolua_function(tolua_S,"getScene",lua_cocos2dx_Node_getScene); - tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Node_getEventDispatcher); - tolua_function(tolua_S,"setSkewX",lua_cocos2dx_Node_setSkewX); - tolua_function(tolua_S,"setGLProgramState",lua_cocos2dx_Node_setGLProgramState); - tolua_function(tolua_S,"setOnEnterCallback",lua_cocos2dx_Node_setOnEnterCallback); - tolua_function(tolua_S,"setNormalizedPosition",lua_cocos2dx_Node_setNormalizedPosition); - tolua_function(tolua_S,"setonExitTransitionDidStartCallback",lua_cocos2dx_Node_setonExitTransitionDidStartCallback); - tolua_function(tolua_S,"convertTouchToNodeSpace",lua_cocos2dx_Node_convertTouchToNodeSpace); - tolua_function(tolua_S,"removeAllChildren",lua_cocos2dx_Node_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_cocos2dx_Node_getNodeToParentAffineTransform); - tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled); - tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent); - tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName); - tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume); - tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D); - tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform); - tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR); - tolua_function(tolua_S,"convertToNodeSpace",lua_cocos2dx_Node_convertToNodeSpace); - tolua_function(tolua_S,"getPhysicsBody",lua_cocos2dx_Node_getPhysicsBody); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Node_setPosition); - tolua_function(tolua_S,"stopActionByTag",lua_cocos2dx_Node_stopActionByTag); - tolua_function(tolua_S,"reorderChild",lua_cocos2dx_Node_reorderChild); - tolua_function(tolua_S,"ignoreAnchorPointForPosition",lua_cocos2dx_Node_ignoreAnchorPointForPosition); - tolua_function(tolua_S,"setSkewY",lua_cocos2dx_Node_setSkewY); - tolua_function(tolua_S,"setPositionZ",lua_cocos2dx_Node_setPositionZ); - tolua_function(tolua_S,"setRotation3D",lua_cocos2dx_Node_setRotation3D); - tolua_function(tolua_S,"setPositionX",lua_cocos2dx_Node_setPositionX); - tolua_function(tolua_S,"setNodeToParentTransform",lua_cocos2dx_Node_setNodeToParentTransform); - tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_Node_getAnchorPoint); - tolua_function(tolua_S,"getNumberOfRunningActions",lua_cocos2dx_Node_getNumberOfRunningActions); - tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Node_updateTransform); - tolua_function(tolua_S,"isVisible",lua_cocos2dx_Node_isVisible); - tolua_function(tolua_S,"getChildrenCount",lua_cocos2dx_Node_getChildrenCount); - tolua_function(tolua_S,"convertToNodeSpaceAR",lua_cocos2dx_Node_convertToNodeSpaceAR); - tolua_function(tolua_S,"addComponent",lua_cocos2dx_Node_addComponent); - tolua_function(tolua_S,"runAction",lua_cocos2dx_Node_runAction); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_Node_isOpacityModifyRGB); - tolua_function(tolua_S,"getRotation",lua_cocos2dx_Node_getRotation); - tolua_function(tolua_S,"getAnchorPointInPoints",lua_cocos2dx_Node_getAnchorPointInPoints); - tolua_function(tolua_S,"visit",lua_cocos2dx_Node_visit); - tolua_function(tolua_S,"removeChildByName",lua_cocos2dx_Node_removeChildByName); - tolua_function(tolua_S,"getGLProgramState",lua_cocos2dx_Node_getGLProgramState); - tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Node_setScheduler); - tolua_function(tolua_S,"stopAllActions",lua_cocos2dx_Node_stopAllActions); - tolua_function(tolua_S,"getSkewX",lua_cocos2dx_Node_getSkewX); - tolua_function(tolua_S,"getSkewY",lua_cocos2dx_Node_getSkewY); - tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor); - tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag); - tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName); - tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity); - tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder); - tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Node_getScheduler); - tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_cocos2dx_Node_getParentToNodeAffineTransform); - tolua_function(tolua_S,"getOrderOfArrival",lua_cocos2dx_Node_getOrderOfArrival); - tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Node_setActionManager); - tolua_function(tolua_S,"setColor",lua_cocos2dx_Node_setColor); - tolua_function(tolua_S,"isRunning",lua_cocos2dx_Node_isRunning); - tolua_function(tolua_S,"getParent",lua_cocos2dx_Node_getParent); - tolua_function(tolua_S,"getPositionZ",lua_cocos2dx_Node_getPositionZ); - tolua_function(tolua_S,"getPositionY",lua_cocos2dx_Node_getPositionY); - tolua_function(tolua_S,"getPositionX",lua_cocos2dx_Node_getPositionX); - tolua_function(tolua_S,"removeChildByTag",lua_cocos2dx_Node_removeChildByTag); - tolua_function(tolua_S,"setPositionY",lua_cocos2dx_Node_setPositionY); - tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_cocos2dx_Node_getNodeToWorldAffineTransform); - tolua_function(tolua_S,"updateDisplayedColor",lua_cocos2dx_Node_updateDisplayedColor); - tolua_function(tolua_S,"setVisible",lua_cocos2dx_Node_setVisible); - tolua_function(tolua_S,"getParentToNodeTransform",lua_cocos2dx_Node_getParentToNodeTransform); - tolua_function(tolua_S,"isScheduled",lua_cocos2dx_Node_isScheduled); - tolua_function(tolua_S,"setGlobalZOrder",lua_cocos2dx_Node_setGlobalZOrder); - tolua_function(tolua_S,"setScale",lua_cocos2dx_Node_setScale); - tolua_function(tolua_S,"getChildByTag",lua_cocos2dx_Node_getChildByTag); - tolua_function(tolua_S,"setOrderOfArrival",lua_cocos2dx_Node_setOrderOfArrival); - tolua_function(tolua_S,"getScaleZ",lua_cocos2dx_Node_getScaleZ); - tolua_function(tolua_S,"getScaleY",lua_cocos2dx_Node_getScaleY); - tolua_function(tolua_S,"getScaleX",lua_cocos2dx_Node_getScaleX); - tolua_function(tolua_S,"setLocalZOrder",lua_cocos2dx_Node_setLocalZOrder); - tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_cocos2dx_Node_getWorldToNodeAffineTransform); - tolua_function(tolua_S,"setCascadeColorEnabled",lua_cocos2dx_Node_setCascadeColorEnabled); - tolua_function(tolua_S,"setOpacity",lua_cocos2dx_Node_setOpacity); - tolua_function(tolua_S,"cleanup",lua_cocos2dx_Node_cleanup); - tolua_function(tolua_S,"getComponent",lua_cocos2dx_Node_getComponent); - tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Node_getContentSize); - tolua_function(tolua_S,"stopAllActionsByTag",lua_cocos2dx_Node_stopAllActionsByTag); - tolua_function(tolua_S,"getColor",lua_cocos2dx_Node_getColor); - tolua_function(tolua_S,"getBoundingBox",lua_cocos2dx_Node_getBoundingBox); - tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Node_setEventDispatcher); - tolua_function(tolua_S,"getGlobalZOrder",lua_cocos2dx_Node_getGlobalZOrder); - tolua_function(tolua_S,"draw",lua_cocos2dx_Node_draw); - tolua_function(tolua_S,"setUserObject",lua_cocos2dx_Node_setUserObject); - tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_Node_removeFromParentAndCleanup); - tolua_function(tolua_S,"setPosition3D",lua_cocos2dx_Node_setPosition3D); - tolua_function(tolua_S,"update",lua_cocos2dx_Node_update); - tolua_function(tolua_S,"sortAllChildren",lua_cocos2dx_Node_sortAllChildren); - tolua_function(tolua_S,"getWorldToNodeTransform",lua_cocos2dx_Node_getWorldToNodeTransform); - tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Node_setGLProgram); - tolua_function(tolua_S,"getScale",lua_cocos2dx_Node_getScale); - tolua_function(tolua_S,"getNormalizedPosition",lua_cocos2dx_Node_getNormalizedPosition); - tolua_function(tolua_S,"getRotationSkewX",lua_cocos2dx_Node_getRotationSkewX); - tolua_function(tolua_S,"getRotationSkewY",lua_cocos2dx_Node_getRotationSkewY); - tolua_function(tolua_S,"setTag",lua_cocos2dx_Node_setTag); - tolua_function(tolua_S,"isCascadeColorEnabled",lua_cocos2dx_Node_isCascadeColorEnabled); - tolua_function(tolua_S,"stopAction",lua_cocos2dx_Node_stopAction); - tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Node_getActionManager); - tolua_function(tolua_S,"create", lua_cocos2dx_Node_create); + tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); + tolua_function(tolua_S,"removeComponent",lua_cocos2dx_Node_removeComponent); + tolua_function(tolua_S,"setPhysicsBody",lua_cocos2dx_Node_setPhysicsBody); + tolua_function(tolua_S,"getDescription",lua_cocos2dx_Node_getDescription); + tolua_function(tolua_S,"setRotationSkewY",lua_cocos2dx_Node_setRotationSkewY); + tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_Node_setOpacityModifyRGB); + tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_cocos2dx_Node_setCascadeOpacityEnabled); + tolua_function(tolua_S,"getChildren",lua_cocos2dx_Node_getChildren); + tolua_function(tolua_S,"setOnExitCallback",lua_cocos2dx_Node_setOnExitCallback); + tolua_function(tolua_S,"pause",lua_cocos2dx_Node_pause); + tolua_function(tolua_S,"convertToWorldSpaceAR",lua_cocos2dx_Node_convertToWorldSpaceAR); + tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_cocos2dx_Node_isIgnoreAnchorPointForPosition); + tolua_function(tolua_S,"getChildByName",lua_cocos2dx_Node_getChildByName); + tolua_function(tolua_S,"updateDisplayedOpacity",lua_cocos2dx_Node_updateDisplayedOpacity); + tolua_function(tolua_S,"getCameraMask",lua_cocos2dx_Node_getCameraMask); + tolua_function(tolua_S,"setRotation",lua_cocos2dx_Node_setRotation); + tolua_function(tolua_S,"setScaleZ",lua_cocos2dx_Node_setScaleZ); + tolua_function(tolua_S,"setScaleY",lua_cocos2dx_Node_setScaleY); + tolua_function(tolua_S,"setScaleX",lua_cocos2dx_Node_setScaleX); + tolua_function(tolua_S,"setRotationSkewX",lua_cocos2dx_Node_setRotationSkewX); + tolua_function(tolua_S,"setonEnterTransitionDidFinishCallback",lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback); + tolua_function(tolua_S,"removeFromPhysicsWorld",lua_cocos2dx_Node_removeFromPhysicsWorld); + tolua_function(tolua_S,"removeAllComponents",lua_cocos2dx_Node_removeAllComponents); + tolua_function(tolua_S,"getOpacity",lua_cocos2dx_Node_getOpacity); + tolua_function(tolua_S,"setCameraMask",lua_cocos2dx_Node_setCameraMask); + tolua_function(tolua_S,"getTag",lua_cocos2dx_Node_getTag); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Node_getGLProgram); + tolua_function(tolua_S,"getNodeToWorldTransform",lua_cocos2dx_Node_getNodeToWorldTransform); + tolua_function(tolua_S,"getPosition3D",lua_cocos2dx_Node_getPosition3D); + tolua_function(tolua_S,"removeChild",lua_cocos2dx_Node_removeChild); + tolua_function(tolua_S,"convertToWorldSpace",lua_cocos2dx_Node_convertToWorldSpace); + tolua_function(tolua_S,"getScene",lua_cocos2dx_Node_getScene); + tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Node_getEventDispatcher); + tolua_function(tolua_S,"setSkewX",lua_cocos2dx_Node_setSkewX); + tolua_function(tolua_S,"setGLProgramState",lua_cocos2dx_Node_setGLProgramState); + tolua_function(tolua_S,"setOnEnterCallback",lua_cocos2dx_Node_setOnEnterCallback); + tolua_function(tolua_S,"setNormalizedPosition",lua_cocos2dx_Node_setNormalizedPosition); + tolua_function(tolua_S,"setonExitTransitionDidStartCallback",lua_cocos2dx_Node_setonExitTransitionDidStartCallback); + tolua_function(tolua_S,"convertTouchToNodeSpace",lua_cocos2dx_Node_convertTouchToNodeSpace); + tolua_function(tolua_S,"removeAllChildren",lua_cocos2dx_Node_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_cocos2dx_Node_getNodeToParentAffineTransform); + tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled); + tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent); + tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName); + tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume); + tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D); + tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform); + tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR); + tolua_function(tolua_S,"convertToNodeSpace",lua_cocos2dx_Node_convertToNodeSpace); + tolua_function(tolua_S,"getPhysicsBody",lua_cocos2dx_Node_getPhysicsBody); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Node_setPosition); + tolua_function(tolua_S,"stopActionByTag",lua_cocos2dx_Node_stopActionByTag); + tolua_function(tolua_S,"reorderChild",lua_cocos2dx_Node_reorderChild); + tolua_function(tolua_S,"ignoreAnchorPointForPosition",lua_cocos2dx_Node_ignoreAnchorPointForPosition); + tolua_function(tolua_S,"setSkewY",lua_cocos2dx_Node_setSkewY); + tolua_function(tolua_S,"setPositionZ",lua_cocos2dx_Node_setPositionZ); + tolua_function(tolua_S,"setRotation3D",lua_cocos2dx_Node_setRotation3D); + tolua_function(tolua_S,"setPositionX",lua_cocos2dx_Node_setPositionX); + tolua_function(tolua_S,"setNodeToParentTransform",lua_cocos2dx_Node_setNodeToParentTransform); + tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_Node_getAnchorPoint); + tolua_function(tolua_S,"getNumberOfRunningActions",lua_cocos2dx_Node_getNumberOfRunningActions); + tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Node_updateTransform); + tolua_function(tolua_S,"isVisible",lua_cocos2dx_Node_isVisible); + tolua_function(tolua_S,"getChildrenCount",lua_cocos2dx_Node_getChildrenCount); + tolua_function(tolua_S,"convertToNodeSpaceAR",lua_cocos2dx_Node_convertToNodeSpaceAR); + tolua_function(tolua_S,"addComponent",lua_cocos2dx_Node_addComponent); + tolua_function(tolua_S,"runAction",lua_cocos2dx_Node_runAction); + tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_Node_isOpacityModifyRGB); + tolua_function(tolua_S,"getRotation",lua_cocos2dx_Node_getRotation); + tolua_function(tolua_S,"getAnchorPointInPoints",lua_cocos2dx_Node_getAnchorPointInPoints); + tolua_function(tolua_S,"visit",lua_cocos2dx_Node_visit); + tolua_function(tolua_S,"removeChildByName",lua_cocos2dx_Node_removeChildByName); + tolua_function(tolua_S,"getGLProgramState",lua_cocos2dx_Node_getGLProgramState); + tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Node_setScheduler); + tolua_function(tolua_S,"stopAllActions",lua_cocos2dx_Node_stopAllActions); + tolua_function(tolua_S,"getSkewX",lua_cocos2dx_Node_getSkewX); + tolua_function(tolua_S,"getSkewY",lua_cocos2dx_Node_getSkewY); + tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor); + tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag); + tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName); + tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity); + tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder); + tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Node_getScheduler); + tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_cocos2dx_Node_getParentToNodeAffineTransform); + tolua_function(tolua_S,"getOrderOfArrival",lua_cocos2dx_Node_getOrderOfArrival); + tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Node_setActionManager); + tolua_function(tolua_S,"setColor",lua_cocos2dx_Node_setColor); + tolua_function(tolua_S,"isRunning",lua_cocos2dx_Node_isRunning); + tolua_function(tolua_S,"getParent",lua_cocos2dx_Node_getParent); + tolua_function(tolua_S,"getPositionZ",lua_cocos2dx_Node_getPositionZ); + tolua_function(tolua_S,"getPositionY",lua_cocos2dx_Node_getPositionY); + tolua_function(tolua_S,"getPositionX",lua_cocos2dx_Node_getPositionX); + tolua_function(tolua_S,"removeChildByTag",lua_cocos2dx_Node_removeChildByTag); + tolua_function(tolua_S,"setPositionY",lua_cocos2dx_Node_setPositionY); + tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_cocos2dx_Node_getNodeToWorldAffineTransform); + tolua_function(tolua_S,"updateDisplayedColor",lua_cocos2dx_Node_updateDisplayedColor); + tolua_function(tolua_S,"setVisible",lua_cocos2dx_Node_setVisible); + tolua_function(tolua_S,"getParentToNodeTransform",lua_cocos2dx_Node_getParentToNodeTransform); + tolua_function(tolua_S,"isScheduled",lua_cocos2dx_Node_isScheduled); + tolua_function(tolua_S,"setGlobalZOrder",lua_cocos2dx_Node_setGlobalZOrder); + tolua_function(tolua_S,"setScale",lua_cocos2dx_Node_setScale); + tolua_function(tolua_S,"getChildByTag",lua_cocos2dx_Node_getChildByTag); + tolua_function(tolua_S,"setOrderOfArrival",lua_cocos2dx_Node_setOrderOfArrival); + tolua_function(tolua_S,"getScaleZ",lua_cocos2dx_Node_getScaleZ); + tolua_function(tolua_S,"getScaleY",lua_cocos2dx_Node_getScaleY); + tolua_function(tolua_S,"getScaleX",lua_cocos2dx_Node_getScaleX); + tolua_function(tolua_S,"setLocalZOrder",lua_cocos2dx_Node_setLocalZOrder); + tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_cocos2dx_Node_getWorldToNodeAffineTransform); + tolua_function(tolua_S,"setCascadeColorEnabled",lua_cocos2dx_Node_setCascadeColorEnabled); + tolua_function(tolua_S,"setOpacity",lua_cocos2dx_Node_setOpacity); + tolua_function(tolua_S,"cleanup",lua_cocos2dx_Node_cleanup); + tolua_function(tolua_S,"getComponent",lua_cocos2dx_Node_getComponent); + tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Node_getContentSize); + tolua_function(tolua_S,"stopAllActionsByTag",lua_cocos2dx_Node_stopAllActionsByTag); + tolua_function(tolua_S,"getColor",lua_cocos2dx_Node_getColor); + tolua_function(tolua_S,"getBoundingBox",lua_cocos2dx_Node_getBoundingBox); + tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Node_setEventDispatcher); + tolua_function(tolua_S,"getGlobalZOrder",lua_cocos2dx_Node_getGlobalZOrder); + tolua_function(tolua_S,"draw",lua_cocos2dx_Node_draw); + tolua_function(tolua_S,"setUserObject",lua_cocos2dx_Node_setUserObject); + tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_Node_removeFromParentAndCleanup); + tolua_function(tolua_S,"setPosition3D",lua_cocos2dx_Node_setPosition3D); + tolua_function(tolua_S,"update",lua_cocos2dx_Node_update); + tolua_function(tolua_S,"sortAllChildren",lua_cocos2dx_Node_sortAllChildren); + tolua_function(tolua_S,"getWorldToNodeTransform",lua_cocos2dx_Node_getWorldToNodeTransform); + tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Node_setGLProgram); + tolua_function(tolua_S,"getScale",lua_cocos2dx_Node_getScale); + tolua_function(tolua_S,"getNormalizedPosition",lua_cocos2dx_Node_getNormalizedPosition); + tolua_function(tolua_S,"getRotationSkewX",lua_cocos2dx_Node_getRotationSkewX); + tolua_function(tolua_S,"getRotationSkewY",lua_cocos2dx_Node_getRotationSkewY); + tolua_function(tolua_S,"setTag",lua_cocos2dx_Node_setTag); + tolua_function(tolua_S,"isCascadeColorEnabled",lua_cocos2dx_Node_isCascadeColorEnabled); + tolua_function(tolua_S,"stopAction",lua_cocos2dx_Node_stopAction); + tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Node_getActionManager); + tolua_function(tolua_S,"create", lua_cocos2dx_Node_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Node).name(); g_luaType[typeName] = "cc.Node"; @@ -9569,28 +9569,28 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9603,12 +9603,12 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getPhysicsWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_getPhysicsWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scene_render(lua_State* tolua_S) @@ -9616,31 +9616,31 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_render'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Renderer* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); if(!ok) { @@ -9652,29 +9652,29 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:render",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_render'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Size arg0; @@ -9691,7 +9691,7 @@ int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithSize'.",&tolua_err); #endif return 0; @@ -9700,17 +9700,17 @@ int lua_cocos2dx_Scene_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -9725,7 +9725,7 @@ int lua_cocos2dx_Scene_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_create'.",&tolua_err); #endif return 0; @@ -9734,17 +9734,17 @@ int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -9759,7 +9759,7 @@ int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithPhysics",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithPhysics'.",&tolua_err); #endif return 0; @@ -9774,13 +9774,13 @@ int lua_register_cocos2dx_Scene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scene"); tolua_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Scene"); - tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld); - tolua_function(tolua_S,"render",lua_cocos2dx_Scene_render); - tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize); - tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); - tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics); + tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld); + tolua_function(tolua_S,"render",lua_cocos2dx_Scene_render); + tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize); + tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); + tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Scene).name(); g_luaType[typeName] = "cc.Scene"; @@ -9793,34 +9793,34 @@ int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setFrameSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setFrameSize"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setFrameSize"); if(!ok) { @@ -9832,12 +9832,12 @@ int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setFrameSize",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setFrameSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) @@ -9845,28 +9845,28 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getViewPortRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9879,12 +9879,12 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getViewPortRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getViewPortRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) @@ -9892,31 +9892,31 @@ int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setContentScaleFactor"); if(!ok) { @@ -9929,12 +9929,12 @@ int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setContentScaleFactor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) @@ -9942,28 +9942,28 @@ int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9976,12 +9976,12 @@ int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getContentScaleFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) @@ -9989,31 +9989,31 @@ int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setIMEKeyboardState'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLView:setIMEKeyboardState"); if(!ok) { @@ -10025,12 +10025,12 @@ int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setIMEKeyboardState",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setIMEKeyboardState'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) @@ -10038,40 +10038,40 @@ int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setScissorInPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setScissorInPoints"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setScissorInPoints"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLView:setScissorInPoints"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.GLView:setScissorInPoints"); if(!ok) { @@ -10083,12 +10083,12 @@ int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setScissorInPoints",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setScissorInPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) @@ -10096,28 +10096,28 @@ int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getViewName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10130,12 +10130,12 @@ int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getViewName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getViewName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) @@ -10143,28 +10143,28 @@ int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isOpenGLReady'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10177,12 +10177,12 @@ int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isOpenGLReady",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isOpenGLReady'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_end(lua_State* tolua_S) @@ -10190,28 +10190,28 @@ int lua_cocos2dx_GLView_end(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_end'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10223,12 +10223,12 @@ int lua_cocos2dx_GLView_end(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:end",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_end'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) @@ -10236,28 +10236,28 @@ int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10270,12 +10270,12 @@ int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScaleY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) @@ -10283,28 +10283,28 @@ int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10317,12 +10317,12 @@ int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScaleX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) @@ -10330,28 +10330,28 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleOrigin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10364,12 +10364,12 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleOrigin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleOrigin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) @@ -10377,28 +10377,28 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getFrameSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10411,12 +10411,12 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getFrameSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getFrameSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) @@ -10424,31 +10424,31 @@ int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setFrameZoomFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setFrameZoomFactor"); if(!ok) { @@ -10460,12 +10460,12 @@ int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setFrameZoomFactor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setFrameZoomFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) @@ -10473,28 +10473,28 @@ int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getFrameZoomFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10507,12 +10507,12 @@ int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getFrameZoomFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getFrameZoomFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) @@ -10520,28 +10520,28 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getDesignResolutionSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10554,12 +10554,12 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getDesignResolutionSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getDesignResolutionSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) @@ -10567,28 +10567,28 @@ int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_windowShouldClose'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10601,12 +10601,12 @@ int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:windowShouldClose",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_windowShouldClose'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) @@ -10614,28 +10614,28 @@ int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_swapBuffers'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10647,12 +10647,12 @@ int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:swapBuffers",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_swapBuffers'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) @@ -10660,37 +10660,37 @@ int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setDesignResolutionSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; double arg1; ResolutionPolicy arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setDesignResolutionSize"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setDesignResolutionSize"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.GLView:setDesignResolutionSize"); if(!ok) { @@ -10702,12 +10702,12 @@ int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setDesignResolutionSize",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setDesignResolutionSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) @@ -10715,28 +10715,28 @@ int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getResolutionPolicy'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10749,12 +10749,12 @@ int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getResolutionPolicy",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getResolutionPolicy'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) @@ -10762,28 +10762,28 @@ int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isRetinaDisplay'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10796,12 +10796,12 @@ int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isRetinaDisplay",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isRetinaDisplay'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) @@ -10809,40 +10809,40 @@ int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setViewPortInPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setViewPortInPoints"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setViewPortInPoints"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLView:setViewPortInPoints"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.GLView:setViewPortInPoints"); if(!ok) { @@ -10854,12 +10854,12 @@ int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setViewPortInPoints",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setViewPortInPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) @@ -10867,28 +10867,28 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScissorRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10901,12 +10901,12 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScissorRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScissorRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) @@ -10914,28 +10914,28 @@ int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getRetinaFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10948,12 +10948,12 @@ int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getRetinaFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getRetinaFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) @@ -10961,31 +10961,31 @@ int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setViewName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLView:setViewName"); if(!ok) { @@ -10997,12 +10997,12 @@ int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setViewName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setViewName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) @@ -11010,28 +11010,28 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11044,12 +11044,12 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) @@ -11057,28 +11057,28 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11091,12 +11091,12 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) @@ -11104,28 +11104,28 @@ int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isScissorEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11138,12 +11138,12 @@ int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isScissorEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isScissorEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) @@ -11151,28 +11151,28 @@ int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_pollEvents'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11184,34 +11184,34 @@ int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:pollEvents",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_pollEvents'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setGLContextAttrs(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { GLContextAttrs arg0; - #pragma warning NO CONVERSION TO NATIVE FOR GLContextAttrs - ok = false; +#pragma warning NO CONVERSION TO NATIVE FOR GLContextAttrs + ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setGLContextAttrs'", nullptr); @@ -11223,7 +11223,7 @@ int lua_cocos2dx_GLView_setGLContextAttrs(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLView:setGLContextAttrs",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setGLContextAttrs'.",&tolua_err); #endif return 0; @@ -11232,17 +11232,17 @@ int lua_cocos2dx_GLView_getGLContextAttrs(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -11251,13 +11251,13 @@ int lua_cocos2dx_GLView_getGLContextAttrs(lua_State* tolua_S) return 0; } GLContextAttrs ret = cocos2d::GLView::getGLContextAttrs(); - #pragma warning NO CONVERSION FROM NATIVE FOR GLContextAttrs; +#pragma warning NO CONVERSION FROM NATIVE FOR GLContextAttrs; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLView:getGLContextAttrs",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getGLContextAttrs'.",&tolua_err); #endif return 0; @@ -11272,39 +11272,39 @@ int lua_register_cocos2dx_GLView(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLView"); tolua_cclass(tolua_S,"GLView","cc.GLView","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLView"); - tolua_function(tolua_S,"setFrameSize",lua_cocos2dx_GLView_setFrameSize); - tolua_function(tolua_S,"getViewPortRect",lua_cocos2dx_GLView_getViewPortRect); - tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_GLView_setContentScaleFactor); - tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_GLView_getContentScaleFactor); - tolua_function(tolua_S,"setIMEKeyboardState",lua_cocos2dx_GLView_setIMEKeyboardState); - tolua_function(tolua_S,"setScissorInPoints",lua_cocos2dx_GLView_setScissorInPoints); - tolua_function(tolua_S,"getViewName",lua_cocos2dx_GLView_getViewName); - tolua_function(tolua_S,"isOpenGLReady",lua_cocos2dx_GLView_isOpenGLReady); - tolua_function(tolua_S,"end",lua_cocos2dx_GLView_end); - tolua_function(tolua_S,"getScaleY",lua_cocos2dx_GLView_getScaleY); - tolua_function(tolua_S,"getScaleX",lua_cocos2dx_GLView_getScaleX); - tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_GLView_getVisibleOrigin); - tolua_function(tolua_S,"getFrameSize",lua_cocos2dx_GLView_getFrameSize); - tolua_function(tolua_S,"setFrameZoomFactor",lua_cocos2dx_GLView_setFrameZoomFactor); - tolua_function(tolua_S,"getFrameZoomFactor",lua_cocos2dx_GLView_getFrameZoomFactor); - tolua_function(tolua_S,"getDesignResolutionSize",lua_cocos2dx_GLView_getDesignResolutionSize); - tolua_function(tolua_S,"windowShouldClose",lua_cocos2dx_GLView_windowShouldClose); - tolua_function(tolua_S,"swapBuffers",lua_cocos2dx_GLView_swapBuffers); - tolua_function(tolua_S,"setDesignResolutionSize",lua_cocos2dx_GLView_setDesignResolutionSize); - tolua_function(tolua_S,"getResolutionPolicy",lua_cocos2dx_GLView_getResolutionPolicy); - tolua_function(tolua_S,"isRetinaDisplay",lua_cocos2dx_GLView_isRetinaDisplay); - tolua_function(tolua_S,"setViewPortInPoints",lua_cocos2dx_GLView_setViewPortInPoints); - tolua_function(tolua_S,"getScissorRect",lua_cocos2dx_GLView_getScissorRect); - tolua_function(tolua_S,"getRetinaFactor",lua_cocos2dx_GLView_getRetinaFactor); - tolua_function(tolua_S,"setViewName",lua_cocos2dx_GLView_setViewName); - tolua_function(tolua_S,"getVisibleRect",lua_cocos2dx_GLView_getVisibleRect); - tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_GLView_getVisibleSize); - tolua_function(tolua_S,"isScissorEnabled",lua_cocos2dx_GLView_isScissorEnabled); - tolua_function(tolua_S,"pollEvents",lua_cocos2dx_GLView_pollEvents); - tolua_function(tolua_S,"setGLContextAttrs", lua_cocos2dx_GLView_setGLContextAttrs); - tolua_function(tolua_S,"getGLContextAttrs", lua_cocos2dx_GLView_getGLContextAttrs); + tolua_function(tolua_S,"setFrameSize",lua_cocos2dx_GLView_setFrameSize); + tolua_function(tolua_S,"getViewPortRect",lua_cocos2dx_GLView_getViewPortRect); + tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_GLView_setContentScaleFactor); + tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_GLView_getContentScaleFactor); + tolua_function(tolua_S,"setIMEKeyboardState",lua_cocos2dx_GLView_setIMEKeyboardState); + tolua_function(tolua_S,"setScissorInPoints",lua_cocos2dx_GLView_setScissorInPoints); + tolua_function(tolua_S,"getViewName",lua_cocos2dx_GLView_getViewName); + tolua_function(tolua_S,"isOpenGLReady",lua_cocos2dx_GLView_isOpenGLReady); + tolua_function(tolua_S,"end",lua_cocos2dx_GLView_end); + tolua_function(tolua_S,"getScaleY",lua_cocos2dx_GLView_getScaleY); + tolua_function(tolua_S,"getScaleX",lua_cocos2dx_GLView_getScaleX); + tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_GLView_getVisibleOrigin); + tolua_function(tolua_S,"getFrameSize",lua_cocos2dx_GLView_getFrameSize); + tolua_function(tolua_S,"setFrameZoomFactor",lua_cocos2dx_GLView_setFrameZoomFactor); + tolua_function(tolua_S,"getFrameZoomFactor",lua_cocos2dx_GLView_getFrameZoomFactor); + tolua_function(tolua_S,"getDesignResolutionSize",lua_cocos2dx_GLView_getDesignResolutionSize); + tolua_function(tolua_S,"windowShouldClose",lua_cocos2dx_GLView_windowShouldClose); + tolua_function(tolua_S,"swapBuffers",lua_cocos2dx_GLView_swapBuffers); + tolua_function(tolua_S,"setDesignResolutionSize",lua_cocos2dx_GLView_setDesignResolutionSize); + tolua_function(tolua_S,"getResolutionPolicy",lua_cocos2dx_GLView_getResolutionPolicy); + tolua_function(tolua_S,"isRetinaDisplay",lua_cocos2dx_GLView_isRetinaDisplay); + tolua_function(tolua_S,"setViewPortInPoints",lua_cocos2dx_GLView_setViewPortInPoints); + tolua_function(tolua_S,"getScissorRect",lua_cocos2dx_GLView_getScissorRect); + tolua_function(tolua_S,"getRetinaFactor",lua_cocos2dx_GLView_getRetinaFactor); + tolua_function(tolua_S,"setViewName",lua_cocos2dx_GLView_setViewName); + tolua_function(tolua_S,"getVisibleRect",lua_cocos2dx_GLView_getVisibleRect); + tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_GLView_getVisibleSize); + tolua_function(tolua_S,"isScissorEnabled",lua_cocos2dx_GLView_isScissorEnabled); + tolua_function(tolua_S,"pollEvents",lua_cocos2dx_GLView_pollEvents); + tolua_function(tolua_S,"setGLContextAttrs", lua_cocos2dx_GLView_setGLContextAttrs); + tolua_function(tolua_S,"getGLContextAttrs", lua_cocos2dx_GLView_getGLContextAttrs); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLView).name(); g_luaType[typeName] = "cc.GLView"; @@ -11317,28 +11317,28 @@ int lua_cocos2dx_Director_pause(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pause'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11350,12 +11350,12 @@ int lua_cocos2dx_Director_pause(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pause",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pause'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) @@ -11363,31 +11363,31 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventDispatcher* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0); if(!ok) { @@ -11399,12 +11399,12 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setEventDispatcher",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) @@ -11412,31 +11412,31 @@ int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Director:setContentScaleFactor"); if(!ok) { @@ -11448,12 +11448,12 @@ int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setContentScaleFactor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) @@ -11461,28 +11461,28 @@ int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11495,12 +11495,12 @@ int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getContentScaleFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) @@ -11508,28 +11508,28 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getWinSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11542,12 +11542,12 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getWinSizeInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getWinSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) @@ -11555,28 +11555,28 @@ int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getDeltaTime'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11589,12 +11589,12 @@ int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getDeltaTime",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getDeltaTime'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) @@ -11602,28 +11602,28 @@ int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setGLDefaultValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11635,12 +11635,12 @@ int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setGLDefaultValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setGLDefaultValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) @@ -11648,31 +11648,31 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setActionManager'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionManager* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0); if(!ok) { @@ -11684,12 +11684,12 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setActionManager",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) @@ -11697,31 +11697,31 @@ int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setAlphaBlending'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setAlphaBlending"); if(!ok) { @@ -11733,12 +11733,12 @@ int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setAlphaBlending",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setAlphaBlending'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) @@ -11746,28 +11746,28 @@ int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popToRootScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11779,12 +11779,12 @@ int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popToRootScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popToRootScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) @@ -11792,34 +11792,34 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_loadMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::MATRIX_STACK_TYPE arg0; cocos2d::Mat4 arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadMatrix"); - + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Director:loadMatrix"); if(!ok) { @@ -11831,12 +11831,12 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:loadMatrix",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_loadMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) @@ -11844,28 +11844,28 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getNotificationNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11878,12 +11878,12 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getNotificationNode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getNotificationNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) @@ -11891,28 +11891,28 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getWinSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11925,12 +11925,12 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getWinSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getWinSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) @@ -11938,28 +11938,28 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getTextureCache'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11972,12 +11972,12 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTextureCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getTextureCache'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) @@ -11985,28 +11985,28 @@ int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isSendCleanupToScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12019,12 +12019,12 @@ int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isSendCleanupToScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isSendCleanupToScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) @@ -12032,28 +12032,28 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getVisibleOrigin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12066,12 +12066,12 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getVisibleOrigin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getVisibleOrigin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) @@ -12079,28 +12079,28 @@ int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_mainLoop'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12112,12 +12112,12 @@ int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:mainLoop",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_mainLoop'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) @@ -12125,31 +12125,31 @@ int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDepthTest'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setDepthTest"); if(!ok) { @@ -12161,12 +12161,12 @@ int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDepthTest",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDepthTest'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) @@ -12174,28 +12174,28 @@ int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getFrameRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12208,12 +12208,12 @@ int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getFrameRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getFrameRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) @@ -12221,28 +12221,28 @@ int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getSecondsPerFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12255,12 +12255,12 @@ int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getSecondsPerFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getSecondsPerFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) @@ -12268,28 +12268,28 @@ int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_resetMatrixStack'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12301,12 +12301,12 @@ int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:resetMatrixStack",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_resetMatrixStack'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) @@ -12314,31 +12314,31 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_convertToUI'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToUI"); if(!ok) { @@ -12351,12 +12351,12 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:convertToUI",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_convertToUI'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) @@ -12364,31 +12364,31 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pushMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:pushMatrix"); if(!ok) { @@ -12400,12 +12400,12 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pushMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pushMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) @@ -12413,28 +12413,28 @@ int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDefaultValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12446,12 +12446,12 @@ int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDefaultValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDefaultValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_init(lua_State* tolua_S) @@ -12459,28 +12459,28 @@ int lua_cocos2dx_Director_init(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_init'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12493,12 +12493,12 @@ int lua_cocos2dx_Director_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) @@ -12506,31 +12506,31 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setScheduler'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scheduler* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0); if(!ok) { @@ -12542,12 +12542,12 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setScheduler",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) @@ -12555,28 +12555,28 @@ int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_startAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12588,12 +12588,12 @@ int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:startAnimation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_startAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) @@ -12601,28 +12601,28 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getOpenGLView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12635,12 +12635,12 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getOpenGLView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getOpenGLView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) @@ -12648,28 +12648,28 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getRunningScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12682,12 +12682,12 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getRunningScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getRunningScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) @@ -12695,28 +12695,28 @@ int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setViewport'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12728,12 +12728,12 @@ int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setViewport",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setViewport'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) @@ -12741,28 +12741,28 @@ int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_stopAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12774,12 +12774,12 @@ int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:stopAnimation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_stopAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) @@ -12787,31 +12787,31 @@ int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popToSceneStackLevel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popToSceneStackLevel"); if(!ok) { @@ -12823,12 +12823,12 @@ int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popToSceneStackLevel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popToSceneStackLevel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_resume(lua_State* tolua_S) @@ -12836,28 +12836,28 @@ int lua_cocos2dx_Director_resume(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_resume'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12869,12 +12869,12 @@ int lua_cocos2dx_Director_resume(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:resume",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_resume'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) @@ -12882,28 +12882,28 @@ int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12916,12 +12916,12 @@ int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isNextDeltaTimeZero",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_end(lua_State* tolua_S) @@ -12929,28 +12929,28 @@ int lua_cocos2dx_Director_end(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_end'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12962,12 +12962,12 @@ int lua_cocos2dx_Director_end(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:end",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_end'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) @@ -12975,31 +12975,31 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setOpenGLView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLView* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLView",&arg0); if(!ok) { @@ -13011,12 +13011,12 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setOpenGLView",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setOpenGLView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) @@ -13024,31 +13024,31 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_convertToGL'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToGL"); if(!ok) { @@ -13061,12 +13061,12 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:convertToGL",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_convertToGL'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) @@ -13074,28 +13074,28 @@ int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_purgeCachedData'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13107,12 +13107,12 @@ int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:purgeCachedData",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_purgeCachedData'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) @@ -13120,28 +13120,28 @@ int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getTotalFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13154,12 +13154,12 @@ int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTotalFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getTotalFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) @@ -13167,31 +13167,31 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_runWithScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scene* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); if(!ok) { @@ -13203,12 +13203,12 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:runWithScene",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_runWithScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) @@ -13216,31 +13216,31 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setNotificationNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -13252,12 +13252,12 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setNotificationNode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setNotificationNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) @@ -13265,28 +13265,28 @@ int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_drawScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13298,12 +13298,12 @@ int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:drawScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_drawScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) @@ -13311,31 +13311,31 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:getMatrix"); if(!ok) { @@ -13348,12 +13348,12 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popScene(lua_State* tolua_S) @@ -13361,28 +13361,28 @@ int lua_cocos2dx_Director_popScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13394,12 +13394,12 @@ int lua_cocos2dx_Director_popScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) @@ -13407,31 +13407,31 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_loadIdentityMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadIdentityMatrix"); if(!ok) { @@ -13443,12 +13443,12 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:loadIdentityMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_loadIdentityMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) @@ -13456,28 +13456,28 @@ int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isDisplayStats'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13490,12 +13490,12 @@ int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isDisplayStats",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isDisplayStats'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) @@ -13503,31 +13503,31 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setProjection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Director::Projection arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:setProjection"); if(!ok) { @@ -13539,12 +13539,12 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setProjection",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setProjection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) @@ -13552,28 +13552,28 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getConsole'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13586,12 +13586,12 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getConsole",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getConsole'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) @@ -13599,34 +13599,34 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_multiplyMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::MATRIX_STACK_TYPE arg0; cocos2d::Mat4 arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:multiplyMatrix"); - + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Director:multiplyMatrix"); if(!ok) { @@ -13638,12 +13638,12 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:multiplyMatrix",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_multiplyMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) @@ -13651,28 +13651,28 @@ int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getZEye'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13685,12 +13685,12 @@ int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getZEye",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getZEye'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) @@ -13698,31 +13698,31 @@ int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setNextDeltaTimeZero"); if(!ok) { @@ -13734,12 +13734,12 @@ int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setNextDeltaTimeZero",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) @@ -13747,31 +13747,31 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popMatrix"); if(!ok) { @@ -13783,12 +13783,12 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) @@ -13796,28 +13796,28 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getVisibleSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13830,12 +13830,12 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getVisibleSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getVisibleSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) @@ -13843,28 +13843,28 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getScheduler'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13877,12 +13877,12 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getScheduler",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) @@ -13890,31 +13890,31 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pushScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scene* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); if(!ok) { @@ -13926,12 +13926,12 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pushScene",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pushScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) @@ -13939,28 +13939,28 @@ int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getAnimationInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13973,12 +13973,12 @@ int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getAnimationInterval",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getAnimationInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) @@ -13986,28 +13986,28 @@ int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isPaused'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14020,12 +14020,12 @@ int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isPaused",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isPaused'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) @@ -14033,31 +14033,31 @@ int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDisplayStats'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setDisplayStats"); if(!ok) { @@ -14069,12 +14069,12 @@ int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDisplayStats",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDisplayStats'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) @@ -14082,28 +14082,28 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14116,12 +14116,12 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getEventDispatcher",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) @@ -14129,31 +14129,31 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_replaceScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scene* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); if(!ok) { @@ -14165,12 +14165,12 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:replaceScene",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_replaceScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) @@ -14178,31 +14178,31 @@ int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setAnimationInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Director:setAnimationInterval"); if(!ok) { @@ -14214,12 +14214,12 @@ int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setAnimationInterval",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setAnimationInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) @@ -14227,28 +14227,28 @@ int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getActionManager'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14261,29 +14261,29 @@ int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getActionManager",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -14298,7 +14298,7 @@ int lua_cocos2dx_Director_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Director:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getInstance'.",&tolua_err); #endif return 0; @@ -14313,71 +14313,71 @@ int lua_register_cocos2dx_Director(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Director"); tolua_cclass(tolua_S,"Director","cc.Director","",nullptr); - + tolua_beginmodule(tolua_S,"Director"); - tolua_function(tolua_S,"pause",lua_cocos2dx_Director_pause); - tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Director_setEventDispatcher); - tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_Director_setContentScaleFactor); - tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_Director_getContentScaleFactor); - tolua_function(tolua_S,"getWinSizeInPixels",lua_cocos2dx_Director_getWinSizeInPixels); - tolua_function(tolua_S,"getDeltaTime",lua_cocos2dx_Director_getDeltaTime); - tolua_function(tolua_S,"setGLDefaultValues",lua_cocos2dx_Director_setGLDefaultValues); - tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Director_setActionManager); - tolua_function(tolua_S,"setAlphaBlending",lua_cocos2dx_Director_setAlphaBlending); - tolua_function(tolua_S,"popToRootScene",lua_cocos2dx_Director_popToRootScene); - tolua_function(tolua_S,"loadMatrix",lua_cocos2dx_Director_loadMatrix); - tolua_function(tolua_S,"getNotificationNode",lua_cocos2dx_Director_getNotificationNode); - tolua_function(tolua_S,"getWinSize",lua_cocos2dx_Director_getWinSize); - tolua_function(tolua_S,"getTextureCache",lua_cocos2dx_Director_getTextureCache); - tolua_function(tolua_S,"isSendCleanupToScene",lua_cocos2dx_Director_isSendCleanupToScene); - tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_Director_getVisibleOrigin); - tolua_function(tolua_S,"mainLoop",lua_cocos2dx_Director_mainLoop); - tolua_function(tolua_S,"setDepthTest",lua_cocos2dx_Director_setDepthTest); - tolua_function(tolua_S,"getFrameRate",lua_cocos2dx_Director_getFrameRate); - tolua_function(tolua_S,"getSecondsPerFrame",lua_cocos2dx_Director_getSecondsPerFrame); - tolua_function(tolua_S,"resetMatrixStack",lua_cocos2dx_Director_resetMatrixStack); - tolua_function(tolua_S,"convertToUI",lua_cocos2dx_Director_convertToUI); - tolua_function(tolua_S,"pushMatrix",lua_cocos2dx_Director_pushMatrix); - tolua_function(tolua_S,"setDefaultValues",lua_cocos2dx_Director_setDefaultValues); - tolua_function(tolua_S,"init",lua_cocos2dx_Director_init); - tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Director_setScheduler); - tolua_function(tolua_S,"startAnimation",lua_cocos2dx_Director_startAnimation); - tolua_function(tolua_S,"getOpenGLView",lua_cocos2dx_Director_getOpenGLView); - tolua_function(tolua_S,"getRunningScene",lua_cocos2dx_Director_getRunningScene); - tolua_function(tolua_S,"setViewport",lua_cocos2dx_Director_setViewport); - tolua_function(tolua_S,"stopAnimation",lua_cocos2dx_Director_stopAnimation); - tolua_function(tolua_S,"popToSceneStackLevel",lua_cocos2dx_Director_popToSceneStackLevel); - tolua_function(tolua_S,"resume",lua_cocos2dx_Director_resume); - tolua_function(tolua_S,"isNextDeltaTimeZero",lua_cocos2dx_Director_isNextDeltaTimeZero); - tolua_function(tolua_S,"endToLua",lua_cocos2dx_Director_end); - tolua_function(tolua_S,"setOpenGLView",lua_cocos2dx_Director_setOpenGLView); - tolua_function(tolua_S,"convertToGL",lua_cocos2dx_Director_convertToGL); - tolua_function(tolua_S,"purgeCachedData",lua_cocos2dx_Director_purgeCachedData); - tolua_function(tolua_S,"getTotalFrames",lua_cocos2dx_Director_getTotalFrames); - tolua_function(tolua_S,"runWithScene",lua_cocos2dx_Director_runWithScene); - tolua_function(tolua_S,"setNotificationNode",lua_cocos2dx_Director_setNotificationNode); - tolua_function(tolua_S,"drawScene",lua_cocos2dx_Director_drawScene); - tolua_function(tolua_S,"getMatrix",lua_cocos2dx_Director_getMatrix); - tolua_function(tolua_S,"popScene",lua_cocos2dx_Director_popScene); - tolua_function(tolua_S,"loadIdentityMatrix",lua_cocos2dx_Director_loadIdentityMatrix); - tolua_function(tolua_S,"isDisplayStats",lua_cocos2dx_Director_isDisplayStats); - tolua_function(tolua_S,"setProjection",lua_cocos2dx_Director_setProjection); - tolua_function(tolua_S,"getConsole",lua_cocos2dx_Director_getConsole); - tolua_function(tolua_S,"multiplyMatrix",lua_cocos2dx_Director_multiplyMatrix); - tolua_function(tolua_S,"getZEye",lua_cocos2dx_Director_getZEye); - tolua_function(tolua_S,"setNextDeltaTimeZero",lua_cocos2dx_Director_setNextDeltaTimeZero); - tolua_function(tolua_S,"popMatrix",lua_cocos2dx_Director_popMatrix); - tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_Director_getVisibleSize); - tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Director_getScheduler); - tolua_function(tolua_S,"pushScene",lua_cocos2dx_Director_pushScene); - tolua_function(tolua_S,"getAnimationInterval",lua_cocos2dx_Director_getAnimationInterval); - tolua_function(tolua_S,"isPaused",lua_cocos2dx_Director_isPaused); - tolua_function(tolua_S,"setDisplayStats",lua_cocos2dx_Director_setDisplayStats); - tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Director_getEventDispatcher); - tolua_function(tolua_S,"replaceScene",lua_cocos2dx_Director_replaceScene); - tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Director_setAnimationInterval); - tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Director_getActionManager); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_Director_getInstance); + tolua_function(tolua_S,"pause",lua_cocos2dx_Director_pause); + tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Director_setEventDispatcher); + tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_Director_setContentScaleFactor); + tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_Director_getContentScaleFactor); + tolua_function(tolua_S,"getWinSizeInPixels",lua_cocos2dx_Director_getWinSizeInPixels); + tolua_function(tolua_S,"getDeltaTime",lua_cocos2dx_Director_getDeltaTime); + tolua_function(tolua_S,"setGLDefaultValues",lua_cocos2dx_Director_setGLDefaultValues); + tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Director_setActionManager); + tolua_function(tolua_S,"setAlphaBlending",lua_cocos2dx_Director_setAlphaBlending); + tolua_function(tolua_S,"popToRootScene",lua_cocos2dx_Director_popToRootScene); + tolua_function(tolua_S,"loadMatrix",lua_cocos2dx_Director_loadMatrix); + tolua_function(tolua_S,"getNotificationNode",lua_cocos2dx_Director_getNotificationNode); + tolua_function(tolua_S,"getWinSize",lua_cocos2dx_Director_getWinSize); + tolua_function(tolua_S,"getTextureCache",lua_cocos2dx_Director_getTextureCache); + tolua_function(tolua_S,"isSendCleanupToScene",lua_cocos2dx_Director_isSendCleanupToScene); + tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_Director_getVisibleOrigin); + tolua_function(tolua_S,"mainLoop",lua_cocos2dx_Director_mainLoop); + tolua_function(tolua_S,"setDepthTest",lua_cocos2dx_Director_setDepthTest); + tolua_function(tolua_S,"getFrameRate",lua_cocos2dx_Director_getFrameRate); + tolua_function(tolua_S,"getSecondsPerFrame",lua_cocos2dx_Director_getSecondsPerFrame); + tolua_function(tolua_S,"resetMatrixStack",lua_cocos2dx_Director_resetMatrixStack); + tolua_function(tolua_S,"convertToUI",lua_cocos2dx_Director_convertToUI); + tolua_function(tolua_S,"pushMatrix",lua_cocos2dx_Director_pushMatrix); + tolua_function(tolua_S,"setDefaultValues",lua_cocos2dx_Director_setDefaultValues); + tolua_function(tolua_S,"init",lua_cocos2dx_Director_init); + tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Director_setScheduler); + tolua_function(tolua_S,"startAnimation",lua_cocos2dx_Director_startAnimation); + tolua_function(tolua_S,"getOpenGLView",lua_cocos2dx_Director_getOpenGLView); + tolua_function(tolua_S,"getRunningScene",lua_cocos2dx_Director_getRunningScene); + tolua_function(tolua_S,"setViewport",lua_cocos2dx_Director_setViewport); + tolua_function(tolua_S,"stopAnimation",lua_cocos2dx_Director_stopAnimation); + tolua_function(tolua_S,"popToSceneStackLevel",lua_cocos2dx_Director_popToSceneStackLevel); + tolua_function(tolua_S,"resume",lua_cocos2dx_Director_resume); + tolua_function(tolua_S,"isNextDeltaTimeZero",lua_cocos2dx_Director_isNextDeltaTimeZero); + tolua_function(tolua_S,"endToLua",lua_cocos2dx_Director_end); + tolua_function(tolua_S,"setOpenGLView",lua_cocos2dx_Director_setOpenGLView); + tolua_function(tolua_S,"convertToGL",lua_cocos2dx_Director_convertToGL); + tolua_function(tolua_S,"purgeCachedData",lua_cocos2dx_Director_purgeCachedData); + tolua_function(tolua_S,"getTotalFrames",lua_cocos2dx_Director_getTotalFrames); + tolua_function(tolua_S,"runWithScene",lua_cocos2dx_Director_runWithScene); + tolua_function(tolua_S,"setNotificationNode",lua_cocos2dx_Director_setNotificationNode); + tolua_function(tolua_S,"drawScene",lua_cocos2dx_Director_drawScene); + tolua_function(tolua_S,"getMatrix",lua_cocos2dx_Director_getMatrix); + tolua_function(tolua_S,"popScene",lua_cocos2dx_Director_popScene); + tolua_function(tolua_S,"loadIdentityMatrix",lua_cocos2dx_Director_loadIdentityMatrix); + tolua_function(tolua_S,"isDisplayStats",lua_cocos2dx_Director_isDisplayStats); + tolua_function(tolua_S,"setProjection",lua_cocos2dx_Director_setProjection); + tolua_function(tolua_S,"getConsole",lua_cocos2dx_Director_getConsole); + tolua_function(tolua_S,"multiplyMatrix",lua_cocos2dx_Director_multiplyMatrix); + tolua_function(tolua_S,"getZEye",lua_cocos2dx_Director_getZEye); + tolua_function(tolua_S,"setNextDeltaTimeZero",lua_cocos2dx_Director_setNextDeltaTimeZero); + tolua_function(tolua_S,"popMatrix",lua_cocos2dx_Director_popMatrix); + tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_Director_getVisibleSize); + tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Director_getScheduler); + tolua_function(tolua_S,"pushScene",lua_cocos2dx_Director_pushScene); + tolua_function(tolua_S,"getAnimationInterval",lua_cocos2dx_Director_getAnimationInterval); + tolua_function(tolua_S,"isPaused",lua_cocos2dx_Director_isPaused); + tolua_function(tolua_S,"setDisplayStats",lua_cocos2dx_Director_setDisplayStats); + tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Director_getEventDispatcher); + tolua_function(tolua_S,"replaceScene",lua_cocos2dx_Director_replaceScene); + tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Director_setAnimationInterval); + tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Director_getActionManager); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_Director_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Director).name(); g_luaType[typeName] = "cc.Director"; @@ -14390,28 +14390,28 @@ int lua_cocos2dx_Timer_getInterval(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_getInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14424,12 +14424,12 @@ int lua_cocos2dx_Timer_getInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:getInterval",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_getInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) @@ -14437,37 +14437,37 @@ int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_setupTimerWithInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; unsigned int arg1; double arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:setupTimerWithInterval"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Timer:setupTimerWithInterval"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Timer:setupTimerWithInterval"); if(!ok) { @@ -14479,12 +14479,12 @@ int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:setupTimerWithInterval",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_setupTimerWithInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) @@ -14492,31 +14492,31 @@ int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_setInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:setInterval"); if(!ok) { @@ -14528,12 +14528,12 @@ int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:setInterval",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_setInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_update(lua_State* tolua_S) @@ -14541,31 +14541,31 @@ int lua_cocos2dx_Timer_update(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:update"); if(!ok) { @@ -14577,12 +14577,12 @@ int lua_cocos2dx_Timer_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) @@ -14590,28 +14590,28 @@ int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_trigger'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14623,12 +14623,12 @@ int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:trigger",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_trigger'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) @@ -14636,28 +14636,28 @@ int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_cancel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14669,12 +14669,12 @@ int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:cancel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_cancel'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Timer_finalize(lua_State* tolua_S) @@ -14687,14 +14687,14 @@ int lua_register_cocos2dx_Timer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Timer"); tolua_cclass(tolua_S,"Timer","cc.Timer","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Timer"); - tolua_function(tolua_S,"getInterval",lua_cocos2dx_Timer_getInterval); - tolua_function(tolua_S,"setupTimerWithInterval",lua_cocos2dx_Timer_setupTimerWithInterval); - tolua_function(tolua_S,"setInterval",lua_cocos2dx_Timer_setInterval); - tolua_function(tolua_S,"update",lua_cocos2dx_Timer_update); - tolua_function(tolua_S,"trigger",lua_cocos2dx_Timer_trigger); - tolua_function(tolua_S,"cancel",lua_cocos2dx_Timer_cancel); + tolua_function(tolua_S,"getInterval",lua_cocos2dx_Timer_getInterval); + tolua_function(tolua_S,"setupTimerWithInterval",lua_cocos2dx_Timer_setupTimerWithInterval); + tolua_function(tolua_S,"setInterval",lua_cocos2dx_Timer_setInterval); + tolua_function(tolua_S,"update",lua_cocos2dx_Timer_update); + tolua_function(tolua_S,"trigger",lua_cocos2dx_Timer_trigger); + tolua_function(tolua_S,"cancel",lua_cocos2dx_Timer_cancel); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Timer).name(); g_luaType[typeName] = "cc.Timer"; @@ -14707,31 +14707,31 @@ int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scheduler_setTimeScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Scheduler:setTimeScale"); if(!ok) { @@ -14743,12 +14743,12 @@ int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:setTimeScale",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_setTimeScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) @@ -14756,28 +14756,28 @@ int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scheduler_getTimeScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14790,12 +14790,12 @@ int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:getTimeScale",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_getTimeScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) @@ -14803,15 +14803,15 @@ int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14827,11 +14827,11 @@ int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:Scheduler",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_constructor'.",&tolua_err); #endif - + return 0; } @@ -14845,11 +14845,11 @@ int lua_register_cocos2dx_Scheduler(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scheduler"); tolua_cclass(tolua_S,"Scheduler","cc.Scheduler","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Scheduler"); - tolua_function(tolua_S,"new",lua_cocos2dx_Scheduler_constructor); - tolua_function(tolua_S,"setTimeScale",lua_cocos2dx_Scheduler_setTimeScale); - tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_Scheduler_getTimeScale); + tolua_function(tolua_S,"new",lua_cocos2dx_Scheduler_constructor); + tolua_function(tolua_S,"setTimeScale",lua_cocos2dx_Scheduler_setTimeScale); + tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_Scheduler_getTimeScale); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Scheduler).name(); g_luaType[typeName] = "cc.Scheduler"; @@ -14862,31 +14862,31 @@ int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_fullPathForFilename'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:fullPathForFilename"); if(!ok) { @@ -14899,12 +14899,12 @@ int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:fullPathForFilename",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_fullPathForFilename'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) @@ -14912,31 +14912,31 @@ int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getStringFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getStringFromFile"); if(!ok) { @@ -14949,12 +14949,12 @@ int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getStringFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getStringFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) @@ -14962,31 +14962,31 @@ int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:setFilenameLookupDictionary"); if(!ok) { @@ -14998,12 +14998,12 @@ int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setFilenameLookupDictionary",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) @@ -15011,31 +15011,31 @@ int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_removeFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:removeFile"); if(!ok) { @@ -15048,12 +15048,12 @@ int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:removeFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_removeFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) @@ -15061,31 +15061,31 @@ int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isAbsolutePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isAbsolutePath"); if(!ok) { @@ -15098,12 +15098,12 @@ int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isAbsolutePath",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isAbsolutePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) @@ -15111,37 +15111,37 @@ int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_renameFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { std::string arg0; std::string arg1; std::string arg2; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:renameFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:renameFile"); - + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.FileUtils:renameFile"); if(!ok) { @@ -15154,12 +15154,12 @@ int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:renameFile",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_renameFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua_S) @@ -15167,31 +15167,31 @@ int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:loadFilenameLookupDictionaryFromFile"); if(!ok) { @@ -15203,12 +15203,12 @@ int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:loadFilenameLookupDictionaryFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) @@ -15216,28 +15216,28 @@ int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isPopupNotify'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -15250,12 +15250,12 @@ int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isPopupNotify",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isPopupNotify'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) @@ -15263,31 +15263,31 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getValueVectorFromFile"); if(!ok) { @@ -15300,12 +15300,12 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueVectorFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) @@ -15313,28 +15313,28 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSearchPaths'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -15347,12 +15347,12 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSearchPaths",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSearchPaths'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) @@ -15360,34 +15360,34 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_writeToFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeToFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:writeToFile"); if(!ok) { @@ -15400,12 +15400,12 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:writeToFile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_writeToFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) @@ -15413,31 +15413,31 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getValueMapFromFile"); if(!ok) { @@ -15450,12 +15450,12 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueMapFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) @@ -15463,34 +15463,34 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueMapFromData'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; int arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.FileUtils:getValueMapFromData"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.FileUtils:getValueMapFromData"); if(!ok) { @@ -15503,12 +15503,12 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueMapFromData",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueMapFromData'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) @@ -15516,31 +15516,31 @@ int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_removeDirectory'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:removeDirectory"); if(!ok) { @@ -15553,12 +15553,12 @@ int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:removeDirectory",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_removeDirectory'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) @@ -15566,31 +15566,31 @@ int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setSearchPaths'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::vector arg0; - + ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "cc.FileUtils:setSearchPaths"); if(!ok) { @@ -15602,12 +15602,12 @@ int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setSearchPaths",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setSearchPaths'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) @@ -15615,31 +15615,31 @@ int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getFileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getFileSize"); if(!ok) { @@ -15652,12 +15652,12 @@ int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getFileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getFileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) @@ -15665,31 +15665,31 @@ int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::vector arg0; - + ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "cc.FileUtils:setSearchResolutionsOrder"); if(!ok) { @@ -15701,12 +15701,12 @@ int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setSearchResolutionsOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) @@ -15714,31 +15714,31 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchResolutionsOrder"); if(!ok) { @@ -15748,13 +15748,13 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) cobj->addSearchResolutionsOrder(arg0); return 0; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchResolutionsOrder"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.FileUtils:addSearchResolutionsOrder"); if(!ok) { @@ -15766,12 +15766,12 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:addSearchResolutionsOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) @@ -15779,31 +15779,31 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_addSearchPath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchPath"); if(!ok) { @@ -15813,13 +15813,13 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) cobj->addSearchPath(arg0); return 0; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchPath"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.FileUtils:addSearchPath"); if(!ok) { @@ -15831,12 +15831,12 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:addSearchPath",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_addSearchPath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) @@ -15844,31 +15844,31 @@ int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isFileExist'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isFileExist"); if(!ok) { @@ -15881,12 +15881,12 @@ int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isFileExist",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isFileExist'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) @@ -15894,28 +15894,28 @@ int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -15927,12 +15927,12 @@ int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:purgeCachedEntries",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) @@ -15940,34 +15940,34 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::string arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:fullPathFromRelativeFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:fullPathFromRelativeFile"); if(!ok) { @@ -15980,12 +15980,12 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:fullPathFromRelativeFile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) @@ -15993,31 +15993,31 @@ int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setPopupNotify'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FileUtils:setPopupNotify"); if(!ok) { @@ -16029,12 +16029,12 @@ int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setPopupNotify",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setPopupNotify'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) @@ -16042,31 +16042,31 @@ int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isDirectoryExist'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isDirectoryExist"); if(!ok) { @@ -16079,12 +16079,12 @@ int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isDirectoryExist",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isDirectoryExist'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) @@ -16092,28 +16092,28 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -16126,12 +16126,12 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSearchResolutionsOrder",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) @@ -16139,31 +16139,31 @@ int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_createDirectory'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:createDirectory"); if(!ok) { @@ -16176,12 +16176,12 @@ int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:createDirectory",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_createDirectory'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) @@ -16189,28 +16189,28 @@ int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getWritablePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -16223,29 +16223,29 @@ int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getWritablePath",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getWritablePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -16259,7 +16259,7 @@ int lua_cocos2dx_FileUtils_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_destroyInstance'.",&tolua_err); #endif return 0; @@ -16268,17 +16268,17 @@ int lua_cocos2dx_FileUtils_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -16293,7 +16293,7 @@ int lua_cocos2dx_FileUtils_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getInstance'.",&tolua_err); #endif return 0; @@ -16308,37 +16308,37 @@ int lua_register_cocos2dx_FileUtils(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FileUtils"); tolua_cclass(tolua_S,"FileUtils","cc.FileUtils","",nullptr); - + tolua_beginmodule(tolua_S,"FileUtils"); - tolua_function(tolua_S,"fullPathForFilename",lua_cocos2dx_FileUtils_fullPathForFilename); - tolua_function(tolua_S,"getStringFromFile",lua_cocos2dx_FileUtils_getStringFromFile); - tolua_function(tolua_S,"setFilenameLookupDictionary",lua_cocos2dx_FileUtils_setFilenameLookupDictionary); - tolua_function(tolua_S,"removeFile",lua_cocos2dx_FileUtils_removeFile); - tolua_function(tolua_S,"isAbsolutePath",lua_cocos2dx_FileUtils_isAbsolutePath); - tolua_function(tolua_S,"renameFile",lua_cocos2dx_FileUtils_renameFile); - tolua_function(tolua_S,"loadFilenameLookup",lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile); - tolua_function(tolua_S,"isPopupNotify",lua_cocos2dx_FileUtils_isPopupNotify); - tolua_function(tolua_S,"getValueVectorFromFile",lua_cocos2dx_FileUtils_getValueVectorFromFile); - tolua_function(tolua_S,"getSearchPaths",lua_cocos2dx_FileUtils_getSearchPaths); - tolua_function(tolua_S,"writeToFile",lua_cocos2dx_FileUtils_writeToFile); - tolua_function(tolua_S,"getValueMapFromFile",lua_cocos2dx_FileUtils_getValueMapFromFile); - tolua_function(tolua_S,"getValueMapFromData",lua_cocos2dx_FileUtils_getValueMapFromData); - tolua_function(tolua_S,"removeDirectory",lua_cocos2dx_FileUtils_removeDirectory); - tolua_function(tolua_S,"setSearchPaths",lua_cocos2dx_FileUtils_setSearchPaths); - tolua_function(tolua_S,"getFileSize",lua_cocos2dx_FileUtils_getFileSize); - tolua_function(tolua_S,"setSearchResolutionsOrder",lua_cocos2dx_FileUtils_setSearchResolutionsOrder); - tolua_function(tolua_S,"addSearchResolutionsOrder",lua_cocos2dx_FileUtils_addSearchResolutionsOrder); - tolua_function(tolua_S,"addSearchPath",lua_cocos2dx_FileUtils_addSearchPath); - tolua_function(tolua_S,"isFileExist",lua_cocos2dx_FileUtils_isFileExist); - tolua_function(tolua_S,"purgeCachedEntries",lua_cocos2dx_FileUtils_purgeCachedEntries); - tolua_function(tolua_S,"fullPathFromRelativeFile",lua_cocos2dx_FileUtils_fullPathFromRelativeFile); - tolua_function(tolua_S,"setPopupNotify",lua_cocos2dx_FileUtils_setPopupNotify); - tolua_function(tolua_S,"isDirectoryExist",lua_cocos2dx_FileUtils_isDirectoryExist); - tolua_function(tolua_S,"getSearchResolutionsOrder",lua_cocos2dx_FileUtils_getSearchResolutionsOrder); - tolua_function(tolua_S,"createDirectory",lua_cocos2dx_FileUtils_createDirectory); - tolua_function(tolua_S,"getWritablePath",lua_cocos2dx_FileUtils_getWritablePath); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_FileUtils_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_FileUtils_getInstance); + tolua_function(tolua_S,"fullPathForFilename",lua_cocos2dx_FileUtils_fullPathForFilename); + tolua_function(tolua_S,"getStringFromFile",lua_cocos2dx_FileUtils_getStringFromFile); + tolua_function(tolua_S,"setFilenameLookupDictionary",lua_cocos2dx_FileUtils_setFilenameLookupDictionary); + tolua_function(tolua_S,"removeFile",lua_cocos2dx_FileUtils_removeFile); + tolua_function(tolua_S,"isAbsolutePath",lua_cocos2dx_FileUtils_isAbsolutePath); + tolua_function(tolua_S,"renameFile",lua_cocos2dx_FileUtils_renameFile); + tolua_function(tolua_S,"loadFilenameLookup",lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile); + tolua_function(tolua_S,"isPopupNotify",lua_cocos2dx_FileUtils_isPopupNotify); + tolua_function(tolua_S,"getValueVectorFromFile",lua_cocos2dx_FileUtils_getValueVectorFromFile); + tolua_function(tolua_S,"getSearchPaths",lua_cocos2dx_FileUtils_getSearchPaths); + tolua_function(tolua_S,"writeToFile",lua_cocos2dx_FileUtils_writeToFile); + tolua_function(tolua_S,"getValueMapFromFile",lua_cocos2dx_FileUtils_getValueMapFromFile); + tolua_function(tolua_S,"getValueMapFromData",lua_cocos2dx_FileUtils_getValueMapFromData); + tolua_function(tolua_S,"removeDirectory",lua_cocos2dx_FileUtils_removeDirectory); + tolua_function(tolua_S,"setSearchPaths",lua_cocos2dx_FileUtils_setSearchPaths); + tolua_function(tolua_S,"getFileSize",lua_cocos2dx_FileUtils_getFileSize); + tolua_function(tolua_S,"setSearchResolutionsOrder",lua_cocos2dx_FileUtils_setSearchResolutionsOrder); + tolua_function(tolua_S,"addSearchResolutionsOrder",lua_cocos2dx_FileUtils_addSearchResolutionsOrder); + tolua_function(tolua_S,"addSearchPath",lua_cocos2dx_FileUtils_addSearchPath); + tolua_function(tolua_S,"isFileExist",lua_cocos2dx_FileUtils_isFileExist); + tolua_function(tolua_S,"purgeCachedEntries",lua_cocos2dx_FileUtils_purgeCachedEntries); + tolua_function(tolua_S,"fullPathFromRelativeFile",lua_cocos2dx_FileUtils_fullPathFromRelativeFile); + tolua_function(tolua_S,"setPopupNotify",lua_cocos2dx_FileUtils_setPopupNotify); + tolua_function(tolua_S,"isDirectoryExist",lua_cocos2dx_FileUtils_isDirectoryExist); + tolua_function(tolua_S,"getSearchResolutionsOrder",lua_cocos2dx_FileUtils_getSearchResolutionsOrder); + tolua_function(tolua_S,"createDirectory",lua_cocos2dx_FileUtils_createDirectory); + tolua_function(tolua_S,"getWritablePath",lua_cocos2dx_FileUtils_getWritablePath); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_FileUtils_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_FileUtils_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FileUtils).name(); g_luaType[typeName] = "cc.FileUtils"; @@ -16351,34 +16351,34 @@ int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setIntegerForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; int arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setIntegerForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.UserDefault:setIntegerForKey"); if(!ok) { @@ -16390,12 +16390,12 @@ int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setIntegerForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setIntegerForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) @@ -16406,7 +16406,7 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16423,11 +16423,11 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:getFloatForKey"); - + if (!ok) { break; } double ret = cobj->getFloatForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16439,7 +16439,7 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double ret = cobj->getFloatForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16449,12 +16449,12 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getFloatForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getFloatForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) @@ -16465,7 +16465,7 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16482,11 +16482,11 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.UserDefault:getBoolForKey"); - + if (!ok) { break; } bool ret = cobj->getBoolForKey(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -16498,7 +16498,7 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } bool ret = cobj->getBoolForKey(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -16508,12 +16508,12 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getBoolForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getBoolForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) @@ -16521,34 +16521,34 @@ int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setDoubleForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; double arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setDoubleForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:setDoubleForKey"); if(!ok) { @@ -16560,12 +16560,12 @@ int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setDoubleForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setDoubleForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) @@ -16573,34 +16573,34 @@ int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setFloatForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; double arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setFloatForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:setFloatForKey"); if(!ok) { @@ -16612,12 +16612,12 @@ int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setFloatForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setFloatForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) @@ -16628,7 +16628,7 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16645,11 +16645,11 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.UserDefault:getStringForKey"); - + if (!ok) { break; } std::string ret = cobj->getStringForKey(arg0, arg1); tolua_pushcppstring(tolua_S,ret); @@ -16661,7 +16661,7 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string ret = cobj->getStringForKey(arg0); tolua_pushcppstring(tolua_S,ret); @@ -16671,12 +16671,12 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getStringForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getStringForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) @@ -16684,34 +16684,34 @@ int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setStringForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; std::string arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setStringForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.UserDefault:setStringForKey"); if(!ok) { @@ -16723,12 +16723,12 @@ int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setStringForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setStringForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) @@ -16736,28 +16736,28 @@ int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_flush'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -16769,12 +16769,12 @@ int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:flush",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_flush'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) @@ -16785,7 +16785,7 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16802,11 +16802,11 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.UserDefault:getIntegerForKey"); - + if (!ok) { break; } int ret = cobj->getIntegerForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16818,7 +16818,7 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } int ret = cobj->getIntegerForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16828,12 +16828,12 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getIntegerForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getIntegerForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) @@ -16844,7 +16844,7 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16861,11 +16861,11 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:getDoubleForKey"); - + if (!ok) { break; } double ret = cobj->getDoubleForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16877,7 +16877,7 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double ret = cobj->getDoubleForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16887,12 +16887,12 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getDoubleForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getDoubleForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) @@ -16900,34 +16900,34 @@ int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setBoolForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; bool arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setBoolForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.UserDefault:setBoolForKey"); if(!ok) { @@ -16939,29 +16939,29 @@ int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setBoolForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setBoolForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -16975,7 +16975,7 @@ int lua_cocos2dx_UserDefault_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_destroyInstance'.",&tolua_err); #endif return 0; @@ -16984,17 +16984,17 @@ int lua_cocos2dx_UserDefault_getXMLFilePath(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -17009,7 +17009,7 @@ int lua_cocos2dx_UserDefault_getXMLFilePath(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:getXMLFilePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getXMLFilePath'.",&tolua_err); #endif return 0; @@ -17018,17 +17018,17 @@ int lua_cocos2dx_UserDefault_isXMLFileExist(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -17043,7 +17043,7 @@ int lua_cocos2dx_UserDefault_isXMLFileExist(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:isXMLFileExist",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_isXMLFileExist'.",&tolua_err); #endif return 0; @@ -17058,22 +17058,22 @@ int lua_register_cocos2dx_UserDefault(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.UserDefault"); tolua_cclass(tolua_S,"UserDefault","cc.UserDefault","",nullptr); - + tolua_beginmodule(tolua_S,"UserDefault"); - tolua_function(tolua_S,"setIntegerForKey",lua_cocos2dx_UserDefault_setIntegerForKey); - tolua_function(tolua_S,"getFloatForKey",lua_cocos2dx_UserDefault_getFloatForKey); - tolua_function(tolua_S,"getBoolForKey",lua_cocos2dx_UserDefault_getBoolForKey); - tolua_function(tolua_S,"setDoubleForKey",lua_cocos2dx_UserDefault_setDoubleForKey); - tolua_function(tolua_S,"setFloatForKey",lua_cocos2dx_UserDefault_setFloatForKey); - tolua_function(tolua_S,"getStringForKey",lua_cocos2dx_UserDefault_getStringForKey); - tolua_function(tolua_S,"setStringForKey",lua_cocos2dx_UserDefault_setStringForKey); - tolua_function(tolua_S,"flush",lua_cocos2dx_UserDefault_flush); - tolua_function(tolua_S,"getIntegerForKey",lua_cocos2dx_UserDefault_getIntegerForKey); - tolua_function(tolua_S,"getDoubleForKey",lua_cocos2dx_UserDefault_getDoubleForKey); - tolua_function(tolua_S,"setBoolForKey",lua_cocos2dx_UserDefault_setBoolForKey); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_UserDefault_destroyInstance); - tolua_function(tolua_S,"getXMLFilePath", lua_cocos2dx_UserDefault_getXMLFilePath); - tolua_function(tolua_S,"isXMLFileExist", lua_cocos2dx_UserDefault_isXMLFileExist); + tolua_function(tolua_S,"setIntegerForKey",lua_cocos2dx_UserDefault_setIntegerForKey); + tolua_function(tolua_S,"getFloatForKey",lua_cocos2dx_UserDefault_getFloatForKey); + tolua_function(tolua_S,"getBoolForKey",lua_cocos2dx_UserDefault_getBoolForKey); + tolua_function(tolua_S,"setDoubleForKey",lua_cocos2dx_UserDefault_setDoubleForKey); + tolua_function(tolua_S,"setFloatForKey",lua_cocos2dx_UserDefault_setFloatForKey); + tolua_function(tolua_S,"getStringForKey",lua_cocos2dx_UserDefault_getStringForKey); + tolua_function(tolua_S,"setStringForKey",lua_cocos2dx_UserDefault_setStringForKey); + tolua_function(tolua_S,"flush",lua_cocos2dx_UserDefault_flush); + tolua_function(tolua_S,"getIntegerForKey",lua_cocos2dx_UserDefault_getIntegerForKey); + tolua_function(tolua_S,"getDoubleForKey",lua_cocos2dx_UserDefault_getDoubleForKey); + tolua_function(tolua_S,"setBoolForKey",lua_cocos2dx_UserDefault_setBoolForKey); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_UserDefault_destroyInstance); + tolua_function(tolua_S,"getXMLFilePath", lua_cocos2dx_UserDefault_getXMLFilePath); + tolua_function(tolua_S,"isXMLFileExist", lua_cocos2dx_UserDefault_isXMLFileExist); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::UserDefault).name(); g_luaType[typeName] = "cc.UserDefault"; @@ -17086,31 +17086,31 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventListener:setEnabled"); if(!ok) { @@ -17122,12 +17122,12 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) @@ -17135,28 +17135,28 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17169,12 +17169,12 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) @@ -17182,28 +17182,28 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17216,12 +17216,12 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) @@ -17229,28 +17229,28 @@ int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_checkAvailable'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17263,12 +17263,12 @@ int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:checkAvailable",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_checkAvailable'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EventListener_finalize(lua_State* tolua_S) @@ -17281,12 +17281,12 @@ int lua_register_cocos2dx_EventListener(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListener"); tolua_cclass(tolua_S,"EventListener","cc.EventListener","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"EventListener"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventListener_setEnabled); - tolua_function(tolua_S,"clone",lua_cocos2dx_EventListener_clone); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventListener_isEnabled); - tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventListener_setEnabled); + tolua_function(tolua_S,"clone",lua_cocos2dx_EventListener_clone); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventListener_isEnabled); + tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListener).name(); g_luaType[typeName] = "cc.EventListener"; @@ -17299,31 +17299,31 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -17333,13 +17333,13 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S cobj->pauseEventListenersForTarget(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:pauseEventListenersForTarget"); if(!ok) { @@ -17351,12 +17351,12 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:pauseEventListenersForTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State* tolua_S) @@ -17364,34 +17364,34 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventListener* arg0; cocos2d::Node* arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -17403,12 +17403,12 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addEventListenerWithSceneGraphPriority",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) @@ -17416,31 +17416,31 @@ int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventDispatcher:setEnabled"); if(!ok) { @@ -17452,12 +17452,12 @@ int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tolua_S) @@ -17465,34 +17465,34 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventListener* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:addEventListenerWithFixedPriority"); if(!ok) { @@ -17504,12 +17504,12 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addEventListenerWithFixedPriority",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) @@ -17517,31 +17517,31 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListener'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventListener* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); if(!ok) { @@ -17553,12 +17553,12 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListener",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListener'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_S) @@ -17566,31 +17566,31 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -17600,13 +17600,13 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ cobj->resumeEventListenersForTarget(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:resumeEventListenersForTarget"); if(!ok) { @@ -17618,12 +17618,12 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:resumeEventListenersForTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_S) @@ -17631,31 +17631,31 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -17665,13 +17665,13 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ cobj->removeEventListenersForTarget(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:removeEventListenersForTarget"); if(!ok) { @@ -17683,12 +17683,12 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListenersForTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) @@ -17696,34 +17696,34 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_setPriority'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventListener* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:setPriority"); if(!ok) { @@ -17735,12 +17735,12 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:setPriority",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_setPriority'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) @@ -17748,39 +17748,39 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::function arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:addCustomEventListener"); - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); @@ -17792,12 +17792,12 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addCustomEventListener",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) @@ -17805,31 +17805,31 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Event* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Event",&arg0); if(!ok) { @@ -17841,12 +17841,12 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:dispatchEvent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) @@ -17854,28 +17854,28 @@ int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17887,12 +17887,12 @@ int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeAllEventListeners",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) @@ -17900,31 +17900,31 @@ int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:removeCustomEventListeners"); if(!ok) { @@ -17936,12 +17936,12 @@ int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeCustomEventListeners",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) @@ -17949,28 +17949,28 @@ int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17983,12 +17983,12 @@ int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) @@ -17996,31 +17996,31 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventListener::Type arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventDispatcher:removeEventListenersForType"); if(!ok) { @@ -18032,12 +18032,12 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListenersForType",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) @@ -18045,15 +18045,15 @@ int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18069,11 +18069,11 @@ int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:EventDispatcher",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_constructor'.",&tolua_err); #endif - + return 0; } @@ -18087,23 +18087,23 @@ int lua_register_cocos2dx_EventDispatcher(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventDispatcher"); tolua_cclass(tolua_S,"EventDispatcher","cc.EventDispatcher","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"EventDispatcher"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventDispatcher_constructor); - tolua_function(tolua_S,"pauseEventListenersForTarget",lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget); - tolua_function(tolua_S,"addEventListenerWithSceneGraphPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventDispatcher_setEnabled); - tolua_function(tolua_S,"addEventListenerWithFixedPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority); - tolua_function(tolua_S,"removeEventListener",lua_cocos2dx_EventDispatcher_removeEventListener); - tolua_function(tolua_S,"resumeEventListenersForTarget",lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget); - tolua_function(tolua_S,"removeEventListenersForTarget",lua_cocos2dx_EventDispatcher_removeEventListenersForTarget); - tolua_function(tolua_S,"setPriority",lua_cocos2dx_EventDispatcher_setPriority); - tolua_function(tolua_S,"addCustomEventListener",lua_cocos2dx_EventDispatcher_addCustomEventListener); - tolua_function(tolua_S,"dispatchEvent",lua_cocos2dx_EventDispatcher_dispatchEvent); - tolua_function(tolua_S,"removeAllEventListeners",lua_cocos2dx_EventDispatcher_removeAllEventListeners); - tolua_function(tolua_S,"removeCustomEventListeners",lua_cocos2dx_EventDispatcher_removeCustomEventListeners); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventDispatcher_isEnabled); - tolua_function(tolua_S,"removeEventListenersForType",lua_cocos2dx_EventDispatcher_removeEventListenersForType); + tolua_function(tolua_S,"new",lua_cocos2dx_EventDispatcher_constructor); + tolua_function(tolua_S,"pauseEventListenersForTarget",lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget); + tolua_function(tolua_S,"addEventListenerWithSceneGraphPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventDispatcher_setEnabled); + tolua_function(tolua_S,"addEventListenerWithFixedPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority); + tolua_function(tolua_S,"removeEventListener",lua_cocos2dx_EventDispatcher_removeEventListener); + tolua_function(tolua_S,"resumeEventListenersForTarget",lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget); + tolua_function(tolua_S,"removeEventListenersForTarget",lua_cocos2dx_EventDispatcher_removeEventListenersForTarget); + tolua_function(tolua_S,"setPriority",lua_cocos2dx_EventDispatcher_setPriority); + tolua_function(tolua_S,"addCustomEventListener",lua_cocos2dx_EventDispatcher_addCustomEventListener); + tolua_function(tolua_S,"dispatchEvent",lua_cocos2dx_EventDispatcher_dispatchEvent); + tolua_function(tolua_S,"removeAllEventListeners",lua_cocos2dx_EventDispatcher_removeAllEventListeners); + tolua_function(tolua_S,"removeCustomEventListeners",lua_cocos2dx_EventDispatcher_removeCustomEventListeners); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventDispatcher_isEnabled); + tolua_function(tolua_S,"removeEventListenersForType",lua_cocos2dx_EventDispatcher_removeEventListenersForType); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventDispatcher).name(); g_luaType[typeName] = "cc.EventDispatcher"; @@ -18116,28 +18116,28 @@ int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18150,12 +18150,12 @@ int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:isSwallowTouches",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S) @@ -18163,31 +18163,31 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventListenerTouchOneByOne:setSwallowTouches"); if(!ok) { @@ -18199,12 +18199,12 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:setSwallowTouches",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EventListenerTouchOneByOne_finalize(lua_State* tolua_S) @@ -18217,10 +18217,10 @@ int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchOneByOne"); tolua_cclass(tolua_S,"EventListenerTouchOneByOne","cc.EventListenerTouchOneByOne","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerTouchOneByOne"); - tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); - tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); + tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); + tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchOneByOne).name(); g_luaType[typeName] = "cc.EventListenerTouchOneByOne"; @@ -18238,7 +18238,7 @@ int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchAllAtOnce"); tolua_cclass(tolua_S,"EventListenerTouchAllAtOnce","cc.EventListenerTouchAllAtOnce","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerTouchAllAtOnce"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchAllAtOnce).name(); @@ -18257,7 +18257,7 @@ int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerKeyboard"); tolua_cclass(tolua_S,"EventListenerKeyboard","cc.EventListenerKeyboard","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerKeyboard"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerKeyboard).name(); @@ -18271,28 +18271,28 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18305,12 +18305,12 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getPreviousLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) @@ -18318,28 +18318,28 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18352,12 +18352,12 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) @@ -18365,28 +18365,28 @@ int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getMouseButton'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18399,12 +18399,12 @@ int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getMouseButton",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getMouseButton'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) @@ -18412,28 +18412,28 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getPreviousLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18446,12 +18446,12 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getPreviousLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getPreviousLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) @@ -18459,28 +18459,28 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getDelta'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18493,12 +18493,12 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getDelta",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getDelta'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) @@ -18506,34 +18506,34 @@ int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setScrollData'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EventMouse:setScrollData"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EventMouse:setScrollData"); if(!ok) { @@ -18545,12 +18545,12 @@ int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setScrollData",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setScrollData'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) @@ -18558,28 +18558,28 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getStartLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18592,12 +18592,12 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getStartLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getStartLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) @@ -18605,28 +18605,28 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getStartLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18639,12 +18639,12 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getStartLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getStartLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) @@ -18652,31 +18652,31 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setMouseButton'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:setMouseButton"); if(!ok) { @@ -18688,12 +18688,12 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setMouseButton",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setMouseButton'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) @@ -18701,28 +18701,28 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18735,12 +18735,12 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) @@ -18748,28 +18748,28 @@ int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getScrollY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18782,12 +18782,12 @@ int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getScrollY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getScrollY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) @@ -18795,28 +18795,28 @@ int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getScrollX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18829,12 +18829,12 @@ int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getScrollX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getScrollX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) @@ -18842,28 +18842,28 @@ int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getCursorX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18876,12 +18876,12 @@ int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getCursorX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getCursorX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) @@ -18889,28 +18889,28 @@ int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getCursorY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18923,12 +18923,12 @@ int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getCursorY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getCursorY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) @@ -18936,34 +18936,34 @@ int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setCursorPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EventMouse:setCursorPosition"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EventMouse:setCursorPosition"); if(!ok) { @@ -18975,12 +18975,12 @@ int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setCursorPosition",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setCursorPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) @@ -18988,18 +18988,18 @@ int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventMouse::MouseEventType arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:EventMouse"); if(!ok) { @@ -19015,11 +19015,11 @@ int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:EventMouse",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_constructor'.",&tolua_err); #endif - + return 0; } @@ -19033,24 +19033,24 @@ int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventMouse"); tolua_cclass(tolua_S,"EventMouse","cc.EventMouse","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventMouse"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventMouse_constructor); - tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_EventMouse_getPreviousLocationInView); - tolua_function(tolua_S,"getLocation",lua_cocos2dx_EventMouse_getLocation); - tolua_function(tolua_S,"getMouseButton",lua_cocos2dx_EventMouse_getMouseButton); - tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_EventMouse_getPreviousLocation); - tolua_function(tolua_S,"getDelta",lua_cocos2dx_EventMouse_getDelta); - tolua_function(tolua_S,"setScrollData",lua_cocos2dx_EventMouse_setScrollData); - tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_EventMouse_getStartLocationInView); - tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_EventMouse_getStartLocation); - tolua_function(tolua_S,"setMouseButton",lua_cocos2dx_EventMouse_setMouseButton); - tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_EventMouse_getLocationInView); - tolua_function(tolua_S,"getScrollY",lua_cocos2dx_EventMouse_getScrollY); - tolua_function(tolua_S,"getScrollX",lua_cocos2dx_EventMouse_getScrollX); - tolua_function(tolua_S,"getCursorX",lua_cocos2dx_EventMouse_getCursorX); - tolua_function(tolua_S,"getCursorY",lua_cocos2dx_EventMouse_getCursorY); - tolua_function(tolua_S,"setCursorPosition",lua_cocos2dx_EventMouse_setCursorPosition); + tolua_function(tolua_S,"new",lua_cocos2dx_EventMouse_constructor); + tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_EventMouse_getPreviousLocationInView); + tolua_function(tolua_S,"getLocation",lua_cocos2dx_EventMouse_getLocation); + tolua_function(tolua_S,"getMouseButton",lua_cocos2dx_EventMouse_getMouseButton); + tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_EventMouse_getPreviousLocation); + tolua_function(tolua_S,"getDelta",lua_cocos2dx_EventMouse_getDelta); + tolua_function(tolua_S,"setScrollData",lua_cocos2dx_EventMouse_setScrollData); + tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_EventMouse_getStartLocationInView); + tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_EventMouse_getStartLocation); + tolua_function(tolua_S,"setMouseButton",lua_cocos2dx_EventMouse_setMouseButton); + tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_EventMouse_getLocationInView); + tolua_function(tolua_S,"getScrollY",lua_cocos2dx_EventMouse_getScrollY); + tolua_function(tolua_S,"getScrollX",lua_cocos2dx_EventMouse_getScrollX); + tolua_function(tolua_S,"getCursorX",lua_cocos2dx_EventMouse_getCursorX); + tolua_function(tolua_S,"getCursorY",lua_cocos2dx_EventMouse_getCursorY); + tolua_function(tolua_S,"setCursorPosition",lua_cocos2dx_EventMouse_setCursorPosition); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventMouse).name(); g_luaType[typeName] = "cc.EventMouse"; @@ -19068,7 +19068,7 @@ int lua_register_cocos2dx_EventListenerMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerMouse"); tolua_cclass(tolua_S,"EventListenerMouse","cc.EventListenerMouse","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerMouse"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerMouse).name(); @@ -19087,7 +19087,7 @@ int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventAcceleration"); tolua_cclass(tolua_S,"EventAcceleration","cc.EventAcceleration","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventAcceleration"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventAcceleration).name(); @@ -19106,7 +19106,7 @@ int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerAcceleration"); tolua_cclass(tolua_S,"EventListenerAcceleration","cc.EventListenerAcceleration","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerAcceleration"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerAcceleration).name(); @@ -19120,28 +19120,28 @@ int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) int argc = 0; cocos2d::EventCustom* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventCustom",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventCustom*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventCustom_getEventName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19154,12 +19154,12 @@ int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventCustom:getEventName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventCustom_getEventName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) @@ -19167,18 +19167,18 @@ int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventCustom* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventCustom:EventCustom"); if(!ok) { @@ -19194,11 +19194,11 @@ int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventCustom:EventCustom",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventCustom_constructor'.",&tolua_err); #endif - + return 0; } @@ -19212,10 +19212,10 @@ int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventCustom"); tolua_cclass(tolua_S,"EventCustom","cc.EventCustom","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventCustom"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); - tolua_function(tolua_S,"getEventName",lua_cocos2dx_EventCustom_getEventName); + tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); + tolua_function(tolua_S,"getEventName",lua_cocos2dx_EventCustom_getEventName); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventCustom).name(); g_luaType[typeName] = "cc.EventCustom"; @@ -19233,7 +19233,7 @@ int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerCustom"); tolua_cclass(tolua_S,"EventListenerCustom","cc.EventListenerCustom","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerCustom"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerCustom).name(); @@ -19247,21 +19247,21 @@ int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventFocus* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ui::Widget* arg0; cocos2d::ui::Widget* arg1; - + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1); if(!ok) { @@ -19277,11 +19277,11 @@ int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventFocus:EventFocus",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventFocus_constructor'.",&tolua_err); #endif - + return 0; } @@ -19295,9 +19295,9 @@ int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventFocus"); tolua_cclass(tolua_S,"EventFocus","cc.EventFocus","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventFocus"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); + tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventFocus).name(); g_luaType[typeName] = "cc.EventFocus"; @@ -19315,7 +19315,7 @@ int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerFocus"); tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerFocus"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerFocus).name(); @@ -19329,31 +19329,31 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_startWithTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -19365,12 +19365,12 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:startWithTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_startWithTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) @@ -19378,31 +19378,31 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setOriginalTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -19414,12 +19414,12 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setOriginalTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setOriginalTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_clone(lua_State* tolua_S) @@ -19427,28 +19427,28 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19461,12 +19461,12 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) @@ -19474,28 +19474,28 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getOriginalTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19508,12 +19508,12 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getOriginalTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getOriginalTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_stop(lua_State* tolua_S) @@ -19521,28 +19521,28 @@ int lua_cocos2dx_Action_stop(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_stop'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19554,12 +19554,12 @@ int lua_cocos2dx_Action_stop(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:stop",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_stop'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_update(lua_State* tolua_S) @@ -19567,31 +19567,31 @@ int lua_cocos2dx_Action_update(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Action:update"); if(!ok) { @@ -19603,12 +19603,12 @@ int lua_cocos2dx_Action_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) @@ -19616,28 +19616,28 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19650,12 +19650,12 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_step(lua_State* tolua_S) @@ -19663,31 +19663,31 @@ int lua_cocos2dx_Action_step(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_step'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Action:step"); if(!ok) { @@ -19699,12 +19699,12 @@ int lua_cocos2dx_Action_step(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:step",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_step'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_setTag(lua_State* tolua_S) @@ -19712,31 +19712,31 @@ int lua_cocos2dx_Action_setTag(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Action:setTag"); if(!ok) { @@ -19748,12 +19748,12 @@ int lua_cocos2dx_Action_setTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_getTag(lua_State* tolua_S) @@ -19761,28 +19761,28 @@ int lua_cocos2dx_Action_getTag(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19795,12 +19795,12 @@ int lua_cocos2dx_Action_getTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) @@ -19808,31 +19808,31 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -19844,12 +19844,12 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_isDone(lua_State* tolua_S) @@ -19857,28 +19857,28 @@ int lua_cocos2dx_Action_isDone(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_isDone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19891,12 +19891,12 @@ int lua_cocos2dx_Action_isDone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:isDone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_isDone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_reverse(lua_State* tolua_S) @@ -19904,28 +19904,28 @@ int lua_cocos2dx_Action_reverse(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_reverse'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19938,12 +19938,12 @@ int lua_cocos2dx_Action_reverse(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:reverse",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_reverse'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Action_finalize(lua_State* tolua_S) @@ -19956,21 +19956,21 @@ int lua_register_cocos2dx_Action(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Action"); tolua_cclass(tolua_S,"Action","cc.Action","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Action"); - tolua_function(tolua_S,"startWithTarget",lua_cocos2dx_Action_startWithTarget); - tolua_function(tolua_S,"setOriginalTarget",lua_cocos2dx_Action_setOriginalTarget); - tolua_function(tolua_S,"clone",lua_cocos2dx_Action_clone); - tolua_function(tolua_S,"getOriginalTarget",lua_cocos2dx_Action_getOriginalTarget); - tolua_function(tolua_S,"stop",lua_cocos2dx_Action_stop); - tolua_function(tolua_S,"update",lua_cocos2dx_Action_update); - tolua_function(tolua_S,"getTarget",lua_cocos2dx_Action_getTarget); - tolua_function(tolua_S,"step",lua_cocos2dx_Action_step); - tolua_function(tolua_S,"setTag",lua_cocos2dx_Action_setTag); - tolua_function(tolua_S,"getTag",lua_cocos2dx_Action_getTag); - tolua_function(tolua_S,"setTarget",lua_cocos2dx_Action_setTarget); - tolua_function(tolua_S,"isDone",lua_cocos2dx_Action_isDone); - tolua_function(tolua_S,"reverse",lua_cocos2dx_Action_reverse); + tolua_function(tolua_S,"startWithTarget",lua_cocos2dx_Action_startWithTarget); + tolua_function(tolua_S,"setOriginalTarget",lua_cocos2dx_Action_setOriginalTarget); + tolua_function(tolua_S,"clone",lua_cocos2dx_Action_clone); + tolua_function(tolua_S,"getOriginalTarget",lua_cocos2dx_Action_getOriginalTarget); + tolua_function(tolua_S,"stop",lua_cocos2dx_Action_stop); + tolua_function(tolua_S,"update",lua_cocos2dx_Action_update); + tolua_function(tolua_S,"getTarget",lua_cocos2dx_Action_getTarget); + tolua_function(tolua_S,"step",lua_cocos2dx_Action_step); + tolua_function(tolua_S,"setTag",lua_cocos2dx_Action_setTag); + tolua_function(tolua_S,"getTag",lua_cocos2dx_Action_getTag); + tolua_function(tolua_S,"setTarget",lua_cocos2dx_Action_setTarget); + tolua_function(tolua_S,"isDone",lua_cocos2dx_Action_isDone); + tolua_function(tolua_S,"reverse",lua_cocos2dx_Action_reverse); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Action).name(); g_luaType[typeName] = "cc.Action"; @@ -19983,31 +19983,31 @@ int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) int argc = 0; cocos2d::FiniteTimeAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FiniteTimeAction_setDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FiniteTimeAction:setDuration"); if(!ok) { @@ -20019,12 +20019,12 @@ int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FiniteTimeAction:setDuration",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FiniteTimeAction_setDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) @@ -20032,28 +20032,28 @@ int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) int argc = 0; cocos2d::FiniteTimeAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FiniteTimeAction_getDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20066,12 +20066,12 @@ int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FiniteTimeAction:getDuration",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FiniteTimeAction_getDuration'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_FiniteTimeAction_finalize(lua_State* tolua_S) @@ -20084,10 +20084,10 @@ int lua_register_cocos2dx_FiniteTimeAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FiniteTimeAction"); tolua_cclass(tolua_S,"FiniteTimeAction","cc.FiniteTimeAction","cc.Action",nullptr); - + tolua_beginmodule(tolua_S,"FiniteTimeAction"); - tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); - tolua_function(tolua_S,"getDuration",lua_cocos2dx_FiniteTimeAction_getDuration); + tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_FiniteTimeAction_getDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FiniteTimeAction).name(); g_luaType[typeName] = "cc.FiniteTimeAction"; @@ -20100,31 +20100,31 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_setInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -20136,12 +20136,12 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:setInnerAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_setInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) @@ -20149,31 +20149,31 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_setSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Speed:setSpeed"); if(!ok) { @@ -20185,12 +20185,12 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:setSpeed",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_setSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) @@ -20198,28 +20198,28 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20232,12 +20232,12 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) @@ -20245,28 +20245,28 @@ int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_getSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20279,29 +20279,29 @@ int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getSpeed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -20320,7 +20320,7 @@ int lua_cocos2dx_Speed_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Speed:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_create'.",&tolua_err); #endif return 0; @@ -20335,13 +20335,13 @@ int lua_register_cocos2dx_Speed(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Speed"); tolua_cclass(tolua_S,"Speed","cc.Speed","cc.Action",nullptr); - + tolua_beginmodule(tolua_S,"Speed"); - tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Speed_setInnerAction); - tolua_function(tolua_S,"setSpeed",lua_cocos2dx_Speed_setSpeed); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); - tolua_function(tolua_S,"getSpeed",lua_cocos2dx_Speed_getSpeed); - tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); + tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Speed_setInnerAction); + tolua_function(tolua_S,"setSpeed",lua_cocos2dx_Speed_setSpeed); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); + tolua_function(tolua_S,"getSpeed",lua_cocos2dx_Speed_getSpeed); + tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Speed).name(); g_luaType[typeName] = "cc.Speed"; @@ -20354,31 +20354,31 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_setBoundarySet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Follow:setBoundarySet"); if(!ok) { @@ -20390,12 +20390,12 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:setBoundarySet",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_setBoundarySet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) @@ -20403,28 +20403,28 @@ int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_isBoundarySet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20437,29 +20437,29 @@ int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:isBoundarySet",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_isBoundarySet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Follow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Node* arg0; @@ -20491,7 +20491,7 @@ int lua_cocos2dx_Follow_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Follow:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_create'.",&tolua_err); #endif return 0; @@ -20506,11 +20506,11 @@ int lua_register_cocos2dx_Follow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Follow"); tolua_cclass(tolua_S,"Follow","cc.Follow","cc.Action",nullptr); - + tolua_beginmodule(tolua_S,"Follow"); - tolua_function(tolua_S,"setBoundarySet",lua_cocos2dx_Follow_setBoundarySet); - tolua_function(tolua_S,"isBoundarySet",lua_cocos2dx_Follow_isBoundarySet); - tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); + tolua_function(tolua_S,"setBoundarySet",lua_cocos2dx_Follow_setBoundarySet); + tolua_function(tolua_S,"isBoundarySet",lua_cocos2dx_Follow_isBoundarySet); + tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Follow).name(); g_luaType[typeName] = "cc.Follow"; @@ -20523,28 +20523,28 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20557,12 +20557,12 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) @@ -20570,31 +20570,31 @@ int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRotated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteFrame:setRotated"); if(!ok) { @@ -20606,12 +20606,12 @@ int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRotated",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRotated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) @@ -20619,31 +20619,31 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -20655,12 +20655,12 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) @@ -20668,28 +20668,28 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20702,12 +20702,12 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOffset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) @@ -20715,31 +20715,31 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRectInPixels"); if(!ok) { @@ -20751,12 +20751,12 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRectInPixels",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) @@ -20764,28 +20764,28 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20798,12 +20798,12 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) @@ -20811,28 +20811,28 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20845,12 +20845,12 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) @@ -20858,31 +20858,31 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffsetInPixels"); if(!ok) { @@ -20894,12 +20894,12 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOffsetInPixels",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) @@ -20907,28 +20907,28 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20941,12 +20941,12 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getRectInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) @@ -20954,31 +20954,31 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSize"); if(!ok) { @@ -20990,12 +20990,12 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOriginalSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) @@ -21003,28 +21003,28 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21037,12 +21037,12 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOriginalSizeInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) @@ -21050,31 +21050,31 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSizeInPixels"); if(!ok) { @@ -21086,12 +21086,12 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOriginalSizeInPixels",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) @@ -21099,31 +21099,31 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffset"); if(!ok) { @@ -21135,12 +21135,12 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOffset",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) @@ -21148,28 +21148,28 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_isRotated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21182,12 +21182,12 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:isRotated",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_isRotated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) @@ -21195,31 +21195,31 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRect"); if(!ok) { @@ -21231,12 +21231,12 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) @@ -21244,28 +21244,28 @@ int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21278,12 +21278,12 @@ int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOffsetInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) @@ -21291,28 +21291,28 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21325,12 +21325,12 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOriginalSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) @@ -21340,14 +21340,14 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -21372,7 +21372,7 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -21391,7 +21391,7 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.SpriteFrame:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_create'.",&tolua_err); #endif return 0; @@ -21403,14 +21403,14 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -21435,7 +21435,7 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -21454,7 +21454,7 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.SpriteFrame:createWithTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_createWithTexture'.",&tolua_err); #endif return 0; @@ -21469,27 +21469,27 @@ int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrame"); tolua_cclass(tolua_S,"SpriteFrame","cc.SpriteFrame","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"SpriteFrame"); - tolua_function(tolua_S,"clone",lua_cocos2dx_SpriteFrame_clone); - tolua_function(tolua_S,"setRotated",lua_cocos2dx_SpriteFrame_setRotated); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteFrame_setTexture); - tolua_function(tolua_S,"getOffset",lua_cocos2dx_SpriteFrame_getOffset); - tolua_function(tolua_S,"setRectInPixels",lua_cocos2dx_SpriteFrame_setRectInPixels); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteFrame_getTexture); - tolua_function(tolua_S,"getRect",lua_cocos2dx_SpriteFrame_getRect); - tolua_function(tolua_S,"setOffsetInPixels",lua_cocos2dx_SpriteFrame_setOffsetInPixels); - tolua_function(tolua_S,"getRectInPixels",lua_cocos2dx_SpriteFrame_getRectInPixels); - tolua_function(tolua_S,"setOriginalSize",lua_cocos2dx_SpriteFrame_setOriginalSize); - tolua_function(tolua_S,"getOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels); - tolua_function(tolua_S,"setOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels); - tolua_function(tolua_S,"setOffset",lua_cocos2dx_SpriteFrame_setOffset); - tolua_function(tolua_S,"isRotated",lua_cocos2dx_SpriteFrame_isRotated); - tolua_function(tolua_S,"setRect",lua_cocos2dx_SpriteFrame_setRect); - tolua_function(tolua_S,"getOffsetInPixels",lua_cocos2dx_SpriteFrame_getOffsetInPixels); - tolua_function(tolua_S,"getOriginalSize",lua_cocos2dx_SpriteFrame_getOriginalSize); - tolua_function(tolua_S,"create", lua_cocos2dx_SpriteFrame_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteFrame_createWithTexture); + tolua_function(tolua_S,"clone",lua_cocos2dx_SpriteFrame_clone); + tolua_function(tolua_S,"setRotated",lua_cocos2dx_SpriteFrame_setRotated); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteFrame_setTexture); + tolua_function(tolua_S,"getOffset",lua_cocos2dx_SpriteFrame_getOffset); + tolua_function(tolua_S,"setRectInPixels",lua_cocos2dx_SpriteFrame_setRectInPixels); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteFrame_getTexture); + tolua_function(tolua_S,"getRect",lua_cocos2dx_SpriteFrame_getRect); + tolua_function(tolua_S,"setOffsetInPixels",lua_cocos2dx_SpriteFrame_setOffsetInPixels); + tolua_function(tolua_S,"getRectInPixels",lua_cocos2dx_SpriteFrame_getRectInPixels); + tolua_function(tolua_S,"setOriginalSize",lua_cocos2dx_SpriteFrame_setOriginalSize); + tolua_function(tolua_S,"getOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels); + tolua_function(tolua_S,"setOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels); + tolua_function(tolua_S,"setOffset",lua_cocos2dx_SpriteFrame_setOffset); + tolua_function(tolua_S,"isRotated",lua_cocos2dx_SpriteFrame_isRotated); + tolua_function(tolua_S,"setRect",lua_cocos2dx_SpriteFrame_setRect); + tolua_function(tolua_S,"getOffsetInPixels",lua_cocos2dx_SpriteFrame_getOffsetInPixels); + tolua_function(tolua_S,"getOriginalSize",lua_cocos2dx_SpriteFrame_getOriginalSize); + tolua_function(tolua_S,"create", lua_cocos2dx_SpriteFrame_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteFrame_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteFrame).name(); g_luaType[typeName] = "cc.SpriteFrame"; @@ -21502,31 +21502,31 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -21538,12 +21538,12 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) @@ -21554,7 +21554,7 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif @@ -21585,12 +21585,12 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getUserInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getUserInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) @@ -21598,31 +21598,31 @@ int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.AnimationFrame:setDelayUnits"); if(!ok) { @@ -21634,12 +21634,12 @@ int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setDelayUnits",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) @@ -21647,28 +21647,28 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21681,12 +21681,12 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) @@ -21694,28 +21694,28 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21728,12 +21728,12 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getSpriteFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) @@ -21741,28 +21741,28 @@ int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21775,12 +21775,12 @@ int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getDelayUnits",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) @@ -21788,31 +21788,31 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setUserInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationFrame:setUserInfo"); if(!ok) { @@ -21824,29 +21824,29 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setUserInfo",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setUserInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { cocos2d::SpriteFrame* arg0; @@ -21867,7 +21867,7 @@ int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationFrame:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_create'.",&tolua_err); #endif return 0; @@ -21882,16 +21882,16 @@ int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationFrame"); tolua_cclass(tolua_S,"AnimationFrame","cc.AnimationFrame","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"AnimationFrame"); - tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_AnimationFrame_setSpriteFrame); - tolua_function(tolua_S,"getUserInfo",lua_cocos2dx_AnimationFrame_getUserInfo); - tolua_function(tolua_S,"setDelayUnits",lua_cocos2dx_AnimationFrame_setDelayUnits); - tolua_function(tolua_S,"clone",lua_cocos2dx_AnimationFrame_clone); - tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_AnimationFrame_getSpriteFrame); - tolua_function(tolua_S,"getDelayUnits",lua_cocos2dx_AnimationFrame_getDelayUnits); - tolua_function(tolua_S,"setUserInfo",lua_cocos2dx_AnimationFrame_setUserInfo); - tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); + tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_AnimationFrame_setSpriteFrame); + tolua_function(tolua_S,"getUserInfo",lua_cocos2dx_AnimationFrame_getUserInfo); + tolua_function(tolua_S,"setDelayUnits",lua_cocos2dx_AnimationFrame_setDelayUnits); + tolua_function(tolua_S,"clone",lua_cocos2dx_AnimationFrame_clone); + tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_AnimationFrame_getSpriteFrame); + tolua_function(tolua_S,"getDelayUnits",lua_cocos2dx_AnimationFrame_getDelayUnits); + tolua_function(tolua_S,"setUserInfo",lua_cocos2dx_AnimationFrame_setUserInfo); + tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationFrame).name(); g_luaType[typeName] = "cc.AnimationFrame"; @@ -21904,28 +21904,28 @@ int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getLoops'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21938,12 +21938,12 @@ int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getLoops",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getLoops'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) @@ -21951,31 +21951,31 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -21987,12 +21987,12 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) @@ -22000,31 +22000,31 @@ int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Animation:setRestoreOriginalFrame"); if(!ok) { @@ -22036,12 +22036,12 @@ int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setRestoreOriginalFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_clone(lua_State* tolua_S) @@ -22049,28 +22049,28 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22083,12 +22083,12 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) @@ -22096,28 +22096,28 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22130,12 +22130,12 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getDuration",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) @@ -22143,31 +22143,31 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:setFrames"); if(!ok) { @@ -22179,12 +22179,12 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setFrames",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) @@ -22192,28 +22192,28 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22226,12 +22226,12 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) @@ -22239,31 +22239,31 @@ int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setLoops'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Animation:setLoops"); if(!ok) { @@ -22275,12 +22275,12 @@ int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setLoops",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setLoops'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) @@ -22288,31 +22288,31 @@ int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setDelayPerUnit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Animation:setDelayPerUnit"); if(!ok) { @@ -22324,12 +22324,12 @@ int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setDelayPerUnit",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setDelayPerUnit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) @@ -22337,31 +22337,31 @@ int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Animation:addSpriteFrameWithFile"); if(!ok) { @@ -22373,12 +22373,12 @@ int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrameWithFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) @@ -22386,28 +22386,28 @@ int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getTotalDelayUnits'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22420,12 +22420,12 @@ int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getTotalDelayUnits",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getTotalDelayUnits'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) @@ -22433,28 +22433,28 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getDelayPerUnit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22467,12 +22467,12 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getDelayPerUnit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getDelayPerUnit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) @@ -22480,28 +22480,28 @@ int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22514,12 +22514,12 @@ int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getRestoreOriginalFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) @@ -22527,34 +22527,34 @@ int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Texture2D* arg0; cocos2d::Rect arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Animation:addSpriteFrameWithTexture"); if(!ok) { @@ -22566,12 +22566,12 @@ int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrameWithTexture",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_create(lua_State* tolua_S) @@ -22581,14 +22581,14 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -22604,7 +22604,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -22623,7 +22623,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -22636,7 +22636,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Animation:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_create'.",&tolua_err); #endif return 0; @@ -22645,17 +22645,17 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Vector arg0; @@ -22704,7 +22704,7 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animation:createWithSpriteFrames",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_createWithSpriteFrames'.",&tolua_err); #endif return 0; @@ -22719,24 +22719,24 @@ int lua_register_cocos2dx_Animation(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animation"); tolua_cclass(tolua_S,"Animation","cc.Animation","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Animation"); - tolua_function(tolua_S,"getLoops",lua_cocos2dx_Animation_getLoops); - tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_Animation_addSpriteFrame); - tolua_function(tolua_S,"setRestoreOriginalFrame",lua_cocos2dx_Animation_setRestoreOriginalFrame); - tolua_function(tolua_S,"clone",lua_cocos2dx_Animation_clone); - tolua_function(tolua_S,"getDuration",lua_cocos2dx_Animation_getDuration); - tolua_function(tolua_S,"setFrames",lua_cocos2dx_Animation_setFrames); - tolua_function(tolua_S,"getFrames",lua_cocos2dx_Animation_getFrames); - tolua_function(tolua_S,"setLoops",lua_cocos2dx_Animation_setLoops); - tolua_function(tolua_S,"setDelayPerUnit",lua_cocos2dx_Animation_setDelayPerUnit); - tolua_function(tolua_S,"addSpriteFrameWithFile",lua_cocos2dx_Animation_addSpriteFrameWithFile); - tolua_function(tolua_S,"getTotalDelayUnits",lua_cocos2dx_Animation_getTotalDelayUnits); - tolua_function(tolua_S,"getDelayPerUnit",lua_cocos2dx_Animation_getDelayPerUnit); - tolua_function(tolua_S,"getRestoreOriginalFrame",lua_cocos2dx_Animation_getRestoreOriginalFrame); - tolua_function(tolua_S,"addSpriteFrameWithTexture",lua_cocos2dx_Animation_addSpriteFrameWithTexture); - tolua_function(tolua_S,"create", lua_cocos2dx_Animation_create); - tolua_function(tolua_S,"createWithSpriteFrames", lua_cocos2dx_Animation_createWithSpriteFrames); + tolua_function(tolua_S,"getLoops",lua_cocos2dx_Animation_getLoops); + tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_Animation_addSpriteFrame); + tolua_function(tolua_S,"setRestoreOriginalFrame",lua_cocos2dx_Animation_setRestoreOriginalFrame); + tolua_function(tolua_S,"clone",lua_cocos2dx_Animation_clone); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_Animation_getDuration); + tolua_function(tolua_S,"setFrames",lua_cocos2dx_Animation_setFrames); + tolua_function(tolua_S,"getFrames",lua_cocos2dx_Animation_getFrames); + tolua_function(tolua_S,"setLoops",lua_cocos2dx_Animation_setLoops); + tolua_function(tolua_S,"setDelayPerUnit",lua_cocos2dx_Animation_setDelayPerUnit); + tolua_function(tolua_S,"addSpriteFrameWithFile",lua_cocos2dx_Animation_addSpriteFrameWithFile); + tolua_function(tolua_S,"getTotalDelayUnits",lua_cocos2dx_Animation_getTotalDelayUnits); + tolua_function(tolua_S,"getDelayPerUnit",lua_cocos2dx_Animation_getDelayPerUnit); + tolua_function(tolua_S,"getRestoreOriginalFrame",lua_cocos2dx_Animation_getRestoreOriginalFrame); + tolua_function(tolua_S,"addSpriteFrameWithTexture",lua_cocos2dx_Animation_addSpriteFrameWithTexture); + tolua_function(tolua_S,"create", lua_cocos2dx_Animation_create); + tolua_function(tolua_S,"createWithSpriteFrames", lua_cocos2dx_Animation_createWithSpriteFrames); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Animation).name(); g_luaType[typeName] = "cc.Animation"; @@ -22749,28 +22749,28 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22783,12 +22783,12 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) @@ -22796,31 +22796,31 @@ int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionInterval:setAmplitudeRate"); if(!ok) { @@ -22832,12 +22832,12 @@ int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) @@ -22845,28 +22845,28 @@ int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_getElapsed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22879,12 +22879,12 @@ int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:getElapsed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_getElapsed'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_ActionInterval_finalize(lua_State* tolua_S) @@ -22897,11 +22897,11 @@ int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInterval"); tolua_cclass(tolua_S,"ActionInterval","cc.ActionInterval","cc.FiniteTimeAction",nullptr); - + tolua_beginmodule(tolua_S,"ActionInterval"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); - tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); + tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionInterval).name(); g_luaType[typeName] = "cc.ActionInterval"; @@ -22919,7 +22919,7 @@ int lua_register_cocos2dx_Sequence(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sequence"); tolua_cclass(tolua_S,"Sequence","cc.Sequence","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Sequence"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sequence).name(); @@ -22933,31 +22933,31 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_setInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::FiniteTimeAction* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0); if(!ok) { @@ -22969,12 +22969,12 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:setInnerAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_setInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) @@ -22982,28 +22982,28 @@ int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -23016,29 +23016,29 @@ int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_getInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Repeat_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::FiniteTimeAction* arg0; @@ -23057,7 +23057,7 @@ int lua_cocos2dx_Repeat_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Repeat:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_create'.",&tolua_err); #endif return 0; @@ -23072,11 +23072,11 @@ int lua_register_cocos2dx_Repeat(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Repeat"); tolua_cclass(tolua_S,"Repeat","cc.Repeat","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Repeat"); - tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); - tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); + tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); + tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Repeat).name(); g_luaType[typeName] = "cc.Repeat"; @@ -23089,31 +23089,31 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_setInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -23125,12 +23125,12 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:setInnerAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_setInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) @@ -23138,28 +23138,28 @@ int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -23172,29 +23172,29 @@ int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_getInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -23211,7 +23211,7 @@ int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RepeatForever:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_create'.",&tolua_err); #endif return 0; @@ -23226,11 +23226,11 @@ int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RepeatForever"); tolua_cclass(tolua_S,"RepeatForever","cc.RepeatForever","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"RepeatForever"); - tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); - tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); + tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); + tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RepeatForever).name(); g_luaType[typeName] = "cc.RepeatForever"; @@ -23248,7 +23248,7 @@ int lua_register_cocos2dx_Spawn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Spawn"); tolua_cclass(tolua_S,"Spawn","cc.Spawn","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Spawn"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Spawn).name(); @@ -23264,14 +23264,14 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RotateTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -23287,7 +23287,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -23306,7 +23306,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23325,7 +23325,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RotateTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_create'.",&tolua_err); #endif return 0; @@ -23340,9 +23340,9 @@ int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateTo"); tolua_cclass(tolua_S,"RotateTo","cc.RotateTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"RotateTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateTo).name(); g_luaType[typeName] = "cc.RotateTo"; @@ -23357,14 +23357,14 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RotateBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -23383,7 +23383,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23399,7 +23399,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23418,7 +23418,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RotateBy:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_create'.",&tolua_err); #endif return 0; @@ -23433,9 +23433,9 @@ int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateBy"); tolua_cclass(tolua_S,"RotateBy","cc.RotateBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"RotateBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateBy).name(); g_luaType[typeName] = "cc.RotateBy"; @@ -23447,17 +23447,17 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MoveBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -23476,7 +23476,7 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MoveBy:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_create'.",&tolua_err); #endif return 0; @@ -23491,9 +23491,9 @@ int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveBy"); tolua_cclass(tolua_S,"MoveBy","cc.MoveBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"MoveBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveBy).name(); g_luaType[typeName] = "cc.MoveBy"; @@ -23505,17 +23505,17 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MoveTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -23534,7 +23534,7 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MoveTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_create'.",&tolua_err); #endif return 0; @@ -23549,9 +23549,9 @@ int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveTo"); tolua_cclass(tolua_S,"MoveTo","cc.MoveTo","cc.MoveBy",nullptr); - + tolua_beginmodule(tolua_S,"MoveTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveTo).name(); g_luaType[typeName] = "cc.MoveTo"; @@ -23563,17 +23563,17 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SkewTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -23594,7 +23594,7 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewTo:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_create'.",&tolua_err); #endif return 0; @@ -23609,9 +23609,9 @@ int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewTo"); tolua_cclass(tolua_S,"SkewTo","cc.SkewTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"SkewTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewTo).name(); g_luaType[typeName] = "cc.SkewTo"; @@ -23623,17 +23623,17 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SkewBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -23654,7 +23654,7 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewBy:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_create'.",&tolua_err); #endif return 0; @@ -23669,9 +23669,9 @@ int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewBy"); tolua_cclass(tolua_S,"SkewBy","cc.SkewBy","cc.SkewTo",nullptr); - + tolua_beginmodule(tolua_S,"SkewBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewBy).name(); g_luaType[typeName] = "cc.SkewBy"; @@ -23683,17 +23683,17 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -23716,7 +23716,7 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_create'.",&tolua_err); #endif return 0; @@ -23731,9 +23731,9 @@ int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpBy"); tolua_cclass(tolua_S,"JumpBy","cc.JumpBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"JumpBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpBy).name(); g_luaType[typeName] = "cc.JumpBy"; @@ -23745,17 +23745,17 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -23778,7 +23778,7 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_create'.",&tolua_err); #endif return 0; @@ -23793,9 +23793,9 @@ int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTo"); tolua_cclass(tolua_S,"JumpTo","cc.JumpTo","cc.JumpBy",nullptr); - + tolua_beginmodule(tolua_S,"JumpTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTo).name(); g_luaType[typeName] = "cc.JumpTo"; @@ -23813,7 +23813,7 @@ int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierBy"); tolua_cclass(tolua_S,"BezierBy","cc.BezierBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"BezierBy"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierBy).name(); @@ -23832,7 +23832,7 @@ int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierTo"); tolua_cclass(tolua_S,"BezierTo","cc.BezierTo","cc.BezierBy",nullptr); - + tolua_beginmodule(tolua_S,"BezierTo"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierTo).name(); @@ -23848,14 +23848,14 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ScaleTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -23874,7 +23874,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23890,7 +23890,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -23915,7 +23915,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ScaleTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_create'.",&tolua_err); #endif return 0; @@ -23930,9 +23930,9 @@ int lua_register_cocos2dx_ScaleTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleTo"); tolua_cclass(tolua_S,"ScaleTo","cc.ScaleTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ScaleTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleTo).name(); g_luaType[typeName] = "cc.ScaleTo"; @@ -23947,14 +23947,14 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ScaleBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -23973,7 +23973,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23989,7 +23989,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -24014,7 +24014,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ScaleBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleBy_create'.",&tolua_err); #endif return 0; @@ -24029,9 +24029,9 @@ int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleBy"); tolua_cclass(tolua_S,"ScaleBy","cc.ScaleBy","cc.ScaleTo",nullptr); - + tolua_beginmodule(tolua_S,"ScaleBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleBy).name(); g_luaType[typeName] = "cc.ScaleBy"; @@ -24043,17 +24043,17 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Blink",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -24072,7 +24072,7 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Blink:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_create'.",&tolua_err); #endif return 0; @@ -24087,9 +24087,9 @@ int lua_register_cocos2dx_Blink(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Blink"); tolua_cclass(tolua_S,"Blink","cc.Blink","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Blink"); - tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Blink).name(); g_luaType[typeName] = "cc.Blink"; @@ -24101,17 +24101,17 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -24130,7 +24130,7 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_create'.",&tolua_err); #endif return 0; @@ -24145,9 +24145,9 @@ int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeTo"); tolua_cclass(tolua_S,"FadeTo","cc.FadeTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"FadeTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeTo).name(); g_luaType[typeName] = "cc.FadeTo"; @@ -24160,31 +24160,31 @@ int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) int argc = 0; cocos2d::FadeIn* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeIn*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeIn_setReverseAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::FadeTo* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0); if(!ok) { @@ -24196,29 +24196,29 @@ int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeIn:setReverseAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_setReverseAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -24235,7 +24235,7 @@ int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_create'.",&tolua_err); #endif return 0; @@ -24250,10 +24250,10 @@ int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeIn"); tolua_cclass(tolua_S,"FadeIn","cc.FadeIn","cc.FadeTo",nullptr); - + tolua_beginmodule(tolua_S,"FadeIn"); - tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); + tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeIn).name(); g_luaType[typeName] = "cc.FadeIn"; @@ -24266,31 +24266,31 @@ int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) int argc = 0; cocos2d::FadeOut* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOut*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOut_setReverseAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::FadeTo* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0); if(!ok) { @@ -24302,29 +24302,29 @@ int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOut:setReverseAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_setReverseAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -24341,7 +24341,7 @@ int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_create'.",&tolua_err); #endif return 0; @@ -24356,10 +24356,10 @@ int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOut"); tolua_cclass(tolua_S,"FadeOut","cc.FadeOut","cc.FadeTo",nullptr); - + tolua_beginmodule(tolua_S,"FadeOut"); - tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); + tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOut).name(); g_luaType[typeName] = "cc.FadeOut"; @@ -24371,17 +24371,17 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TintTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -24404,7 +24404,7 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TintTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_create'.",&tolua_err); #endif return 0; @@ -24419,9 +24419,9 @@ int lua_register_cocos2dx_TintTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintTo"); tolua_cclass(tolua_S,"TintTo","cc.TintTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"TintTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintTo).name(); g_luaType[typeName] = "cc.TintTo"; @@ -24433,17 +24433,17 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TintBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -24466,7 +24466,7 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TintBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_create'.",&tolua_err); #endif return 0; @@ -24481,9 +24481,9 @@ int lua_register_cocos2dx_TintBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintBy"); tolua_cclass(tolua_S,"TintBy","cc.TintBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"TintBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintBy).name(); g_luaType[typeName] = "cc.TintBy"; @@ -24495,17 +24495,17 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DelayTime",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -24522,7 +24522,7 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DelayTime:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DelayTime_create'.",&tolua_err); #endif return 0; @@ -24537,9 +24537,9 @@ int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DelayTime"); tolua_cclass(tolua_S,"DelayTime","cc.DelayTime","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"DelayTime"); - tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); + tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DelayTime).name(); g_luaType[typeName] = "cc.DelayTime"; @@ -24555,7 +24555,7 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif @@ -24586,12 +24586,12 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:getAnimation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_getAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) @@ -24599,31 +24599,31 @@ int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_setAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Animation* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0); if(!ok) { @@ -24635,29 +24635,29 @@ int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:setAnimation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_setAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animate_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Animation* arg0; @@ -24674,7 +24674,7 @@ int lua_cocos2dx_Animate_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animate:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_create'.",&tolua_err); #endif return 0; @@ -24689,11 +24689,11 @@ int lua_register_cocos2dx_Animate(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animate"); tolua_cclass(tolua_S,"Animate","cc.Animate","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Animate"); - tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); - tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); - tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); + tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); + tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); + tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Animate).name(); g_luaType[typeName] = "cc.Animate"; @@ -24709,7 +24709,7 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif @@ -24740,12 +24740,12 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:getForcedTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_getForcedTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) @@ -24753,31 +24753,31 @@ int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) int argc = 0; cocos2d::TargetedAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TargetedAction_setForcedTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -24789,29 +24789,29 @@ int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:setForcedTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_setForcedTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::Node* arg0; @@ -24830,7 +24830,7 @@ int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TargetedAction:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_create'.",&tolua_err); #endif return 0; @@ -24845,11 +24845,11 @@ int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TargetedAction"); tolua_cclass(tolua_S,"TargetedAction","cc.TargetedAction","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"TargetedAction"); - tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); - tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); - tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); + tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); + tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); + tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TargetedAction).name(); g_luaType[typeName] = "cc.TargetedAction"; @@ -24865,7 +24865,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif @@ -24882,15 +24882,15 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionCamera:setEye"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ActionCamera:setEye"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionCamera:setEye"); - + if (!ok) { break; } cobj->setEye(arg0, arg1, arg2); return 0; @@ -24901,7 +24901,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setEye"); - + if (!ok) { break; } cobj->setEye(arg0); return 0; @@ -24910,12 +24910,12 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setEye",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setEye'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) @@ -24923,28 +24923,28 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getEye'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -24957,12 +24957,12 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getEye",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getEye'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) @@ -24970,31 +24970,31 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setUp'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setUp"); if(!ok) { @@ -25006,12 +25006,12 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setUp",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setUp'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) @@ -25019,28 +25019,28 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getCenter'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25053,12 +25053,12 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getCenter",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getCenter'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) @@ -25066,31 +25066,31 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setCenter'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setCenter"); if(!ok) { @@ -25102,12 +25102,12 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setCenter",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setCenter'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) @@ -25115,28 +25115,28 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getUp'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25149,12 +25149,12 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getUp",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getUp'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) @@ -25162,15 +25162,15 @@ int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25186,11 +25186,11 @@ int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:ActionCamera",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_constructor'.",&tolua_err); #endif - + return 0; } @@ -25204,15 +25204,15 @@ int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionCamera"); tolua_cclass(tolua_S,"ActionCamera","cc.ActionCamera","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ActionCamera"); - tolua_function(tolua_S,"new",lua_cocos2dx_ActionCamera_constructor); - tolua_function(tolua_S,"setEye",lua_cocos2dx_ActionCamera_setEye); - tolua_function(tolua_S,"getEye",lua_cocos2dx_ActionCamera_getEye); - tolua_function(tolua_S,"setUp",lua_cocos2dx_ActionCamera_setUp); - tolua_function(tolua_S,"getCenter",lua_cocos2dx_ActionCamera_getCenter); - tolua_function(tolua_S,"setCenter",lua_cocos2dx_ActionCamera_setCenter); - tolua_function(tolua_S,"getUp",lua_cocos2dx_ActionCamera_getUp); + tolua_function(tolua_S,"new",lua_cocos2dx_ActionCamera_constructor); + tolua_function(tolua_S,"setEye",lua_cocos2dx_ActionCamera_setEye); + tolua_function(tolua_S,"getEye",lua_cocos2dx_ActionCamera_getEye); + tolua_function(tolua_S,"setUp",lua_cocos2dx_ActionCamera_setUp); + tolua_function(tolua_S,"getCenter",lua_cocos2dx_ActionCamera_getCenter); + tolua_function(tolua_S,"setCenter",lua_cocos2dx_ActionCamera_setCenter); + tolua_function(tolua_S,"getUp",lua_cocos2dx_ActionCamera_getUp); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionCamera).name(); g_luaType[typeName] = "cc.ActionCamera"; @@ -25224,17 +25224,17 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 7) { double arg0; @@ -25263,7 +25263,7 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.OrbitCamera:create",argc, 7); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_create'.",&tolua_err); #endif return 0; @@ -25278,9 +25278,9 @@ int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.OrbitCamera"); tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); - + tolua_beginmodule(tolua_S,"OrbitCamera"); - tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); + tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::OrbitCamera).name(); g_luaType[typeName] = "cc.OrbitCamera"; @@ -25293,34 +25293,34 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_getActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; const cocos2d::Node* arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:getActionByTag"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -25333,12 +25333,12 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getActionByTag",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_getActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) @@ -25346,34 +25346,34 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; cocos2d::Node* arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeActionByTag"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -25385,12 +25385,12 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeActionByTag",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) @@ -25398,28 +25398,28 @@ int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25431,12 +25431,12 @@ int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) @@ -25444,37 +25444,37 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_addAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Action* arg0; cocos2d::Node* arg1; bool arg2; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); - + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.ActionManager:addAction"); if(!ok) { @@ -25486,12 +25486,12 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:addAction",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_addAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) @@ -25499,31 +25499,31 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_resumeTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25535,12 +25535,12 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:resumeTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_resumeTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) @@ -25548,31 +25548,31 @@ int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionManager:update"); if(!ok) { @@ -25584,12 +25584,12 @@ int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) @@ -25597,31 +25597,31 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_pauseTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25633,12 +25633,12 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:pauseTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_pauseTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolua_S) @@ -25646,31 +25646,31 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { const cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25683,12 +25683,12 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getNumberOfRunningActionsInTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) @@ -25696,31 +25696,31 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25732,12 +25732,12 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActionsFromTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) @@ -25745,31 +25745,31 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_resumeTargets'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.ActionManager:resumeTargets"); if(!ok) { @@ -25781,12 +25781,12 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:resumeTargets",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_resumeTargets'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) @@ -25794,31 +25794,31 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Action* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); if(!ok) { @@ -25830,12 +25830,12 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) @@ -25843,34 +25843,34 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; cocos2d::Node* arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeAllActionsByTag"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -25882,12 +25882,12 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActionsByTag",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) @@ -25895,28 +25895,28 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25929,12 +25929,12 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:pauseAllRunningActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) @@ -25942,15 +25942,15 @@ int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25966,11 +25966,11 @@ int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:ActionManager",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_constructor'.",&tolua_err); #endif - + return 0; } @@ -25984,22 +25984,22 @@ int lua_register_cocos2dx_ActionManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionManager"); tolua_cclass(tolua_S,"ActionManager","cc.ActionManager","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"ActionManager"); - tolua_function(tolua_S,"new",lua_cocos2dx_ActionManager_constructor); - tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_ActionManager_getActionByTag); - tolua_function(tolua_S,"removeActionByTag",lua_cocos2dx_ActionManager_removeActionByTag); - tolua_function(tolua_S,"removeAllActions",lua_cocos2dx_ActionManager_removeAllActions); - tolua_function(tolua_S,"addAction",lua_cocos2dx_ActionManager_addAction); - tolua_function(tolua_S,"resumeTarget",lua_cocos2dx_ActionManager_resumeTarget); - tolua_function(tolua_S,"update",lua_cocos2dx_ActionManager_update); - tolua_function(tolua_S,"pauseTarget",lua_cocos2dx_ActionManager_pauseTarget); - tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget); - tolua_function(tolua_S,"removeAllActionsFromTarget",lua_cocos2dx_ActionManager_removeAllActionsFromTarget); - tolua_function(tolua_S,"resumeTargets",lua_cocos2dx_ActionManager_resumeTargets); - tolua_function(tolua_S,"removeAction",lua_cocos2dx_ActionManager_removeAction); - tolua_function(tolua_S,"removeAllActionsByTag",lua_cocos2dx_ActionManager_removeAllActionsByTag); - tolua_function(tolua_S,"pauseAllRunningActions",lua_cocos2dx_ActionManager_pauseAllRunningActions); + tolua_function(tolua_S,"new",lua_cocos2dx_ActionManager_constructor); + tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_ActionManager_getActionByTag); + tolua_function(tolua_S,"removeActionByTag",lua_cocos2dx_ActionManager_removeActionByTag); + tolua_function(tolua_S,"removeAllActions",lua_cocos2dx_ActionManager_removeAllActions); + tolua_function(tolua_S,"addAction",lua_cocos2dx_ActionManager_addAction); + tolua_function(tolua_S,"resumeTarget",lua_cocos2dx_ActionManager_resumeTarget); + tolua_function(tolua_S,"update",lua_cocos2dx_ActionManager_update); + tolua_function(tolua_S,"pauseTarget",lua_cocos2dx_ActionManager_pauseTarget); + tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget); + tolua_function(tolua_S,"removeAllActionsFromTarget",lua_cocos2dx_ActionManager_removeAllActionsFromTarget); + tolua_function(tolua_S,"resumeTargets",lua_cocos2dx_ActionManager_resumeTargets); + tolua_function(tolua_S,"removeAction",lua_cocos2dx_ActionManager_removeAction); + tolua_function(tolua_S,"removeAllActionsByTag",lua_cocos2dx_ActionManager_removeAllActionsByTag); + tolua_function(tolua_S,"pauseAllRunningActions",lua_cocos2dx_ActionManager_pauseAllRunningActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionManager).name(); g_luaType[typeName] = "cc.ActionManager"; @@ -26012,28 +26012,28 @@ int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::ActionEase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionEase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionEase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionEase_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -26046,12 +26046,12 @@ int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionEase:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionEase_getInnerAction'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_ActionEase_finalize(lua_State* tolua_S) @@ -26064,9 +26064,9 @@ int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionEase"); tolua_cclass(tolua_S,"ActionEase","cc.ActionEase","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ActionEase"); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionEase).name(); g_luaType[typeName] = "cc.ActionEase"; @@ -26079,31 +26079,31 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_setRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseRateAction:setRate"); if(!ok) { @@ -26115,12 +26115,12 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:setRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_setRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) @@ -26128,28 +26128,28 @@ int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_getRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -26162,12 +26162,12 @@ int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:getRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_getRate'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EaseRateAction_finalize(lua_State* tolua_S) @@ -26180,10 +26180,10 @@ int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseRateAction"); tolua_cclass(tolua_S,"EaseRateAction","cc.EaseRateAction","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseRateAction"); - tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); - tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); + tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); + tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseRateAction).name(); g_luaType[typeName] = "cc.EaseRateAction"; @@ -26195,17 +26195,17 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -26224,7 +26224,7 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseIn_create'.",&tolua_err); #endif return 0; @@ -26239,9 +26239,9 @@ int lua_register_cocos2dx_EaseIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseIn"); tolua_cclass(tolua_S,"EaseIn","cc.EaseIn","cc.EaseRateAction",nullptr); - + tolua_beginmodule(tolua_S,"EaseIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseIn).name(); g_luaType[typeName] = "cc.EaseIn"; @@ -26253,17 +26253,17 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -26282,7 +26282,7 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseOut_create'.",&tolua_err); #endif return 0; @@ -26297,9 +26297,9 @@ int lua_register_cocos2dx_EaseOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseOut"); tolua_cclass(tolua_S,"EaseOut","cc.EaseOut","cc.EaseRateAction",nullptr); - + tolua_beginmodule(tolua_S,"EaseOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseOut).name(); g_luaType[typeName] = "cc.EaseOut"; @@ -26311,17 +26311,17 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -26340,7 +26340,7 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseInOut_create'.",&tolua_err); #endif return 0; @@ -26355,9 +26355,9 @@ int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseInOut"); tolua_cclass(tolua_S,"EaseInOut","cc.EaseInOut","cc.EaseRateAction",nullptr); - + tolua_beginmodule(tolua_S,"EaseInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseInOut).name(); g_luaType[typeName] = "cc.EaseInOut"; @@ -26369,17 +26369,17 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26396,7 +26396,7 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialIn_create'.",&tolua_err); #endif return 0; @@ -26411,9 +26411,9 @@ int lua_register_cocos2dx_EaseExponentialIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialIn"); tolua_cclass(tolua_S,"EaseExponentialIn","cc.EaseExponentialIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseExponentialIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialIn).name(); g_luaType[typeName] = "cc.EaseExponentialIn"; @@ -26425,17 +26425,17 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26452,7 +26452,7 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialOut_create'.",&tolua_err); #endif return 0; @@ -26467,9 +26467,9 @@ int lua_register_cocos2dx_EaseExponentialOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialOut"); tolua_cclass(tolua_S,"EaseExponentialOut","cc.EaseExponentialOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseExponentialOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialOut).name(); g_luaType[typeName] = "cc.EaseExponentialOut"; @@ -26481,17 +26481,17 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26508,7 +26508,7 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialInOut_create'.",&tolua_err); #endif return 0; @@ -26523,9 +26523,9 @@ int lua_register_cocos2dx_EaseExponentialInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialInOut"); tolua_cclass(tolua_S,"EaseExponentialInOut","cc.EaseExponentialInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseExponentialInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialInOut).name(); g_luaType[typeName] = "cc.EaseExponentialInOut"; @@ -26537,17 +26537,17 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26564,7 +26564,7 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineIn_create'.",&tolua_err); #endif return 0; @@ -26579,9 +26579,9 @@ int lua_register_cocos2dx_EaseSineIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineIn"); tolua_cclass(tolua_S,"EaseSineIn","cc.EaseSineIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseSineIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineIn).name(); g_luaType[typeName] = "cc.EaseSineIn"; @@ -26593,17 +26593,17 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26620,7 +26620,7 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineOut_create'.",&tolua_err); #endif return 0; @@ -26635,9 +26635,9 @@ int lua_register_cocos2dx_EaseSineOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineOut"); tolua_cclass(tolua_S,"EaseSineOut","cc.EaseSineOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseSineOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineOut).name(); g_luaType[typeName] = "cc.EaseSineOut"; @@ -26649,17 +26649,17 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26676,7 +26676,7 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineInOut_create'.",&tolua_err); #endif return 0; @@ -26691,9 +26691,9 @@ int lua_register_cocos2dx_EaseSineInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineInOut"); tolua_cclass(tolua_S,"EaseSineInOut","cc.EaseSineInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseSineInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineInOut).name(); g_luaType[typeName] = "cc.EaseSineInOut"; @@ -26706,31 +26706,31 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_setPeriod'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseElastic:setPeriod"); if(!ok) { @@ -26742,12 +26742,12 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:setPeriod",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_setPeriod'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) @@ -26755,28 +26755,28 @@ int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_getPeriod'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -26789,12 +26789,12 @@ int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:getPeriod",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_getPeriod'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EaseElastic_finalize(lua_State* tolua_S) @@ -26807,10 +26807,10 @@ int lua_register_cocos2dx_EaseElastic(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElastic"); tolua_cclass(tolua_S,"EaseElastic","cc.EaseElastic","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseElastic"); - tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); - tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); + tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); + tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElastic).name(); g_luaType[typeName] = "cc.EaseElastic"; @@ -26825,14 +26825,14 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -26845,7 +26845,7 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -26864,7 +26864,7 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticIn_create'.",&tolua_err); #endif return 0; @@ -26879,9 +26879,9 @@ int lua_register_cocos2dx_EaseElasticIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticIn"); tolua_cclass(tolua_S,"EaseElasticIn","cc.EaseElasticIn","cc.EaseElastic",nullptr); - + tolua_beginmodule(tolua_S,"EaseElasticIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticIn).name(); g_luaType[typeName] = "cc.EaseElasticIn"; @@ -26896,14 +26896,14 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -26916,7 +26916,7 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -26935,7 +26935,7 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticOut_create'.",&tolua_err); #endif return 0; @@ -26950,9 +26950,9 @@ int lua_register_cocos2dx_EaseElasticOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticOut"); tolua_cclass(tolua_S,"EaseElasticOut","cc.EaseElasticOut","cc.EaseElastic",nullptr); - + tolua_beginmodule(tolua_S,"EaseElasticOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticOut).name(); g_luaType[typeName] = "cc.EaseElasticOut"; @@ -26967,14 +26967,14 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -26987,7 +26987,7 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -27006,7 +27006,7 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticInOut_create'.",&tolua_err); #endif return 0; @@ -27021,9 +27021,9 @@ int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticInOut"); tolua_cclass(tolua_S,"EaseElasticInOut","cc.EaseElasticInOut","cc.EaseElastic",nullptr); - + tolua_beginmodule(tolua_S,"EaseElasticInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticInOut).name(); g_luaType[typeName] = "cc.EaseElasticInOut"; @@ -27041,7 +27041,7 @@ int lua_register_cocos2dx_EaseBounce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounce"); tolua_cclass(tolua_S,"EaseBounce","cc.EaseBounce","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounce"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounce).name(); @@ -27054,17 +27054,17 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27081,7 +27081,7 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceIn_create'.",&tolua_err); #endif return 0; @@ -27096,9 +27096,9 @@ int lua_register_cocos2dx_EaseBounceIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceIn"); tolua_cclass(tolua_S,"EaseBounceIn","cc.EaseBounceIn","cc.EaseBounce",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounceIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceIn).name(); g_luaType[typeName] = "cc.EaseBounceIn"; @@ -27110,17 +27110,17 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27137,7 +27137,7 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceOut_create'.",&tolua_err); #endif return 0; @@ -27152,9 +27152,9 @@ int lua_register_cocos2dx_EaseBounceOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceOut"); tolua_cclass(tolua_S,"EaseBounceOut","cc.EaseBounceOut","cc.EaseBounce",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounceOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceOut).name(); g_luaType[typeName] = "cc.EaseBounceOut"; @@ -27166,17 +27166,17 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27193,7 +27193,7 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceInOut_create'.",&tolua_err); #endif return 0; @@ -27208,9 +27208,9 @@ int lua_register_cocos2dx_EaseBounceInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceInOut"); tolua_cclass(tolua_S,"EaseBounceInOut","cc.EaseBounceInOut","cc.EaseBounce",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounceInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceInOut).name(); g_luaType[typeName] = "cc.EaseBounceInOut"; @@ -27222,17 +27222,17 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27249,7 +27249,7 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackIn_create'.",&tolua_err); #endif return 0; @@ -27264,9 +27264,9 @@ int lua_register_cocos2dx_EaseBackIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackIn"); tolua_cclass(tolua_S,"EaseBackIn","cc.EaseBackIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBackIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackIn).name(); g_luaType[typeName] = "cc.EaseBackIn"; @@ -27278,17 +27278,17 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27305,7 +27305,7 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackOut_create'.",&tolua_err); #endif return 0; @@ -27320,9 +27320,9 @@ int lua_register_cocos2dx_EaseBackOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackOut"); tolua_cclass(tolua_S,"EaseBackOut","cc.EaseBackOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBackOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackOut).name(); g_luaType[typeName] = "cc.EaseBackOut"; @@ -27334,17 +27334,17 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27361,7 +27361,7 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackInOut_create'.",&tolua_err); #endif return 0; @@ -27376,9 +27376,9 @@ int lua_register_cocos2dx_EaseBackInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackInOut"); tolua_cclass(tolua_S,"EaseBackInOut","cc.EaseBackInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBackInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackInOut).name(); g_luaType[typeName] = "cc.EaseBackInOut"; @@ -27391,40 +27391,40 @@ int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) int argc = 0; cocos2d::EaseBezierAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseBezierAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseBezierAction:setBezierParamer"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseBezierAction:setBezierParamer"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.EaseBezierAction:setBezierParamer"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EaseBezierAction:setBezierParamer"); if(!ok) { @@ -27436,29 +27436,29 @@ int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBezierAction:setBezierParamer",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27475,7 +27475,7 @@ int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBezierAction:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_create'.",&tolua_err); #endif return 0; @@ -27490,10 +27490,10 @@ int lua_register_cocos2dx_EaseBezierAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBezierAction"); tolua_cclass(tolua_S,"EaseBezierAction","cc.EaseBezierAction","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBezierAction"); - tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); + tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBezierAction).name(); g_luaType[typeName] = "cc.EaseBezierAction"; @@ -27505,17 +27505,17 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27532,7 +27532,7 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionIn_create'.",&tolua_err); #endif return 0; @@ -27547,9 +27547,9 @@ int lua_register_cocos2dx_EaseQuadraticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionIn"); tolua_cclass(tolua_S,"EaseQuadraticActionIn","cc.EaseQuadraticActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuadraticActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionIn).name(); g_luaType[typeName] = "cc.EaseQuadraticActionIn"; @@ -27561,17 +27561,17 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27588,7 +27588,7 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionOut_create'.",&tolua_err); #endif return 0; @@ -27603,9 +27603,9 @@ int lua_register_cocos2dx_EaseQuadraticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionOut"); tolua_cclass(tolua_S,"EaseQuadraticActionOut","cc.EaseQuadraticActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuadraticActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionOut).name(); g_luaType[typeName] = "cc.EaseQuadraticActionOut"; @@ -27617,17 +27617,17 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27644,7 +27644,7 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionInOut_create'.",&tolua_err); #endif return 0; @@ -27659,9 +27659,9 @@ int lua_register_cocos2dx_EaseQuadraticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionInOut"); tolua_cclass(tolua_S,"EaseQuadraticActionInOut","cc.EaseQuadraticActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuadraticActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuadraticActionInOut"; @@ -27673,17 +27673,17 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27700,7 +27700,7 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionIn_create'.",&tolua_err); #endif return 0; @@ -27715,9 +27715,9 @@ int lua_register_cocos2dx_EaseQuarticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionIn"); tolua_cclass(tolua_S,"EaseQuarticActionIn","cc.EaseQuarticActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuarticActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionIn).name(); g_luaType[typeName] = "cc.EaseQuarticActionIn"; @@ -27729,17 +27729,17 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27756,7 +27756,7 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionOut_create'.",&tolua_err); #endif return 0; @@ -27771,9 +27771,9 @@ int lua_register_cocos2dx_EaseQuarticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionOut"); tolua_cclass(tolua_S,"EaseQuarticActionOut","cc.EaseQuarticActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuarticActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionOut).name(); g_luaType[typeName] = "cc.EaseQuarticActionOut"; @@ -27785,17 +27785,17 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27812,7 +27812,7 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionInOut_create'.",&tolua_err); #endif return 0; @@ -27827,9 +27827,9 @@ int lua_register_cocos2dx_EaseQuarticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionInOut"); tolua_cclass(tolua_S,"EaseQuarticActionInOut","cc.EaseQuarticActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuarticActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuarticActionInOut"; @@ -27841,17 +27841,17 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27868,7 +27868,7 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionIn_create'.",&tolua_err); #endif return 0; @@ -27883,9 +27883,9 @@ int lua_register_cocos2dx_EaseQuinticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionIn"); tolua_cclass(tolua_S,"EaseQuinticActionIn","cc.EaseQuinticActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuinticActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionIn).name(); g_luaType[typeName] = "cc.EaseQuinticActionIn"; @@ -27897,17 +27897,17 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27924,7 +27924,7 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionOut_create'.",&tolua_err); #endif return 0; @@ -27939,9 +27939,9 @@ int lua_register_cocos2dx_EaseQuinticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionOut"); tolua_cclass(tolua_S,"EaseQuinticActionOut","cc.EaseQuinticActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuinticActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionOut).name(); g_luaType[typeName] = "cc.EaseQuinticActionOut"; @@ -27953,17 +27953,17 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27980,7 +27980,7 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionInOut_create'.",&tolua_err); #endif return 0; @@ -27995,9 +27995,9 @@ int lua_register_cocos2dx_EaseQuinticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionInOut"); tolua_cclass(tolua_S,"EaseQuinticActionInOut","cc.EaseQuinticActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuinticActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuinticActionInOut"; @@ -28009,17 +28009,17 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28036,7 +28036,7 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionIn_create'.",&tolua_err); #endif return 0; @@ -28051,9 +28051,9 @@ int lua_register_cocos2dx_EaseCircleActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionIn"); tolua_cclass(tolua_S,"EaseCircleActionIn","cc.EaseCircleActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCircleActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionIn).name(); g_luaType[typeName] = "cc.EaseCircleActionIn"; @@ -28065,17 +28065,17 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28092,7 +28092,7 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionOut_create'.",&tolua_err); #endif return 0; @@ -28107,9 +28107,9 @@ int lua_register_cocos2dx_EaseCircleActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionOut"); tolua_cclass(tolua_S,"EaseCircleActionOut","cc.EaseCircleActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCircleActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionOut).name(); g_luaType[typeName] = "cc.EaseCircleActionOut"; @@ -28121,17 +28121,17 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28148,7 +28148,7 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionInOut_create'.",&tolua_err); #endif return 0; @@ -28163,9 +28163,9 @@ int lua_register_cocos2dx_EaseCircleActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionInOut"); tolua_cclass(tolua_S,"EaseCircleActionInOut","cc.EaseCircleActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCircleActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionInOut).name(); g_luaType[typeName] = "cc.EaseCircleActionInOut"; @@ -28177,17 +28177,17 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28204,7 +28204,7 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionIn_create'.",&tolua_err); #endif return 0; @@ -28219,9 +28219,9 @@ int lua_register_cocos2dx_EaseCubicActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionIn"); tolua_cclass(tolua_S,"EaseCubicActionIn","cc.EaseCubicActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCubicActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionIn).name(); g_luaType[typeName] = "cc.EaseCubicActionIn"; @@ -28233,17 +28233,17 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28260,7 +28260,7 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionOut_create'.",&tolua_err); #endif return 0; @@ -28275,9 +28275,9 @@ int lua_register_cocos2dx_EaseCubicActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionOut"); tolua_cclass(tolua_S,"EaseCubicActionOut","cc.EaseCubicActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCubicActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionOut).name(); g_luaType[typeName] = "cc.EaseCubicActionOut"; @@ -28289,17 +28289,17 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28316,7 +28316,7 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionInOut_create'.",&tolua_err); #endif return 0; @@ -28331,9 +28331,9 @@ int lua_register_cocos2dx_EaseCubicActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionInOut"); tolua_cclass(tolua_S,"EaseCubicActionInOut","cc.EaseCubicActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCubicActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionInOut).name(); g_luaType[typeName] = "cc.EaseCubicActionInOut"; @@ -28351,7 +28351,7 @@ int lua_register_cocos2dx_ActionInstant(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInstant"); tolua_cclass(tolua_S,"ActionInstant","cc.ActionInstant","cc.FiniteTimeAction",nullptr); - + tolua_beginmodule(tolua_S,"ActionInstant"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionInstant).name(); @@ -28364,17 +28364,17 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Show",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28389,7 +28389,7 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Show:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Show_create'.",&tolua_err); #endif return 0; @@ -28404,9 +28404,9 @@ int lua_register_cocos2dx_Show(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Show"); tolua_cclass(tolua_S,"Show","cc.Show","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"Show"); - tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Show).name(); g_luaType[typeName] = "cc.Show"; @@ -28418,17 +28418,17 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Hide",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28443,7 +28443,7 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Hide:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Hide_create'.",&tolua_err); #endif return 0; @@ -28458,9 +28458,9 @@ int lua_register_cocos2dx_Hide(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Hide"); tolua_cclass(tolua_S,"Hide","cc.Hide","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"Hide"); - tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Hide).name(); g_luaType[typeName] = "cc.Hide"; @@ -28472,17 +28472,17 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ToggleVisibility",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28497,7 +28497,7 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ToggleVisibility:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ToggleVisibility_create'.",&tolua_err); #endif return 0; @@ -28512,9 +28512,9 @@ int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ToggleVisibility"); tolua_cclass(tolua_S,"ToggleVisibility","cc.ToggleVisibility","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"ToggleVisibility"); - tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ToggleVisibility).name(); g_luaType[typeName] = "cc.ToggleVisibility"; @@ -28526,17 +28526,17 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RemoveSelf",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28564,7 +28564,7 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RemoveSelf:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_create'.",&tolua_err); #endif return 0; @@ -28579,9 +28579,9 @@ int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RemoveSelf"); tolua_cclass(tolua_S,"RemoveSelf","cc.RemoveSelf","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"RemoveSelf"); - tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); + tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RemoveSelf).name(); g_luaType[typeName] = "cc.RemoveSelf"; @@ -28593,17 +28593,17 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipX",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -28620,7 +28620,7 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_create'.",&tolua_err); #endif return 0; @@ -28635,9 +28635,9 @@ int lua_register_cocos2dx_FlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX"); tolua_cclass(tolua_S,"FlipX","cc.FlipX","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"FlipX"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX).name(); g_luaType[typeName] = "cc.FlipX"; @@ -28649,17 +28649,17 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipY",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -28676,7 +28676,7 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_create'.",&tolua_err); #endif return 0; @@ -28691,9 +28691,9 @@ int lua_register_cocos2dx_FlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY"); tolua_cclass(tolua_S,"FlipY","cc.FlipY","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"FlipY"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY).name(); g_luaType[typeName] = "cc.FlipY"; @@ -28705,17 +28705,17 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Place",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Vec2 arg0; @@ -28732,7 +28732,7 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Place:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_create'.",&tolua_err); #endif return 0; @@ -28747,9 +28747,9 @@ int lua_register_cocos2dx_Place(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Place"); tolua_cclass(tolua_S,"Place","cc.Place","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"Place"); - tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Place).name(); g_luaType[typeName] = "cc.Place"; @@ -28762,28 +28762,28 @@ int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_execute'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -28795,12 +28795,12 @@ int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:execute",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_execute'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) @@ -28808,28 +28808,28 @@ int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_getTargetCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -28842,12 +28842,12 @@ int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:getTargetCallback",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_getTargetCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) @@ -28855,31 +28855,31 @@ int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_setTargetCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Ref* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Ref",&arg0); if(!ok) { @@ -28891,12 +28891,12 @@ int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:setTargetCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_setTargetCallback'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_CallFunc_finalize(lua_State* tolua_S) @@ -28909,11 +28909,11 @@ int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CallFunc"); tolua_cclass(tolua_S,"CallFunc","cc.CallFunc","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"CallFunc"); - tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); - tolua_function(tolua_S,"getTargetCallback",lua_cocos2dx_CallFunc_getTargetCallback); - tolua_function(tolua_S,"setTargetCallback",lua_cocos2dx_CallFunc_setTargetCallback); + tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); + tolua_function(tolua_S,"getTargetCallback",lua_cocos2dx_CallFunc_getTargetCallback); + tolua_function(tolua_S,"setTargetCallback",lua_cocos2dx_CallFunc_setTargetCallback); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CallFunc).name(); g_luaType[typeName] = "cc.CallFunc"; @@ -28926,28 +28926,28 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::GridAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridAction_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -28960,12 +28960,12 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridAction:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridAction_getGrid'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_GridAction_finalize(lua_State* tolua_S) @@ -28978,9 +28978,9 @@ int lua_register_cocos2dx_GridAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridAction"); tolua_cclass(tolua_S,"GridAction","cc.GridAction","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"GridAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridAction).name(); g_luaType[typeName] = "cc.GridAction"; @@ -28993,28 +28993,28 @@ int lua_cocos2dx_Grid3DAction_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::Grid3DAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3DAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Grid3DAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3DAction_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29027,12 +29027,12 @@ int lua_cocos2dx_Grid3DAction_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3DAction:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3DAction_getGrid'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Grid3DAction_finalize(lua_State* tolua_S) @@ -29045,9 +29045,9 @@ int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3DAction"); tolua_cclass(tolua_S,"Grid3DAction","cc.Grid3DAction","cc.GridAction",nullptr); - + tolua_beginmodule(tolua_S,"Grid3DAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_Grid3DAction_getGrid); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_Grid3DAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3DAction).name(); g_luaType[typeName] = "cc.Grid3DAction"; @@ -29060,28 +29060,28 @@ int lua_cocos2dx_TiledGrid3DAction_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::TiledGrid3DAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TiledGrid3DAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TiledGrid3DAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29094,12 +29094,12 @@ int lua_cocos2dx_TiledGrid3DAction_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TiledGrid3DAction:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_TiledGrid3DAction_finalize(lua_State* tolua_S) @@ -29112,9 +29112,9 @@ int lua_register_cocos2dx_TiledGrid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3DAction"); tolua_cclass(tolua_S,"TiledGrid3DAction","cc.TiledGrid3DAction","cc.GridAction",nullptr); - + tolua_beginmodule(tolua_S,"TiledGrid3DAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_TiledGrid3DAction_getGrid); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_TiledGrid3DAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3DAction).name(); g_luaType[typeName] = "cc.TiledGrid3DAction"; @@ -29126,17 +29126,17 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.StopGrid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -29151,7 +29151,7 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.StopGrid:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_StopGrid_create'.",&tolua_err); #endif return 0; @@ -29166,9 +29166,9 @@ int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.StopGrid"); tolua_cclass(tolua_S,"StopGrid","cc.StopGrid","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"StopGrid"); - tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); + tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::StopGrid).name(); g_luaType[typeName] = "cc.StopGrid"; @@ -29180,17 +29180,17 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ReuseGrid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -29207,7 +29207,7 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ReuseGrid:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_create'.",&tolua_err); #endif return 0; @@ -29222,9 +29222,9 @@ int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ReuseGrid"); tolua_cclass(tolua_S,"ReuseGrid","cc.ReuseGrid","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"ReuseGrid"); - tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ReuseGrid).name(); g_luaType[typeName] = "cc.ReuseGrid"; @@ -29237,28 +29237,28 @@ int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29271,12 +29271,12 @@ int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) @@ -29284,31 +29284,31 @@ int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitude"); if(!ok) { @@ -29320,12 +29320,12 @@ int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) @@ -29333,31 +29333,31 @@ int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitudeRate"); if(!ok) { @@ -29369,12 +29369,12 @@ int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) @@ -29382,28 +29382,28 @@ int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29416,29 +29416,29 @@ int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -29461,7 +29461,7 @@ int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_create'.",&tolua_err); #endif return 0; @@ -29476,13 +29476,13 @@ int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves3D"); tolua_cclass(tolua_S,"Waves3D","cc.Waves3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Waves3D"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves3D_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves3D_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_Waves3D_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves3D_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves3D_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_Waves3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Waves3D).name(); g_luaType[typeName] = "cc.Waves3D"; @@ -29494,17 +29494,17 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -29521,7 +29521,7 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX3D:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_create'.",&tolua_err); #endif return 0; @@ -29536,9 +29536,9 @@ int lua_register_cocos2dx_FlipX3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX3D"); tolua_cclass(tolua_S,"FlipX3D","cc.FlipX3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"FlipX3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX3D).name(); g_luaType[typeName] = "cc.FlipX3D"; @@ -29550,17 +29550,17 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipY3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -29577,7 +29577,7 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY3D:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY3D_create'.",&tolua_err); #endif return 0; @@ -29592,9 +29592,9 @@ int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY3D"); tolua_cclass(tolua_S,"FlipY3D","cc.FlipY3D","cc.FlipX3D",nullptr); - + tolua_beginmodule(tolua_S,"FlipY3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY3D).name(); g_luaType[typeName] = "cc.FlipY3D"; @@ -29607,31 +29607,31 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Lens3D:setPosition"); if(!ok) { @@ -29643,12 +29643,12 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) @@ -29656,31 +29656,31 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setConcave'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Lens3D:setConcave"); if(!ok) { @@ -29692,12 +29692,12 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setConcave",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setConcave'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) @@ -29705,31 +29705,31 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setLensEffect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:setLensEffect"); if(!ok) { @@ -29741,12 +29741,12 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setLensEffect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setLensEffect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) @@ -29754,28 +29754,28 @@ int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29788,12 +29788,12 @@ int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:getPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) @@ -29801,28 +29801,28 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_getLensEffect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29835,29 +29835,29 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:getLensEffect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getLensEffect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -29880,7 +29880,7 @@ int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Lens3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_create'.",&tolua_err); #endif return 0; @@ -29895,14 +29895,14 @@ int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Lens3D"); tolua_cclass(tolua_S,"Lens3D","cc.Lens3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Lens3D"); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Lens3D_setPosition); - tolua_function(tolua_S,"setConcave",lua_cocos2dx_Lens3D_setConcave); - tolua_function(tolua_S,"setLensEffect",lua_cocos2dx_Lens3D_setLensEffect); - tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); - tolua_function(tolua_S,"getLensEffect",lua_cocos2dx_Lens3D_getLensEffect); - tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Lens3D_setPosition); + tolua_function(tolua_S,"setConcave",lua_cocos2dx_Lens3D_setConcave); + tolua_function(tolua_S,"setLensEffect",lua_cocos2dx_Lens3D_setLensEffect); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); + tolua_function(tolua_S,"getLensEffect",lua_cocos2dx_Lens3D_getLensEffect); + tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Lens3D).name(); g_luaType[typeName] = "cc.Lens3D"; @@ -29915,31 +29915,31 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:setAmplitudeRate"); if(!ok) { @@ -29951,12 +29951,12 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) @@ -29964,28 +29964,28 @@ int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29998,12 +29998,12 @@ int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) @@ -30011,31 +30011,31 @@ int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:setAmplitude"); if(!ok) { @@ -30047,12 +30047,12 @@ int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) @@ -30060,28 +30060,28 @@ int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30094,12 +30094,12 @@ int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) @@ -30107,31 +30107,31 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Ripple3D:setPosition"); if(!ok) { @@ -30143,12 +30143,12 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) @@ -30156,28 +30156,28 @@ int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30190,29 +30190,29 @@ int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 6) { double arg0; @@ -30239,7 +30239,7 @@ int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Ripple3D:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_create'.",&tolua_err); #endif return 0; @@ -30254,15 +30254,15 @@ int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ripple3D"); tolua_cclass(tolua_S,"Ripple3D","cc.Ripple3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Ripple3D"); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Ripple3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Ripple3D_setAmplitude); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Ripple3D_getAmplitude); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Ripple3D_setPosition); - tolua_function(tolua_S,"getPosition",lua_cocos2dx_Ripple3D_getPosition); - tolua_function(tolua_S,"create", lua_cocos2dx_Ripple3D_create); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Ripple3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Ripple3D_setAmplitude); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Ripple3D_getAmplitude); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Ripple3D_setPosition); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Ripple3D_getPosition); + tolua_function(tolua_S,"create", lua_cocos2dx_Ripple3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Ripple3D).name(); g_luaType[typeName] = "cc.Ripple3D"; @@ -30274,17 +30274,17 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Shaky3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -30307,7 +30307,7 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Shaky3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_create'.",&tolua_err); #endif return 0; @@ -30322,9 +30322,9 @@ int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Shaky3D"); tolua_cclass(tolua_S,"Shaky3D","cc.Shaky3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Shaky3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Shaky3D).name(); g_luaType[typeName] = "cc.Shaky3D"; @@ -30337,28 +30337,28 @@ int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30371,12 +30371,12 @@ int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) @@ -30384,31 +30384,31 @@ int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitude"); if(!ok) { @@ -30420,12 +30420,12 @@ int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) @@ -30433,31 +30433,31 @@ int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitudeRate"); if(!ok) { @@ -30469,12 +30469,12 @@ int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) @@ -30482,28 +30482,28 @@ int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30516,29 +30516,29 @@ int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -30561,7 +30561,7 @@ int lua_cocos2dx_Liquid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Liquid:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_create'.",&tolua_err); #endif return 0; @@ -30576,13 +30576,13 @@ int lua_register_cocos2dx_Liquid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Liquid"); tolua_cclass(tolua_S,"Liquid","cc.Liquid","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Liquid"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Liquid_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Liquid_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Liquid_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Liquid_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_Liquid_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Liquid_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Liquid_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Liquid_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Liquid_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_Liquid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Liquid).name(); g_luaType[typeName] = "cc.Liquid"; @@ -30595,28 +30595,28 @@ int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30629,12 +30629,12 @@ int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) @@ -30642,31 +30642,31 @@ int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitude"); if(!ok) { @@ -30678,12 +30678,12 @@ int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) @@ -30691,31 +30691,31 @@ int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitudeRate"); if(!ok) { @@ -30727,12 +30727,12 @@ int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) @@ -30740,28 +30740,28 @@ int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30774,29 +30774,29 @@ int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 6) { double arg0; @@ -30823,7 +30823,7 @@ int lua_cocos2dx_Waves_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_create'.",&tolua_err); #endif return 0; @@ -30838,13 +30838,13 @@ int lua_register_cocos2dx_Waves(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves"); tolua_cclass(tolua_S,"Waves","cc.Waves","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Waves"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_Waves_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_Waves_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Waves).name(); g_luaType[typeName] = "cc.Waves"; @@ -30857,31 +30857,31 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:setAmplitudeRate"); if(!ok) { @@ -30893,12 +30893,12 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) @@ -30906,28 +30906,28 @@ int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30940,12 +30940,12 @@ int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) @@ -30953,31 +30953,31 @@ int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:setAmplitude"); if(!ok) { @@ -30989,12 +30989,12 @@ int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) @@ -31002,28 +31002,28 @@ int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -31036,12 +31036,12 @@ int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) @@ -31049,31 +31049,31 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Twirl:setPosition"); if(!ok) { @@ -31085,12 +31085,12 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) @@ -31098,28 +31098,28 @@ int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -31132,29 +31132,29 @@ int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 5) { double arg0; @@ -31179,7 +31179,7 @@ int lua_cocos2dx_Twirl_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Twirl:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_create'.",&tolua_err); #endif return 0; @@ -31194,15 +31194,15 @@ int lua_register_cocos2dx_Twirl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Twirl"); tolua_cclass(tolua_S,"Twirl","cc.Twirl","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Twirl"); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Twirl_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Twirl_setAmplitude); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Twirl_getAmplitude); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Twirl_setPosition); - tolua_function(tolua_S,"getPosition",lua_cocos2dx_Twirl_getPosition); - tolua_function(tolua_S,"create", lua_cocos2dx_Twirl_create); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Twirl_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Twirl_setAmplitude); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Twirl_getAmplitude); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Twirl_setPosition); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Twirl_getPosition); + tolua_function(tolua_S,"create", lua_cocos2dx_Twirl_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Twirl).name(); g_luaType[typeName] = "cc.Twirl"; @@ -31215,28 +31215,28 @@ int lua_cocos2dx_PageTurn3D_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::PageTurn3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PageTurn3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::PageTurn3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PageTurn3D_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -31249,29 +31249,29 @@ int lua_cocos2dx_PageTurn3D_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PageTurn3D:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PageTurn3D_getGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.PageTurn3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31290,7 +31290,7 @@ int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PageTurn3D:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PageTurn3D_create'.",&tolua_err); #endif return 0; @@ -31305,10 +31305,10 @@ int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PageTurn3D"); tolua_cclass(tolua_S,"PageTurn3D","cc.PageTurn3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"PageTurn3D"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_PageTurn3D_getGrid); - tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_PageTurn3D_getGrid); + tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PageTurn3D).name(); g_luaType[typeName] = "cc.PageTurn3D"; @@ -31320,17 +31320,17 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31349,7 +31349,7 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_create'.",&tolua_err); #endif return 0; @@ -31364,9 +31364,9 @@ int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTo"); tolua_cclass(tolua_S,"ProgressTo","cc.ProgressTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ProgressTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTo).name(); g_luaType[typeName] = "cc.ProgressTo"; @@ -31378,17 +31378,17 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressFromTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -31409,7 +31409,7 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressFromTo:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_create'.",&tolua_err); #endif return 0; @@ -31424,9 +31424,9 @@ int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressFromTo"); tolua_cclass(tolua_S,"ProgressFromTo","cc.ProgressFromTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ProgressFromTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressFromTo).name(); g_luaType[typeName] = "cc.ProgressFromTo"; @@ -31438,17 +31438,17 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShakyTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -31471,7 +31471,7 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShakyTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_create'.",&tolua_err); #endif return 0; @@ -31486,9 +31486,9 @@ int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShakyTiles3D"); tolua_cclass(tolua_S,"ShakyTiles3D","cc.ShakyTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"ShakyTiles3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShakyTiles3D).name(); g_luaType[typeName] = "cc.ShakyTiles3D"; @@ -31500,17 +31500,17 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShatteredTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -31533,7 +31533,7 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShatteredTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_create'.",&tolua_err); #endif return 0; @@ -31548,9 +31548,9 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShatteredTiles3D"); tolua_cclass(tolua_S,"ShatteredTiles3D","cc.ShatteredTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"ShatteredTiles3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShatteredTiles3D).name(); g_luaType[typeName] = "cc.ShatteredTiles3D"; @@ -31563,31 +31563,31 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) int argc = 0; cocos2d::ShuffleTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_getDelta'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.ShuffleTiles:getDelta"); if(!ok) { @@ -31600,29 +31600,29 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:getDelta",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_getDelta'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -31643,7 +31643,7 @@ int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShuffleTiles:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_create'.",&tolua_err); #endif return 0; @@ -31658,10 +31658,10 @@ int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShuffleTiles"); tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"ShuffleTiles"); - tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); - tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); + tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); + tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShuffleTiles).name(); g_luaType[typeName] = "cc.ShuffleTiles"; @@ -31674,31 +31674,31 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOnTile"); if(!ok) { @@ -31710,12 +31710,12 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:turnOnTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) @@ -31723,31 +31723,31 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOffTile"); if(!ok) { @@ -31759,12 +31759,12 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:turnOffTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) @@ -31772,34 +31772,34 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Vec2 arg0; double arg1; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:transformTile"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutTRTiles:transformTile"); if(!ok) { @@ -31811,12 +31811,12 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:transformTile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) @@ -31824,34 +31824,34 @@ int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Size arg0; double arg1; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:testFunc"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutTRTiles:testFunc"); if(!ok) { @@ -31864,29 +31864,29 @@ int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:testFunc",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31905,7 +31905,7 @@ int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutTRTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_create'.",&tolua_err); #endif return 0; @@ -31920,13 +31920,13 @@ int lua_register_cocos2dx_FadeOutTRTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutTRTiles"); tolua_cclass(tolua_S,"FadeOutTRTiles","cc.FadeOutTRTiles","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutTRTiles"); - tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_FadeOutTRTiles_turnOnTile); - tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_FadeOutTRTiles_turnOffTile); - tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutTRTiles_transformTile); - tolua_function(tolua_S,"testFunc",lua_cocos2dx_FadeOutTRTiles_testFunc); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutTRTiles_create); + tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_FadeOutTRTiles_turnOnTile); + tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_FadeOutTRTiles_turnOffTile); + tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutTRTiles_transformTile); + tolua_function(tolua_S,"testFunc",lua_cocos2dx_FadeOutTRTiles_testFunc); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutTRTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutTRTiles).name(); g_luaType[typeName] = "cc.FadeOutTRTiles"; @@ -31938,17 +31938,17 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutBLTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31967,7 +31967,7 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutBLTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutBLTiles_create'.",&tolua_err); #endif return 0; @@ -31982,9 +31982,9 @@ int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutBLTiles"); tolua_cclass(tolua_S,"FadeOutBLTiles","cc.FadeOutBLTiles","cc.FadeOutTRTiles",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutBLTiles"); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutBLTiles).name(); g_luaType[typeName] = "cc.FadeOutBLTiles"; @@ -31997,34 +31997,34 @@ int lua_cocos2dx_FadeOutUpTiles_transformTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutUpTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutUpTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutUpTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Vec2 arg0; double arg1; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutUpTiles:transformTile"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutUpTiles:transformTile"); if(!ok) { @@ -32036,29 +32036,29 @@ int lua_cocos2dx_FadeOutUpTiles_transformTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutUpTiles:transformTile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutUpTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32077,7 +32077,7 @@ int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutUpTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_create'.",&tolua_err); #endif return 0; @@ -32092,10 +32092,10 @@ int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutUpTiles"); tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutUpTiles"); - tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutUpTiles_transformTile); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); + tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutUpTiles_transformTile); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutUpTiles).name(); g_luaType[typeName] = "cc.FadeOutUpTiles"; @@ -32107,17 +32107,17 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutDownTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32136,7 +32136,7 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutDownTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutDownTiles_create'.",&tolua_err); #endif return 0; @@ -32151,9 +32151,9 @@ int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutDownTiles"); tolua_cclass(tolua_S,"FadeOutDownTiles","cc.FadeOutDownTiles","cc.FadeOutUpTiles",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutDownTiles"); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutDownTiles).name(); g_luaType[typeName] = "cc.FadeOutDownTiles"; @@ -32166,31 +32166,31 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOnTile"); if(!ok) { @@ -32202,12 +32202,12 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:turnOnTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) @@ -32215,31 +32215,31 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOffTile"); if(!ok) { @@ -32251,12 +32251,12 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:turnOffTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) @@ -32266,14 +32266,14 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -32292,7 +32292,7 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -32311,7 +32311,7 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TurnOffTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_create'.",&tolua_err); #endif return 0; @@ -32326,11 +32326,11 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TurnOffTiles"); tolua_cclass(tolua_S,"TurnOffTiles","cc.TurnOffTiles","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"TurnOffTiles"); - tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); - tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); - tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); + tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); + tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); + tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TurnOffTiles).name(); g_luaType[typeName] = "cc.TurnOffTiles"; @@ -32343,28 +32343,28 @@ int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32377,12 +32377,12 @@ int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) @@ -32390,31 +32390,31 @@ int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitude"); if(!ok) { @@ -32426,12 +32426,12 @@ int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) @@ -32439,31 +32439,31 @@ int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitudeRate"); if(!ok) { @@ -32475,12 +32475,12 @@ int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) @@ -32488,28 +32488,28 @@ int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32522,29 +32522,29 @@ int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -32567,7 +32567,7 @@ int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.WavesTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_create'.",&tolua_err); #endif return 0; @@ -32582,13 +32582,13 @@ int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.WavesTiles3D"); tolua_cclass(tolua_S,"WavesTiles3D","cc.WavesTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"WavesTiles3D"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_WavesTiles3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_WavesTiles3D_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_WavesTiles3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_WavesTiles3D_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_WavesTiles3D_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_WavesTiles3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_WavesTiles3D_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_WavesTiles3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_WavesTiles3D_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_WavesTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::WavesTiles3D).name(); g_luaType[typeName] = "cc.WavesTiles3D"; @@ -32601,28 +32601,28 @@ int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32635,12 +32635,12 @@ int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) @@ -32648,31 +32648,31 @@ int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitude"); if(!ok) { @@ -32684,12 +32684,12 @@ int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) @@ -32697,31 +32697,31 @@ int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitudeRate"); if(!ok) { @@ -32733,12 +32733,12 @@ int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) @@ -32746,28 +32746,28 @@ int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32780,29 +32780,29 @@ int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -32825,7 +32825,7 @@ int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_create'.",&tolua_err); #endif return 0; @@ -32840,13 +32840,13 @@ int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTiles3D"); tolua_cclass(tolua_S,"JumpTiles3D","cc.JumpTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"JumpTiles3D"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_JumpTiles3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_JumpTiles3D_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_JumpTiles3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_JumpTiles3D_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_JumpTiles3D_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_JumpTiles3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_JumpTiles3D_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_JumpTiles3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_JumpTiles3D_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_JumpTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTiles3D).name(); g_luaType[typeName] = "cc.JumpTiles3D"; @@ -32858,17 +32858,17 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SplitRows",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32887,7 +32887,7 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitRows:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_create'.",&tolua_err); #endif return 0; @@ -32902,9 +32902,9 @@ int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitRows"); tolua_cclass(tolua_S,"SplitRows","cc.SplitRows","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"SplitRows"); - tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitRows).name(); g_luaType[typeName] = "cc.SplitRows"; @@ -32916,17 +32916,17 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32945,7 +32945,7 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitCols:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_create'.",&tolua_err); #endif return 0; @@ -32960,9 +32960,9 @@ int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitCols"); tolua_cclass(tolua_S,"SplitCols","cc.SplitCols","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"SplitCols"); - tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitCols).name(); g_luaType[typeName] = "cc.SplitCols"; @@ -32974,17 +32974,17 @@ int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ActionTween",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -33007,7 +33007,7 @@ int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ActionTween:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionTween_create'.",&tolua_err); #endif return 0; @@ -33022,9 +33022,9 @@ int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionTween"); tolua_cclass(tolua_S,"ActionTween","cc.ActionTween","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ActionTween"); - tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionTween).name(); g_luaType[typeName] = "cc.ActionTween"; @@ -33037,28 +33037,28 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_getPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33071,12 +33071,12 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:getPoints",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_getPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) @@ -33084,31 +33084,31 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.CardinalSplineTo:updatePosition"); if(!ok) { @@ -33120,12 +33120,12 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:updatePosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) @@ -33133,37 +33133,37 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; cocos2d::PointArray* arg1; double arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CardinalSplineTo:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.CardinalSplineTo:initWithDuration"); if(!ok) { @@ -33176,12 +33176,12 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:initWithDuration",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) @@ -33189,15 +33189,15 @@ int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33213,11 +33213,11 @@ int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:CardinalSplineTo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_constructor'.",&tolua_err); #endif - + return 0; } @@ -33231,12 +33231,12 @@ int lua_register_cocos2dx_CardinalSplineTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineTo"); tolua_cclass(tolua_S,"CardinalSplineTo","cc.CardinalSplineTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"CardinalSplineTo"); - tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineTo_constructor); - tolua_function(tolua_S,"getPoints",lua_cocos2dx_CardinalSplineTo_getPoints); - tolua_function(tolua_S,"updatePosition",lua_cocos2dx_CardinalSplineTo_updatePosition); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CardinalSplineTo_initWithDuration); + tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineTo_constructor); + tolua_function(tolua_S,"getPoints",lua_cocos2dx_CardinalSplineTo_getPoints); + tolua_function(tolua_S,"updatePosition",lua_cocos2dx_CardinalSplineTo_updatePosition); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CardinalSplineTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CardinalSplineTo).name(); g_luaType[typeName] = "cc.CardinalSplineTo"; @@ -33249,15 +33249,15 @@ int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineBy* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33273,11 +33273,11 @@ int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineBy:CardinalSplineBy",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineBy_constructor'.",&tolua_err); #endif - + return 0; } @@ -33291,9 +33291,9 @@ int lua_register_cocos2dx_CardinalSplineBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineBy"); tolua_cclass(tolua_S,"CardinalSplineBy","cc.CardinalSplineBy","cc.CardinalSplineTo",nullptr); - + tolua_beginmodule(tolua_S,"CardinalSplineBy"); - tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); + tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CardinalSplineBy).name(); g_luaType[typeName] = "cc.CardinalSplineBy"; @@ -33306,34 +33306,34 @@ int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::CatmullRomTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CatmullRomTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; cocos2d::PointArray* arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomTo:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1); if(!ok) { @@ -33346,12 +33346,12 @@ int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CatmullRomTo:initWithDuration",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_CatmullRomTo_finalize(lua_State* tolua_S) @@ -33364,9 +33364,9 @@ int lua_register_cocos2dx_CatmullRomTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomTo"); tolua_cclass(tolua_S,"CatmullRomTo","cc.CatmullRomTo","cc.CardinalSplineTo",nullptr); - + tolua_beginmodule(tolua_S,"CatmullRomTo"); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CatmullRomTo).name(); g_luaType[typeName] = "cc.CatmullRomTo"; @@ -33379,34 +33379,34 @@ int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::CatmullRomBy* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomBy",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CatmullRomBy*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; cocos2d::PointArray* arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomBy:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1); if(!ok) { @@ -33419,12 +33419,12 @@ int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CatmullRomBy:initWithDuration",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_CatmullRomBy_finalize(lua_State* tolua_S) @@ -33437,9 +33437,9 @@ int lua_register_cocos2dx_CatmullRomBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomBy"); tolua_cclass(tolua_S,"CatmullRomBy","cc.CatmullRomBy","cc.CardinalSplineBy",nullptr); - + tolua_beginmodule(tolua_S,"CatmullRomBy"); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CatmullRomBy).name(); g_luaType[typeName] = "cc.CatmullRomBy"; @@ -33455,7 +33455,7 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -33472,11 +33472,11 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:addProtectedChild"); - + if (!ok) { break; } cobj->addProtectedChild(arg0, arg1); return 0; @@ -33487,7 +33487,7 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } cobj->addProtectedChild(arg0); return 0; @@ -33498,15 +33498,15 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:addProtectedChild"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ProtectedNode:addProtectedChild"); - + if (!ok) { break; } cobj->addProtectedChild(arg0, arg1, arg2); return 0; @@ -33515,12 +33515,12 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:addProtectedChild",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_addProtectedChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) @@ -33528,28 +33528,28 @@ int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33561,12 +33561,12 @@ int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:disableCascadeColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) @@ -33574,31 +33574,31 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:removeProtectedChildByTag"); if(!ok) { @@ -33608,13 +33608,13 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) cobj->removeProtectedChildByTag(arg0); return 0; } - if (argc == 2) + if (argc == 2) { int arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:removeProtectedChildByTag"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChildByTag"); if(!ok) { @@ -33626,12 +33626,12 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeProtectedChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) @@ -33639,34 +33639,34 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:reorderProtectedChild"); if(!ok) { @@ -33678,12 +33678,12 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:reorderProtectedChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* tolua_S) @@ -33691,31 +33691,31 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProtectedNode:removeAllProtectedChildrenWithCleanup"); if(!ok) { @@ -33727,12 +33727,12 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeAllProtectedChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) @@ -33740,28 +33740,28 @@ int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33773,12 +33773,12 @@ int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:disableCascadeOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) @@ -33786,28 +33786,28 @@ int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33819,12 +33819,12 @@ int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:sortAllProtectedChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) @@ -33832,31 +33832,31 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:getProtectedChildByTag"); if(!ok) { @@ -33869,12 +33869,12 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:getProtectedChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) @@ -33882,31 +33882,31 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -33916,13 +33916,13 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) cobj->removeProtectedChild(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChild"); if(!ok) { @@ -33934,12 +33934,12 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeProtectedChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) @@ -33947,28 +33947,28 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33980,29 +33980,29 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeAllProtectedChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -34017,7 +34017,7 @@ int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProtectedNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_create'.",&tolua_err); #endif return 0; @@ -34032,19 +34032,19 @@ int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProtectedNode"); tolua_cclass(tolua_S,"ProtectedNode","cc.ProtectedNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ProtectedNode"); - tolua_function(tolua_S,"addProtectedChild",lua_cocos2dx_ProtectedNode_addProtectedChild); - tolua_function(tolua_S,"disableCascadeColor",lua_cocos2dx_ProtectedNode_disableCascadeColor); - tolua_function(tolua_S,"removeProtectedChildByTag",lua_cocos2dx_ProtectedNode_removeProtectedChildByTag); - tolua_function(tolua_S,"reorderProtectedChild",lua_cocos2dx_ProtectedNode_reorderProtectedChild); - tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup); - tolua_function(tolua_S,"disableCascadeOpacity",lua_cocos2dx_ProtectedNode_disableCascadeOpacity); - tolua_function(tolua_S,"sortAllProtectedChildren",lua_cocos2dx_ProtectedNode_sortAllProtectedChildren); - tolua_function(tolua_S,"getProtectedChildByTag",lua_cocos2dx_ProtectedNode_getProtectedChildByTag); - tolua_function(tolua_S,"removeProtectedChild",lua_cocos2dx_ProtectedNode_removeProtectedChild); - tolua_function(tolua_S,"removeAllProtectedChildren",lua_cocos2dx_ProtectedNode_removeAllProtectedChildren); - tolua_function(tolua_S,"create", lua_cocos2dx_ProtectedNode_create); + tolua_function(tolua_S,"addProtectedChild",lua_cocos2dx_ProtectedNode_addProtectedChild); + tolua_function(tolua_S,"disableCascadeColor",lua_cocos2dx_ProtectedNode_disableCascadeColor); + tolua_function(tolua_S,"removeProtectedChildByTag",lua_cocos2dx_ProtectedNode_removeProtectedChildByTag); + tolua_function(tolua_S,"reorderProtectedChild",lua_cocos2dx_ProtectedNode_reorderProtectedChild); + tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup); + tolua_function(tolua_S,"disableCascadeOpacity",lua_cocos2dx_ProtectedNode_disableCascadeOpacity); + tolua_function(tolua_S,"sortAllProtectedChildren",lua_cocos2dx_ProtectedNode_sortAllProtectedChildren); + tolua_function(tolua_S,"getProtectedChildByTag",lua_cocos2dx_ProtectedNode_getProtectedChildByTag); + tolua_function(tolua_S,"removeProtectedChild",lua_cocos2dx_ProtectedNode_removeProtectedChild); + tolua_function(tolua_S,"removeAllProtectedChildren",lua_cocos2dx_ProtectedNode_removeAllProtectedChildren); + tolua_function(tolua_S,"create", lua_cocos2dx_ProtectedNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProtectedNode).name(); g_luaType[typeName] = "cc.ProtectedNode"; @@ -34060,7 +34060,7 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34077,11 +34077,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } unsigned int arg1; ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34092,11 +34092,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34107,11 +34107,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34122,11 +34122,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } unsigned int arg1; ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34135,12 +34135,12 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformTexture",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) @@ -34151,7 +34151,7 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34168,11 +34168,11 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cobj->setUniformMat4(arg0, arg1); return 0; @@ -34183,11 +34183,11 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cobj->setUniformMat4(arg0, arg1); return 0; @@ -34196,12 +34196,12 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformMat4",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformMat4'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) @@ -34209,28 +34209,28 @@ int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyUniforms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34242,12 +34242,12 @@ int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyUniforms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyUniforms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) @@ -34255,31 +34255,31 @@ int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Mat4 arg0; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgramState:applyGLProgram"); if(!ok) { @@ -34291,12 +34291,12 @@ int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) @@ -34304,28 +34304,28 @@ int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getUniformCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34338,12 +34338,12 @@ int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getUniformCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getUniformCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) @@ -34351,28 +34351,28 @@ int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyAttributes'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34382,10 +34382,10 @@ int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) cobj->applyAttributes(); return 0; } - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLProgramState:applyAttributes"); if(!ok) { @@ -34397,12 +34397,12 @@ int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyAttributes",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyAttributes'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) @@ -34413,7 +34413,7 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34430,11 +34430,11 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } cobj->setUniformFloat(arg0, arg1); return 0; @@ -34445,11 +34445,11 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } cobj->setUniformFloat(arg0, arg1); return 0; @@ -34458,12 +34458,12 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformFloat",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformFloat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) @@ -34474,7 +34474,7 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34491,11 +34491,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cobj->setUniformVec3(arg0, arg1); return 0; @@ -34506,11 +34506,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cobj->setUniformVec3(arg0, arg1); return 0; @@ -34519,12 +34519,12 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec3",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec3'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) @@ -34535,7 +34535,7 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34552,11 +34552,11 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } cobj->setUniformInt(arg0, arg1); return 0; @@ -34567,11 +34567,11 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } cobj->setUniformInt(arg0, arg1); return 0; @@ -34580,12 +34580,12 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformInt",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformInt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) @@ -34593,28 +34593,28 @@ int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34627,12 +34627,12 @@ int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getVertexAttribCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) @@ -34643,7 +34643,7 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34660,11 +34660,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cocos2d::Vec4 arg1; ok &= luaval_to_vec4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cobj->setUniformVec4(arg0, arg1); return 0; @@ -34675,11 +34675,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cocos2d::Vec4 arg1; ok &= luaval_to_vec4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cobj->setUniformVec4(arg0, arg1); return 0; @@ -34688,12 +34688,12 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec4",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec4'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) @@ -34701,31 +34701,31 @@ int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgram* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); if(!ok) { @@ -34737,12 +34737,12 @@ int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) @@ -34753,7 +34753,7 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34770,11 +34770,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cobj->setUniformVec2(arg0, arg1); return 0; @@ -34785,11 +34785,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cobj->setUniformVec2(arg0, arg1); return 0; @@ -34798,12 +34798,12 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec2",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec2'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) @@ -34811,28 +34811,28 @@ int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34845,12 +34845,12 @@ int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getVertexAttribsFlags",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) @@ -34858,31 +34858,31 @@ int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_apply'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Mat4 arg0; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgramState:apply"); if(!ok) { @@ -34894,12 +34894,12 @@ int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:apply",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_apply'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) @@ -34907,28 +34907,28 @@ int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34941,29 +34941,29 @@ int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getGLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::GLProgram* arg0; @@ -34980,7 +34980,7 @@ int lua_cocos2dx_GLProgramState_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_create'.",&tolua_err); #endif return 0; @@ -34989,17 +34989,17 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -35016,7 +35016,7 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:getOrCreateWithGLProgramName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName'.",&tolua_err); #endif return 0; @@ -35025,17 +35025,17 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::GLProgram* arg0; @@ -35052,7 +35052,7 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:getOrCreateWithGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram'.",&tolua_err); #endif return 0; @@ -35067,27 +35067,27 @@ int lua_register_cocos2dx_GLProgramState(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramState"); tolua_cclass(tolua_S,"GLProgramState","cc.GLProgramState","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLProgramState"); - tolua_function(tolua_S,"setUniformTexture",lua_cocos2dx_GLProgramState_setUniformTexture); - tolua_function(tolua_S,"setUniformMat4",lua_cocos2dx_GLProgramState_setUniformMat4); - tolua_function(tolua_S,"applyUniforms",lua_cocos2dx_GLProgramState_applyUniforms); - tolua_function(tolua_S,"applyGLProgram",lua_cocos2dx_GLProgramState_applyGLProgram); - tolua_function(tolua_S,"getUniformCount",lua_cocos2dx_GLProgramState_getUniformCount); - tolua_function(tolua_S,"applyAttributes",lua_cocos2dx_GLProgramState_applyAttributes); - tolua_function(tolua_S,"setUniformFloat",lua_cocos2dx_GLProgramState_setUniformFloat); - tolua_function(tolua_S,"setUniformVec3",lua_cocos2dx_GLProgramState_setUniformVec3); - tolua_function(tolua_S,"setUniformInt",lua_cocos2dx_GLProgramState_setUniformInt); - tolua_function(tolua_S,"getVertexAttribCount",lua_cocos2dx_GLProgramState_getVertexAttribCount); - tolua_function(tolua_S,"setUniformVec4",lua_cocos2dx_GLProgramState_setUniformVec4); - tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_GLProgramState_setGLProgram); - tolua_function(tolua_S,"setUniformVec2",lua_cocos2dx_GLProgramState_setUniformVec2); - tolua_function(tolua_S,"getVertexAttribsFlags",lua_cocos2dx_GLProgramState_getVertexAttribsFlags); - tolua_function(tolua_S,"apply",lua_cocos2dx_GLProgramState_apply); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramState_getGLProgram); - tolua_function(tolua_S,"create", lua_cocos2dx_GLProgramState_create); - tolua_function(tolua_S,"getOrCreateWithGLProgramName", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName); - tolua_function(tolua_S,"getOrCreateWithGLProgram", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram); + tolua_function(tolua_S,"setUniformTexture",lua_cocos2dx_GLProgramState_setUniformTexture); + tolua_function(tolua_S,"setUniformMat4",lua_cocos2dx_GLProgramState_setUniformMat4); + tolua_function(tolua_S,"applyUniforms",lua_cocos2dx_GLProgramState_applyUniforms); + tolua_function(tolua_S,"applyGLProgram",lua_cocos2dx_GLProgramState_applyGLProgram); + tolua_function(tolua_S,"getUniformCount",lua_cocos2dx_GLProgramState_getUniformCount); + tolua_function(tolua_S,"applyAttributes",lua_cocos2dx_GLProgramState_applyAttributes); + tolua_function(tolua_S,"setUniformFloat",lua_cocos2dx_GLProgramState_setUniformFloat); + tolua_function(tolua_S,"setUniformVec3",lua_cocos2dx_GLProgramState_setUniformVec3); + tolua_function(tolua_S,"setUniformInt",lua_cocos2dx_GLProgramState_setUniformInt); + tolua_function(tolua_S,"getVertexAttribCount",lua_cocos2dx_GLProgramState_getVertexAttribCount); + tolua_function(tolua_S,"setUniformVec4",lua_cocos2dx_GLProgramState_setUniformVec4); + tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_GLProgramState_setGLProgram); + tolua_function(tolua_S,"setUniformVec2",lua_cocos2dx_GLProgramState_setUniformVec2); + tolua_function(tolua_S,"getVertexAttribsFlags",lua_cocos2dx_GLProgramState_getVertexAttribsFlags); + tolua_function(tolua_S,"apply",lua_cocos2dx_GLProgramState_apply); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramState_getGLProgram); + tolua_function(tolua_S,"create", lua_cocos2dx_GLProgramState_create); + tolua_function(tolua_S,"getOrCreateWithGLProgramName", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName); + tolua_function(tolua_S,"getOrCreateWithGLProgram", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgramState).name(); g_luaType[typeName] = "cc.GLProgramState"; @@ -35100,28 +35100,28 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35133,12 +35133,12 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:updateAtlasValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) @@ -35146,28 +35146,28 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35180,12 +35180,12 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) @@ -35193,31 +35193,31 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -35229,12 +35229,12 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) @@ -35242,28 +35242,28 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35276,12 +35276,12 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) @@ -35289,28 +35289,28 @@ int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35323,12 +35323,12 @@ int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getQuadsToDraw",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) @@ -35336,31 +35336,31 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -35372,12 +35372,12 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) @@ -35385,31 +35385,31 @@ int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { ssize_t arg0; - + ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.AtlasNode:setQuadsToDraw"); if(!ok) { @@ -35421,29 +35421,29 @@ int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setQuadsToDraw",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { std::string arg0; @@ -35466,7 +35466,7 @@ int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AtlasNode:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_create'.",&tolua_err); #endif return 0; @@ -35481,16 +35481,16 @@ int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AtlasNode"); tolua_cclass(tolua_S,"AtlasNode","cc.AtlasNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"AtlasNode"); - tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_AtlasNode_getTexture); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_AtlasNode_setTextureAtlas); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_AtlasNode_getTextureAtlas); - tolua_function(tolua_S,"getQuadsToDraw",lua_cocos2dx_AtlasNode_getQuadsToDraw); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_AtlasNode_setTexture); - tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); - tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); + tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_AtlasNode_getTexture); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_AtlasNode_setTextureAtlas); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_AtlasNode_getTextureAtlas); + tolua_function(tolua_S,"getQuadsToDraw",lua_cocos2dx_AtlasNode_getQuadsToDraw); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_AtlasNode_setTexture); + tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); + tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AtlasNode).name(); g_luaType[typeName] = "cc.AtlasNode"; @@ -35503,37 +35503,37 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawLine'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawLine"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawLine"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawLine"); if(!ok) { @@ -35545,12 +35545,12 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawLine",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawLine'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) @@ -35561,7 +35561,7 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -35578,23 +35578,23 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) if (argc == 5) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Color4F arg4; ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cobj->drawRect(arg0, arg1, arg2, arg3, arg4); return 0; @@ -35605,15 +35605,15 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) if (argc == 3) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Color4F arg2; ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cobj->drawRect(arg0, arg1, arg2); return 0; @@ -35622,12 +35622,12 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawRect",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) @@ -35638,7 +35638,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -35655,23 +35655,23 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) if (argc == 5) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cocos2d::Color4F arg4; ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4); return 0; @@ -35682,31 +35682,31 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) if (argc == 7) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cocos2d::Color4F arg6; ok &=luaval_to_color4f(tolua_S, 8, &arg6, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6); return 0; @@ -35715,12 +35715,12 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSolidCircle",argc, 7); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSolidCircle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) @@ -35728,34 +35728,34 @@ int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDrawGLPoint"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDrawGLPoint"); if(!ok) { @@ -35767,12 +35767,12 @@ int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDrawGLPoint",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) @@ -35780,37 +35780,37 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawDot'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; double arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawDot"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawDot"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawDot"); if(!ok) { @@ -35822,12 +35822,12 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawDot",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawDot'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) @@ -35835,40 +35835,40 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSegment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; double arg2; cocos2d::Color4F arg3; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSegment"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawSegment"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSegment"); - + ok &=luaval_to_color4f(tolua_S, 5, &arg3, "cc.DrawNode:drawSegment"); if(!ok) { @@ -35880,12 +35880,12 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSegment",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSegment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) @@ -35893,34 +35893,34 @@ int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDraw"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDraw"); if(!ok) { @@ -35932,12 +35932,12 @@ int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDraw",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) @@ -35948,7 +35948,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -35965,27 +35965,27 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) if (argc == 6) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cocos2d::Color4F arg5; ok &=luaval_to_color4f(tolua_S, 7, &arg5, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cobj->drawCircle(arg0, arg1, arg2, arg3, arg4, arg5); return 0; @@ -35996,35 +35996,35 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) if (argc == 8) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg6; ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cocos2d::Color4F arg7; ok &=luaval_to_color4f(tolua_S, 9, &arg7, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cobj->drawCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); return 0; @@ -36033,12 +36033,12 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawCircle",argc, 8); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawCircle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) @@ -36046,43 +36046,43 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawQuadBezier'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 5) + if (argc == 5) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; unsigned int arg3; cocos2d::Color4F arg4; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawQuadBezier"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawQuadBezier"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawQuadBezier"); - + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawQuadBezier"); - + ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawQuadBezier"); if(!ok) { @@ -36094,12 +36094,12 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawQuadBezier",argc, 5); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawQuadBezier'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) @@ -36107,34 +36107,34 @@ int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDrawGLLine'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDrawGLLine"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDrawGLLine"); if(!ok) { @@ -36146,12 +36146,12 @@ int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDrawGLLine",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDrawGLLine'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) @@ -36159,40 +36159,40 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawTriangle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; cocos2d::Color4F arg3; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawTriangle"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawTriangle"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawTriangle"); - + ok &=luaval_to_color4f(tolua_S, 5, &arg3, "cc.DrawNode:drawTriangle"); if(!ok) { @@ -36204,12 +36204,12 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawTriangle",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawTriangle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) @@ -36217,28 +36217,28 @@ int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_clear'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -36250,12 +36250,12 @@ int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:clear",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_clear'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) @@ -36263,37 +36263,37 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSolidRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidRect"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawSolidRect"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawSolidRect"); if(!ok) { @@ -36305,12 +36305,12 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSolidRect",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSolidRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) @@ -36318,37 +36318,37 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; double arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawPoint"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawPoint"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawPoint"); if(!ok) { @@ -36360,12 +36360,12 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawPoint",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) @@ -36373,28 +36373,28 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawCubicBezier'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 6) + if (argc == 6) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; @@ -36402,17 +36402,17 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) cocos2d::Vec2 arg3; unsigned int arg4; cocos2d::Color4F arg5; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_uint32(tolua_S, 6,&arg4, "cc.DrawNode:drawCubicBezier"); - + ok &=luaval_to_color4f(tolua_S, 7, &arg5, "cc.DrawNode:drawCubicBezier"); if(!ok) { @@ -36424,29 +36424,29 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawCubicBezier",argc, 6); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawCubicBezier'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -36461,7 +36461,7 @@ int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DrawNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_create'.",&tolua_err); #endif return 0; @@ -36476,24 +36476,24 @@ int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DrawNode"); tolua_cclass(tolua_S,"DrawNode","cc.DrawNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"DrawNode"); - tolua_function(tolua_S,"drawLine",lua_cocos2dx_DrawNode_drawLine); - tolua_function(tolua_S,"drawRect",lua_cocos2dx_DrawNode_drawRect); - tolua_function(tolua_S,"drawSolidCircle",lua_cocos2dx_DrawNode_drawSolidCircle); - tolua_function(tolua_S,"onDrawGLPoint",lua_cocos2dx_DrawNode_onDrawGLPoint); - tolua_function(tolua_S,"drawDot",lua_cocos2dx_DrawNode_drawDot); - tolua_function(tolua_S,"drawSegment",lua_cocos2dx_DrawNode_drawSegment); - tolua_function(tolua_S,"onDraw",lua_cocos2dx_DrawNode_onDraw); - tolua_function(tolua_S,"drawCircle",lua_cocos2dx_DrawNode_drawCircle); - tolua_function(tolua_S,"drawQuadBezier",lua_cocos2dx_DrawNode_drawQuadBezier); - tolua_function(tolua_S,"onDrawGLLine",lua_cocos2dx_DrawNode_onDrawGLLine); - tolua_function(tolua_S,"drawTriangle",lua_cocos2dx_DrawNode_drawTriangle); - tolua_function(tolua_S,"clear",lua_cocos2dx_DrawNode_clear); - tolua_function(tolua_S,"drawSolidRect",lua_cocos2dx_DrawNode_drawSolidRect); - tolua_function(tolua_S,"drawPoint",lua_cocos2dx_DrawNode_drawPoint); - tolua_function(tolua_S,"drawCubicBezier",lua_cocos2dx_DrawNode_drawCubicBezier); - tolua_function(tolua_S,"create", lua_cocos2dx_DrawNode_create); + tolua_function(tolua_S,"drawLine",lua_cocos2dx_DrawNode_drawLine); + tolua_function(tolua_S,"drawRect",lua_cocos2dx_DrawNode_drawRect); + tolua_function(tolua_S,"drawSolidCircle",lua_cocos2dx_DrawNode_drawSolidCircle); + tolua_function(tolua_S,"onDrawGLPoint",lua_cocos2dx_DrawNode_onDrawGLPoint); + tolua_function(tolua_S,"drawDot",lua_cocos2dx_DrawNode_drawDot); + tolua_function(tolua_S,"drawSegment",lua_cocos2dx_DrawNode_drawSegment); + tolua_function(tolua_S,"onDraw",lua_cocos2dx_DrawNode_onDraw); + tolua_function(tolua_S,"drawCircle",lua_cocos2dx_DrawNode_drawCircle); + tolua_function(tolua_S,"drawQuadBezier",lua_cocos2dx_DrawNode_drawQuadBezier); + tolua_function(tolua_S,"onDrawGLLine",lua_cocos2dx_DrawNode_onDrawGLLine); + tolua_function(tolua_S,"drawTriangle",lua_cocos2dx_DrawNode_drawTriangle); + tolua_function(tolua_S,"clear",lua_cocos2dx_DrawNode_clear); + tolua_function(tolua_S,"drawSolidRect",lua_cocos2dx_DrawNode_drawSolidRect); + tolua_function(tolua_S,"drawPoint",lua_cocos2dx_DrawNode_drawPoint); + tolua_function(tolua_S,"drawCubicBezier",lua_cocos2dx_DrawNode_drawCubicBezier); + tolua_function(tolua_S,"create", lua_cocos2dx_DrawNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DrawNode).name(); g_luaType[typeName] = "cc.DrawNode"; @@ -36506,31 +36506,31 @@ int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_setString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:setString"); if(!ok) { @@ -36542,12 +36542,12 @@ int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:setString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_setString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) @@ -36558,7 +36558,7 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif @@ -36575,11 +36575,11 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -36591,23 +36591,23 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); @@ -36619,23 +36619,23 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); @@ -36645,12 +36645,12 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:initWithString",argc, 5); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_initWithString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) @@ -36658,28 +36658,28 @@ int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -36691,12 +36691,12 @@ int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:updateAtlasValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) @@ -36704,28 +36704,28 @@ int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_getString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -36738,12 +36738,12 @@ int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:getString",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_getString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) @@ -36753,14 +36753,14 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -36785,7 +36785,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -36795,7 +36795,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -36814,7 +36814,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LabelAtlas:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_create'.",&tolua_err); #endif return 0; @@ -36829,13 +36829,13 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LabelAtlas"); tolua_cclass(tolua_S,"LabelAtlas","cc.LabelAtlas","cc.AtlasNode",nullptr); - + tolua_beginmodule(tolua_S,"LabelAtlas"); - tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); - tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); - tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_LabelAtlas_updateAtlasValues); - tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); - tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); + tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); + tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); + tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_LabelAtlas_updateAtlasValues); + tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); + tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LabelAtlas).name(); g_luaType[typeName] = "cc.LabelAtlas"; @@ -36848,31 +36848,31 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_appendChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -36884,12 +36884,12 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:appendChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_appendChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) @@ -36897,37 +36897,37 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Sprite* arg0; int arg1; int arg2; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:addSpriteWithoutQuad"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.SpriteBatchNode:addSpriteWithoutQuad"); if(!ok) { @@ -36940,12 +36940,12 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:addSpriteWithoutQuad",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) @@ -36953,31 +36953,31 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:reorderBatch"); if(!ok) { @@ -36989,12 +36989,12 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:reorderBatch",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -37002,31 +37002,31 @@ int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:removeAllChildrenWithCleanup"); if(!ok) { @@ -37038,12 +37038,12 @@ int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) @@ -37051,31 +37051,31 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -37088,12 +37088,12 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:lowestAtlasIndexInChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) @@ -37101,34 +37101,34 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Sprite* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:atlasIndexForChild"); if(!ok) { @@ -37141,12 +37141,12 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:atlasIndexForChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) @@ -37154,31 +37154,31 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -37190,12 +37190,12 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) @@ -37203,28 +37203,28 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37237,12 +37237,12 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) @@ -37250,28 +37250,28 @@ int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37283,12 +37283,12 @@ int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:increaseAtlasCapacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) @@ -37296,28 +37296,28 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37330,12 +37330,12 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) @@ -37343,34 +37343,34 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Sprite* arg0; ssize_t arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:insertQuadFromSprite"); if(!ok) { @@ -37382,12 +37382,12 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:insertQuadFromSprite",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) @@ -37395,31 +37395,31 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -37431,12 +37431,12 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) @@ -37444,34 +37444,34 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Sprite* arg0; ssize_t arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:rebuildIndexInOrder"); if(!ok) { @@ -37484,12 +37484,12 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:rebuildIndexInOrder",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) @@ -37497,31 +37497,31 @@ int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -37534,12 +37534,12 @@ int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:highestAtlasIndexInChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) @@ -37547,34 +37547,34 @@ int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { ssize_t arg0; bool arg1; - + ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.SpriteBatchNode:removeChildAtIndex"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SpriteBatchNode:removeChildAtIndex"); if(!ok) { @@ -37586,12 +37586,12 @@ int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeChildAtIndex",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) @@ -37599,31 +37599,31 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -37635,29 +37635,29 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeSpriteFromAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -37689,7 +37689,7 @@ int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_create'.",&tolua_err); #endif return 0; @@ -37698,17 +37698,17 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Texture2D* arg0; @@ -37740,7 +37740,7 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'.",&tolua_err); #endif return 0; @@ -37755,26 +37755,26 @@ int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteBatchNode"); tolua_cclass(tolua_S,"SpriteBatchNode","cc.SpriteBatchNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"SpriteBatchNode"); - tolua_function(tolua_S,"appendChild",lua_cocos2dx_SpriteBatchNode_appendChild); - tolua_function(tolua_S,"addSpriteWithoutQuad",lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad); - tolua_function(tolua_S,"reorderBatch",lua_cocos2dx_SpriteBatchNode_reorderBatch); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild); - tolua_function(tolua_S,"atlasIndexForChild",lua_cocos2dx_SpriteBatchNode_atlasIndexForChild); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_SpriteBatchNode_setTextureAtlas); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteBatchNode_getTexture); - tolua_function(tolua_S,"increaseAtlasCapacity",lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_SpriteBatchNode_getTextureAtlas); - tolua_function(tolua_S,"insertQuadFromSprite",lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteBatchNode_setTexture); - tolua_function(tolua_S,"rebuildIndexInOrder",lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder); - tolua_function(tolua_S,"highestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild); - tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_SpriteBatchNode_removeChildAtIndex); - tolua_function(tolua_S,"removeSpriteFromAtlas",lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas); - tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); + tolua_function(tolua_S,"appendChild",lua_cocos2dx_SpriteBatchNode_appendChild); + tolua_function(tolua_S,"addSpriteWithoutQuad",lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad); + tolua_function(tolua_S,"reorderBatch",lua_cocos2dx_SpriteBatchNode_reorderBatch); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild); + tolua_function(tolua_S,"atlasIndexForChild",lua_cocos2dx_SpriteBatchNode_atlasIndexForChild); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_SpriteBatchNode_setTextureAtlas); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteBatchNode_getTexture); + tolua_function(tolua_S,"increaseAtlasCapacity",lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_SpriteBatchNode_getTextureAtlas); + tolua_function(tolua_S,"insertQuadFromSprite",lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteBatchNode_setTexture); + tolua_function(tolua_S,"rebuildIndexInOrder",lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder); + tolua_function(tolua_S,"highestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild); + tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_SpriteBatchNode_removeChildAtIndex); + tolua_function(tolua_S,"removeSpriteFromAtlas",lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas); + tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteBatchNode).name(); g_luaType[typeName] = "cc.SpriteBatchNode"; @@ -37787,28 +37787,28 @@ int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_isClipMarginEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37821,12 +37821,12 @@ int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:isClipMarginEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_isClipMarginEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) @@ -37834,28 +37834,28 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37865,10 +37865,10 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) cobj->enableShadow(); return 0; } - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); if(!ok) { @@ -37878,13 +37878,13 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) cobj->enableShadow(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Color4B arg0; cocos2d::Size arg1; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); - + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Label:enableShadow"); if(!ok) { @@ -37894,16 +37894,16 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) cobj->enableShadow(arg0, arg1); return 0; } - if (argc == 3) + if (argc == 3) { cocos2d::Color4B arg0; cocos2d::Size arg1; int arg2; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); - + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Label:enableShadow"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:enableShadow"); if(!ok) { @@ -37915,12 +37915,12 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableShadow",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableShadow'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) @@ -37928,34 +37928,34 @@ int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setDimensions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { unsigned int arg0; unsigned int arg1; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setDimensions"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Label:setDimensions"); if(!ok) { @@ -37967,12 +37967,12 @@ int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setDimensions",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setDimensions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getString(lua_State* tolua_S) @@ -37980,28 +37980,28 @@ int lua_cocos2dx_Label_getString(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38014,12 +38014,12 @@ int lua_cocos2dx_Label_getString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getString",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) @@ -38027,28 +38027,28 @@ int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38061,12 +38061,12 @@ int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getHeight",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) @@ -38074,28 +38074,28 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_disableEffect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38107,12 +38107,12 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:disableEffect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_disableEffect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) @@ -38120,31 +38120,31 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTTFConfig'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::_ttfConfig arg0; - + ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:setTTFConfig"); if(!ok) { @@ -38157,12 +38157,12 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setTTFConfig",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTTFConfig'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) @@ -38170,28 +38170,28 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTextColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38204,12 +38204,12 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTextColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTextColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) @@ -38217,31 +38217,31 @@ int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setWidth"); if(!ok) { @@ -38253,12 +38253,12 @@ int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setWidth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) @@ -38266,28 +38266,28 @@ int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getMaxLineWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38300,12 +38300,12 @@ int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getMaxLineWidth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getMaxLineWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) @@ -38313,28 +38313,28 @@ int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getHorizontalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38347,12 +38347,12 @@ int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getHorizontalAlignment",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getHorizontalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) @@ -38360,31 +38360,31 @@ int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setClipMarginEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:setClipMarginEnabled"); if(!ok) { @@ -38396,12 +38396,12 @@ int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setClipMarginEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setClipMarginEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setString(lua_State* tolua_S) @@ -38409,31 +38409,31 @@ int lua_cocos2dx_Label_setString(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setString"); if(!ok) { @@ -38445,12 +38445,12 @@ int lua_cocos2dx_Label_setString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) @@ -38458,31 +38458,31 @@ int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setSystemFontName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setSystemFontName"); if(!ok) { @@ -38494,12 +38494,12 @@ int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setSystemFontName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setSystemFontName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) @@ -38507,31 +38507,31 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setBMFontFilePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); if(!ok) { @@ -38542,13 +38542,13 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) tolua_pushboolean(tolua_S,(bool)ret); return 1; } - if (argc == 2) + if (argc == 2) { std::string arg0; cocos2d::Vec2 arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.Label:setBMFontFilePath"); if(!ok) { @@ -38561,12 +38561,12 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setBMFontFilePath",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setBMFontFilePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) @@ -38574,28 +38574,28 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getFontAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38608,12 +38608,12 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getFontAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getFontAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) @@ -38621,31 +38621,31 @@ int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setLineHeight"); if(!ok) { @@ -38657,12 +38657,12 @@ int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineHeight",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) @@ -38670,31 +38670,31 @@ int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setSystemFontSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setSystemFontSize"); if(!ok) { @@ -38706,12 +38706,12 @@ int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setSystemFontSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setSystemFontSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) @@ -38719,28 +38719,28 @@ int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_updateContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38752,12 +38752,12 @@ int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:updateContent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_updateContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) @@ -38765,28 +38765,28 @@ int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getStringLength'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38799,12 +38799,12 @@ int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getStringLength",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getStringLength'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) @@ -38812,31 +38812,31 @@ int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:setLineBreakWithoutSpace"); if(!ok) { @@ -38848,12 +38848,12 @@ int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineBreakWithoutSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) @@ -38861,28 +38861,28 @@ int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getStringNumLines'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38895,12 +38895,12 @@ int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getStringNumLines",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getStringNumLines'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) @@ -38908,31 +38908,31 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableOutline'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); if(!ok) { @@ -38942,13 +38942,13 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) cobj->enableOutline(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Color4B arg0; int arg1; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:enableOutline"); if(!ok) { @@ -38960,12 +38960,12 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableOutline",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableOutline'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) @@ -38973,28 +38973,28 @@ int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getAdditionalKerning'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39007,12 +39007,12 @@ int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getAdditionalKerning",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getAdditionalKerning'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) @@ -39023,7 +39023,7 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif @@ -39040,19 +39040,19 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) if (argc == 4) { cocos2d::Texture2D* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:setCharMap"); - + if (!ok) { break; } bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -39064,19 +39064,19 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:setCharMap"); - + if (!ok) { break; } bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -39088,7 +39088,7 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setCharMap"); - + if (!ok) { break; } bool ret = cobj->setCharMap(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -39098,12 +39098,12 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setCharMap",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setCharMap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) @@ -39111,28 +39111,28 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getDimensions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39145,12 +39145,12 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getDimensions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getDimensions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) @@ -39158,31 +39158,31 @@ int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setMaxLineWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setMaxLineWidth"); if(!ok) { @@ -39194,12 +39194,12 @@ int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setMaxLineWidth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setMaxLineWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) @@ -39207,28 +39207,28 @@ int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getSystemFontName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39241,12 +39241,12 @@ int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getSystemFontName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getSystemFontName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) @@ -39254,31 +39254,31 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setVerticalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextVAlignment arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setVerticalAlignment"); if(!ok) { @@ -39290,12 +39290,12 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setVerticalAlignment",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setVerticalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) @@ -39303,28 +39303,28 @@ int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLineHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39337,12 +39337,12 @@ int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLineHeight",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLineHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) @@ -39350,28 +39350,28 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTTFConfig'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39384,12 +39384,12 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTTFConfig",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTTFConfig'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) @@ -39397,28 +39397,28 @@ int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getVerticalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39431,12 +39431,12 @@ int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getVerticalAlignment",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getVerticalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) @@ -39444,31 +39444,31 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTextColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:setTextColor"); if(!ok) { @@ -39480,12 +39480,12 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setTextColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTextColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) @@ -39493,31 +39493,31 @@ int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setHeight"); if(!ok) { @@ -39529,12 +39529,12 @@ int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setHeight",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) @@ -39542,28 +39542,28 @@ int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39576,12 +39576,12 @@ int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getWidth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) @@ -39589,31 +39589,31 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableGlow'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableGlow"); if(!ok) { @@ -39625,12 +39625,12 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableGlow",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableGlow'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) @@ -39638,31 +39638,31 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLetter'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:getLetter"); if(!ok) { @@ -39675,12 +39675,12 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLetter",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLetter'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) @@ -39688,31 +39688,31 @@ int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setAdditionalKerning'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setAdditionalKerning"); if(!ok) { @@ -39724,12 +39724,12 @@ int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setAdditionalKerning",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setAdditionalKerning'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) @@ -39737,28 +39737,28 @@ int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getSystemFontSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39771,12 +39771,12 @@ int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getSystemFontSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getSystemFontSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) @@ -39784,28 +39784,28 @@ int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTextAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39818,12 +39818,12 @@ int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTextAlignment",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTextAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) @@ -39831,28 +39831,28 @@ int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getBMFontFilePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39865,12 +39865,12 @@ int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getBMFontFilePath",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getBMFontFilePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) @@ -39878,31 +39878,31 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setHorizontalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextHAlignment arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setHorizontalAlignment"); if(!ok) { @@ -39914,12 +39914,12 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setHorizontalAlignment",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setHorizontalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) @@ -39930,7 +39930,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif @@ -39947,11 +39947,11 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) if (argc == 2) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); - + if (!ok) { break; } cocos2d::TextVAlignment arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setAlignment"); - + if (!ok) { break; } cobj->setAlignment(arg0, arg1); return 0; @@ -39962,7 +39962,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) if (argc == 1) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); - + if (!ok) { break; } cobj->setAlignment(arg0); return 0; @@ -39971,12 +39971,12 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setAlignment",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) @@ -39984,28 +39984,28 @@ int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_requestSystemFontRefresh'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40017,29 +40017,29 @@ int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:requestSystemFontRefresh",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_requestSystemFontRefresh'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -40115,7 +40115,7 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithBMFont",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithBMFont'.",&tolua_err); #endif return 0; @@ -40124,17 +40124,17 @@ int lua_cocos2dx_Label_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -40149,7 +40149,7 @@ int lua_cocos2dx_Label_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_create'.",&tolua_err); #endif return 0; @@ -40161,14 +40161,14 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 4) { @@ -40190,7 +40190,7 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -40212,7 +40212,7 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -40228,7 +40228,7 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Label:createWithCharMap",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithCharMap'.",&tolua_err); #endif return 0; @@ -40237,17 +40237,17 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { std::string arg0; @@ -40331,7 +40331,7 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithSystemFont",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithSystemFont'.",&tolua_err); #endif return 0; @@ -40346,56 +40346,56 @@ int lua_register_cocos2dx_Label(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Label"); tolua_cclass(tolua_S,"Label","cc.Label","cc.SpriteBatchNode",nullptr); - + tolua_beginmodule(tolua_S,"Label"); - tolua_function(tolua_S,"isClipMarginEnabled",lua_cocos2dx_Label_isClipMarginEnabled); - tolua_function(tolua_S,"enableShadow",lua_cocos2dx_Label_enableShadow); - tolua_function(tolua_S,"setDimensions",lua_cocos2dx_Label_setDimensions); - tolua_function(tolua_S,"getString",lua_cocos2dx_Label_getString); - tolua_function(tolua_S,"getHeight",lua_cocos2dx_Label_getHeight); - tolua_function(tolua_S,"disableEffect",lua_cocos2dx_Label_disableEffect); - tolua_function(tolua_S,"setTTFConfig",lua_cocos2dx_Label_setTTFConfig); - tolua_function(tolua_S,"getTextColor",lua_cocos2dx_Label_getTextColor); - tolua_function(tolua_S,"setWidth",lua_cocos2dx_Label_setWidth); - tolua_function(tolua_S,"getMaxLineWidth",lua_cocos2dx_Label_getMaxLineWidth); - tolua_function(tolua_S,"getHorizontalAlignment",lua_cocos2dx_Label_getHorizontalAlignment); - tolua_function(tolua_S,"setClipMarginEnabled",lua_cocos2dx_Label_setClipMarginEnabled); - tolua_function(tolua_S,"setString",lua_cocos2dx_Label_setString); - tolua_function(tolua_S,"setSystemFontName",lua_cocos2dx_Label_setSystemFontName); - tolua_function(tolua_S,"setBMFontFilePath",lua_cocos2dx_Label_setBMFontFilePath); - tolua_function(tolua_S,"getFontAtlas",lua_cocos2dx_Label_getFontAtlas); - tolua_function(tolua_S,"setLineHeight",lua_cocos2dx_Label_setLineHeight); - tolua_function(tolua_S,"setSystemFontSize",lua_cocos2dx_Label_setSystemFontSize); - tolua_function(tolua_S,"updateContent",lua_cocos2dx_Label_updateContent); - tolua_function(tolua_S,"getStringLength",lua_cocos2dx_Label_getStringLength); - tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_cocos2dx_Label_setLineBreakWithoutSpace); - tolua_function(tolua_S,"getStringNumLines",lua_cocos2dx_Label_getStringNumLines); - tolua_function(tolua_S,"enableOutline",lua_cocos2dx_Label_enableOutline); - tolua_function(tolua_S,"getAdditionalKerning",lua_cocos2dx_Label_getAdditionalKerning); - tolua_function(tolua_S,"setCharMap",lua_cocos2dx_Label_setCharMap); - tolua_function(tolua_S,"getDimensions",lua_cocos2dx_Label_getDimensions); - tolua_function(tolua_S,"setMaxLineWidth",lua_cocos2dx_Label_setMaxLineWidth); - tolua_function(tolua_S,"getSystemFontName",lua_cocos2dx_Label_getSystemFontName); - tolua_function(tolua_S,"setVerticalAlignment",lua_cocos2dx_Label_setVerticalAlignment); - tolua_function(tolua_S,"getLineHeight",lua_cocos2dx_Label_getLineHeight); - tolua_function(tolua_S,"getTTFConfig",lua_cocos2dx_Label_getTTFConfig); - tolua_function(tolua_S,"getVerticalAlignment",lua_cocos2dx_Label_getVerticalAlignment); - tolua_function(tolua_S,"setTextColor",lua_cocos2dx_Label_setTextColor); - tolua_function(tolua_S,"setHeight",lua_cocos2dx_Label_setHeight); - tolua_function(tolua_S,"getWidth",lua_cocos2dx_Label_getWidth); - tolua_function(tolua_S,"enableGlow",lua_cocos2dx_Label_enableGlow); - tolua_function(tolua_S,"getLetter",lua_cocos2dx_Label_getLetter); - tolua_function(tolua_S,"setAdditionalKerning",lua_cocos2dx_Label_setAdditionalKerning); - tolua_function(tolua_S,"getSystemFontSize",lua_cocos2dx_Label_getSystemFontSize); - tolua_function(tolua_S,"getTextAlignment",lua_cocos2dx_Label_getTextAlignment); - tolua_function(tolua_S,"getBMFontFilePath",lua_cocos2dx_Label_getBMFontFilePath); - tolua_function(tolua_S,"setHorizontalAlignment",lua_cocos2dx_Label_setHorizontalAlignment); - tolua_function(tolua_S,"setAlignment",lua_cocos2dx_Label_setAlignment); - tolua_function(tolua_S,"requestSystemFontRefresh",lua_cocos2dx_Label_requestSystemFontRefresh); - tolua_function(tolua_S,"createWithBMFont", lua_cocos2dx_Label_createWithBMFont); - tolua_function(tolua_S,"create", lua_cocos2dx_Label_create); - tolua_function(tolua_S,"createWithCharMap", lua_cocos2dx_Label_createWithCharMap); - tolua_function(tolua_S,"createWithSystemFont", lua_cocos2dx_Label_createWithSystemFont); + tolua_function(tolua_S,"isClipMarginEnabled",lua_cocos2dx_Label_isClipMarginEnabled); + tolua_function(tolua_S,"enableShadow",lua_cocos2dx_Label_enableShadow); + tolua_function(tolua_S,"setDimensions",lua_cocos2dx_Label_setDimensions); + tolua_function(tolua_S,"getString",lua_cocos2dx_Label_getString); + tolua_function(tolua_S,"getHeight",lua_cocos2dx_Label_getHeight); + tolua_function(tolua_S,"disableEffect",lua_cocos2dx_Label_disableEffect); + tolua_function(tolua_S,"setTTFConfig",lua_cocos2dx_Label_setTTFConfig); + tolua_function(tolua_S,"getTextColor",lua_cocos2dx_Label_getTextColor); + tolua_function(tolua_S,"setWidth",lua_cocos2dx_Label_setWidth); + tolua_function(tolua_S,"getMaxLineWidth",lua_cocos2dx_Label_getMaxLineWidth); + tolua_function(tolua_S,"getHorizontalAlignment",lua_cocos2dx_Label_getHorizontalAlignment); + tolua_function(tolua_S,"setClipMarginEnabled",lua_cocos2dx_Label_setClipMarginEnabled); + tolua_function(tolua_S,"setString",lua_cocos2dx_Label_setString); + tolua_function(tolua_S,"setSystemFontName",lua_cocos2dx_Label_setSystemFontName); + tolua_function(tolua_S,"setBMFontFilePath",lua_cocos2dx_Label_setBMFontFilePath); + tolua_function(tolua_S,"getFontAtlas",lua_cocos2dx_Label_getFontAtlas); + tolua_function(tolua_S,"setLineHeight",lua_cocos2dx_Label_setLineHeight); + tolua_function(tolua_S,"setSystemFontSize",lua_cocos2dx_Label_setSystemFontSize); + tolua_function(tolua_S,"updateContent",lua_cocos2dx_Label_updateContent); + tolua_function(tolua_S,"getStringLength",lua_cocos2dx_Label_getStringLength); + tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_cocos2dx_Label_setLineBreakWithoutSpace); + tolua_function(tolua_S,"getStringNumLines",lua_cocos2dx_Label_getStringNumLines); + tolua_function(tolua_S,"enableOutline",lua_cocos2dx_Label_enableOutline); + tolua_function(tolua_S,"getAdditionalKerning",lua_cocos2dx_Label_getAdditionalKerning); + tolua_function(tolua_S,"setCharMap",lua_cocos2dx_Label_setCharMap); + tolua_function(tolua_S,"getDimensions",lua_cocos2dx_Label_getDimensions); + tolua_function(tolua_S,"setMaxLineWidth",lua_cocos2dx_Label_setMaxLineWidth); + tolua_function(tolua_S,"getSystemFontName",lua_cocos2dx_Label_getSystemFontName); + tolua_function(tolua_S,"setVerticalAlignment",lua_cocos2dx_Label_setVerticalAlignment); + tolua_function(tolua_S,"getLineHeight",lua_cocos2dx_Label_getLineHeight); + tolua_function(tolua_S,"getTTFConfig",lua_cocos2dx_Label_getTTFConfig); + tolua_function(tolua_S,"getVerticalAlignment",lua_cocos2dx_Label_getVerticalAlignment); + tolua_function(tolua_S,"setTextColor",lua_cocos2dx_Label_setTextColor); + tolua_function(tolua_S,"setHeight",lua_cocos2dx_Label_setHeight); + tolua_function(tolua_S,"getWidth",lua_cocos2dx_Label_getWidth); + tolua_function(tolua_S,"enableGlow",lua_cocos2dx_Label_enableGlow); + tolua_function(tolua_S,"getLetter",lua_cocos2dx_Label_getLetter); + tolua_function(tolua_S,"setAdditionalKerning",lua_cocos2dx_Label_setAdditionalKerning); + tolua_function(tolua_S,"getSystemFontSize",lua_cocos2dx_Label_getSystemFontSize); + tolua_function(tolua_S,"getTextAlignment",lua_cocos2dx_Label_getTextAlignment); + tolua_function(tolua_S,"getBMFontFilePath",lua_cocos2dx_Label_getBMFontFilePath); + tolua_function(tolua_S,"setHorizontalAlignment",lua_cocos2dx_Label_setHorizontalAlignment); + tolua_function(tolua_S,"setAlignment",lua_cocos2dx_Label_setAlignment); + tolua_function(tolua_S,"requestSystemFontRefresh",lua_cocos2dx_Label_requestSystemFontRefresh); + tolua_function(tolua_S,"createWithBMFont", lua_cocos2dx_Label_createWithBMFont); + tolua_function(tolua_S,"create", lua_cocos2dx_Label_create); + tolua_function(tolua_S,"createWithCharMap", lua_cocos2dx_Label_createWithCharMap); + tolua_function(tolua_S,"createWithSystemFont", lua_cocos2dx_Label_createWithSystemFont); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Label).name(); g_luaType[typeName] = "cc.Label"; @@ -40407,17 +40407,17 @@ int lua_cocos2dx_Layer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Layer",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -40432,7 +40432,7 @@ int lua_cocos2dx_Layer_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Layer:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Layer_create'.",&tolua_err); #endif return 0; @@ -40447,9 +40447,9 @@ int lua_register_cocos2dx_Layer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Layer"); tolua_cclass(tolua_S,"Layer","cc.Layer","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Layer"); - tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Layer).name(); g_luaType[typeName] = "cc.Layer"; @@ -40462,34 +40462,34 @@ int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeWidthAndHeight"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LayerColor:changeWidthAndHeight"); if(!ok) { @@ -40501,12 +40501,12 @@ int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeWidthAndHeight",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) @@ -40514,31 +40514,31 @@ int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeHeight"); if(!ok) { @@ -40550,12 +40550,12 @@ int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeHeight",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) @@ -40563,31 +40563,31 @@ int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeWidth"); if(!ok) { @@ -40599,12 +40599,12 @@ int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeWidth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) @@ -40614,14 +40614,14 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -40640,7 +40640,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -40650,7 +40650,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -40666,7 +40666,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LayerColor:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_create'.",&tolua_err); #endif return 0; @@ -40681,12 +40681,12 @@ int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerColor"); tolua_cclass(tolua_S,"LayerColor","cc.LayerColor","cc.Layer",nullptr); - + tolua_beginmodule(tolua_S,"LayerColor"); - tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); - tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); - tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); - tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); + tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); + tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); + tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); + tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerColor).name(); g_luaType[typeName] = "cc.LayerColor"; @@ -40699,28 +40699,28 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40733,12 +40733,12 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getStartColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) @@ -40746,28 +40746,28 @@ int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40780,12 +40780,12 @@ int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:isCompressedInterpolation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) @@ -40793,28 +40793,28 @@ int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getStartOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40827,12 +40827,12 @@ int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getStartOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getStartOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) @@ -40840,31 +40840,31 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setVector'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.LayerGradient:setVector"); if(!ok) { @@ -40876,12 +40876,12 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setVector",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setVector'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) @@ -40889,31 +40889,31 @@ int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setStartOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.LayerGradient:setStartOpacity"); if(!ok) { @@ -40925,12 +40925,12 @@ int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setStartOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setStartOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) @@ -40938,31 +40938,31 @@ int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LayerGradient:setCompressedInterpolation"); if(!ok) { @@ -40974,12 +40974,12 @@ int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setCompressedInterpolation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) @@ -40987,31 +40987,31 @@ int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setEndOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.LayerGradient:setEndOpacity"); if(!ok) { @@ -41023,12 +41023,12 @@ int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setEndOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setEndOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) @@ -41036,28 +41036,28 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getVector'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41070,12 +41070,12 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getVector",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getVector'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) @@ -41083,31 +41083,31 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setEndColor"); if(!ok) { @@ -41119,12 +41119,12 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setEndColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) @@ -41132,28 +41132,28 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41166,12 +41166,12 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getEndColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) @@ -41179,28 +41179,28 @@ int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getEndOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41213,12 +41213,12 @@ int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getEndOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getEndOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) @@ -41226,31 +41226,31 @@ int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setStartColor"); if(!ok) { @@ -41262,12 +41262,12 @@ int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setStartColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) @@ -41277,14 +41277,14 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -41300,7 +41300,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -41310,7 +41310,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -41332,7 +41332,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LayerGradient:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_create'.",&tolua_err); #endif return 0; @@ -41347,21 +41347,21 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerGradient"); tolua_cclass(tolua_S,"LayerGradient","cc.LayerGradient","cc.LayerColor",nullptr); - + tolua_beginmodule(tolua_S,"LayerGradient"); - tolua_function(tolua_S,"getStartColor",lua_cocos2dx_LayerGradient_getStartColor); - tolua_function(tolua_S,"isCompressedInterpolation",lua_cocos2dx_LayerGradient_isCompressedInterpolation); - tolua_function(tolua_S,"getStartOpacity",lua_cocos2dx_LayerGradient_getStartOpacity); - tolua_function(tolua_S,"setVector",lua_cocos2dx_LayerGradient_setVector); - tolua_function(tolua_S,"setStartOpacity",lua_cocos2dx_LayerGradient_setStartOpacity); - tolua_function(tolua_S,"setCompressedInterpolation",lua_cocos2dx_LayerGradient_setCompressedInterpolation); - tolua_function(tolua_S,"setEndOpacity",lua_cocos2dx_LayerGradient_setEndOpacity); - tolua_function(tolua_S,"getVector",lua_cocos2dx_LayerGradient_getVector); - tolua_function(tolua_S,"setEndColor",lua_cocos2dx_LayerGradient_setEndColor); - tolua_function(tolua_S,"getEndColor",lua_cocos2dx_LayerGradient_getEndColor); - tolua_function(tolua_S,"getEndOpacity",lua_cocos2dx_LayerGradient_getEndOpacity); - tolua_function(tolua_S,"setStartColor",lua_cocos2dx_LayerGradient_setStartColor); - tolua_function(tolua_S,"create", lua_cocos2dx_LayerGradient_create); + tolua_function(tolua_S,"getStartColor",lua_cocos2dx_LayerGradient_getStartColor); + tolua_function(tolua_S,"isCompressedInterpolation",lua_cocos2dx_LayerGradient_isCompressedInterpolation); + tolua_function(tolua_S,"getStartOpacity",lua_cocos2dx_LayerGradient_getStartOpacity); + tolua_function(tolua_S,"setVector",lua_cocos2dx_LayerGradient_setVector); + tolua_function(tolua_S,"setStartOpacity",lua_cocos2dx_LayerGradient_setStartOpacity); + tolua_function(tolua_S,"setCompressedInterpolation",lua_cocos2dx_LayerGradient_setCompressedInterpolation); + tolua_function(tolua_S,"setEndOpacity",lua_cocos2dx_LayerGradient_setEndOpacity); + tolua_function(tolua_S,"getVector",lua_cocos2dx_LayerGradient_getVector); + tolua_function(tolua_S,"setEndColor",lua_cocos2dx_LayerGradient_setEndColor); + tolua_function(tolua_S,"getEndColor",lua_cocos2dx_LayerGradient_getEndColor); + tolua_function(tolua_S,"getEndOpacity",lua_cocos2dx_LayerGradient_getEndOpacity); + tolua_function(tolua_S,"setStartColor",lua_cocos2dx_LayerGradient_setStartColor); + tolua_function(tolua_S,"create", lua_cocos2dx_LayerGradient_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerGradient).name(); g_luaType[typeName] = "cc.LayerGradient"; @@ -41374,31 +41374,31 @@ int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LayerMultiplex:switchToAndReleaseMe"); if(!ok) { @@ -41410,12 +41410,12 @@ int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:switchToAndReleaseMe",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) @@ -41423,31 +41423,31 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_addLayer'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Layer* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Layer",&arg0); if(!ok) { @@ -41459,12 +41459,12 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:addLayer",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_addLayer'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) @@ -41472,31 +41472,31 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_switchTo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LayerMultiplex:switchTo"); if(!ok) { @@ -41508,12 +41508,12 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:switchTo",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_switchTo'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_LayerMultiplex_finalize(lua_State* tolua_S) @@ -41526,11 +41526,11 @@ int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerMultiplex"); tolua_cclass(tolua_S,"LayerMultiplex","cc.LayerMultiplex","cc.Layer",nullptr); - + tolua_beginmodule(tolua_S,"LayerMultiplex"); - tolua_function(tolua_S,"switchToAndReleaseMe",lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe); - tolua_function(tolua_S,"addLayer",lua_cocos2dx_LayerMultiplex_addLayer); - tolua_function(tolua_S,"switchTo",lua_cocos2dx_LayerMultiplex_switchTo); + tolua_function(tolua_S,"switchToAndReleaseMe",lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe); + tolua_function(tolua_S,"addLayer",lua_cocos2dx_LayerMultiplex_addLayer); + tolua_function(tolua_S,"switchTo",lua_cocos2dx_LayerMultiplex_switchTo); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerMultiplex).name(); g_luaType[typeName] = "cc.LayerMultiplex"; @@ -41543,31 +41543,31 @@ int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionEaseScene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionEaseScene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionEaseScene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -41580,12 +41580,12 @@ int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionEaseScene:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_TransitionEaseScene_finalize(lua_State* tolua_S) @@ -41598,9 +41598,9 @@ int lua_register_cocos2dx_TransitionEaseScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionEaseScene"); tolua_cclass(tolua_S,"TransitionEaseScene","cc.TransitionEaseScene","",nullptr); - + tolua_beginmodule(tolua_S,"TransitionEaseScene"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionEaseScene_easeActionWithAction); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionEaseScene_easeActionWithAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionEaseScene).name(); g_luaType[typeName] = "cc.TransitionEaseScene"; @@ -41613,28 +41613,28 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_finish'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41646,12 +41646,12 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:finish",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_finish'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) @@ -41659,28 +41659,28 @@ int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41692,29 +41692,29 @@ int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:hideOutShowIn",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -41733,7 +41733,7 @@ int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionScene:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_create'.",&tolua_err); #endif return 0; @@ -41748,11 +41748,11 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionScene"); tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionScene"); - tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); - tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); + tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); + tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionScene).name(); g_luaType[typeName] = "cc.TransitionScene"; @@ -41764,17 +41764,17 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSceneOriented",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -41795,7 +41795,7 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSceneOriented:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_create'.",&tolua_err); #endif return 0; @@ -41810,9 +41810,9 @@ int lua_register_cocos2dx_TransitionSceneOriented(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSceneOriented"); tolua_cclass(tolua_S,"TransitionSceneOriented","cc.TransitionSceneOriented","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSceneOriented"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSceneOriented).name(); g_luaType[typeName] = "cc.TransitionSceneOriented"; @@ -41824,17 +41824,17 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionRotoZoom",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -41853,7 +41853,7 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionRotoZoom:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionRotoZoom_create'.",&tolua_err); #endif return 0; @@ -41868,9 +41868,9 @@ int lua_register_cocos2dx_TransitionRotoZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionRotoZoom"); tolua_cclass(tolua_S,"TransitionRotoZoom","cc.TransitionRotoZoom","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionRotoZoom"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionRotoZoom).name(); g_luaType[typeName] = "cc.TransitionRotoZoom"; @@ -41882,17 +41882,17 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionJumpZoom",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -41911,7 +41911,7 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionJumpZoom:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionJumpZoom_create'.",&tolua_err); #endif return 0; @@ -41926,9 +41926,9 @@ int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionJumpZoom"); tolua_cclass(tolua_S,"TransitionJumpZoom","cc.TransitionJumpZoom","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionJumpZoom"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionJumpZoom).name(); g_luaType[typeName] = "cc.TransitionJumpZoom"; @@ -41941,28 +41941,28 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionMoveInL_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41975,12 +41975,12 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) @@ -41988,31 +41988,31 @@ int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -42025,29 +42025,29 @@ int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42066,7 +42066,7 @@ int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_create'.",&tolua_err); #endif return 0; @@ -42081,11 +42081,11 @@ int lua_register_cocos2dx_TransitionMoveInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInL"); tolua_cclass(tolua_S,"TransitionMoveInL","cc.TransitionMoveInL","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInL"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionMoveInL_action); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionMoveInL_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInL_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionMoveInL_action); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionMoveInL_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInL).name(); g_luaType[typeName] = "cc.TransitionMoveInL"; @@ -42097,17 +42097,17 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInR",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42126,7 +42126,7 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInR_create'.",&tolua_err); #endif return 0; @@ -42141,9 +42141,9 @@ int lua_register_cocos2dx_TransitionMoveInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInR"); tolua_cclass(tolua_S,"TransitionMoveInR","cc.TransitionMoveInR","cc.TransitionMoveInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInR"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInR).name(); g_luaType[typeName] = "cc.TransitionMoveInR"; @@ -42155,17 +42155,17 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInT",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42184,7 +42184,7 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInT:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInT_create'.",&tolua_err); #endif return 0; @@ -42199,9 +42199,9 @@ int lua_register_cocos2dx_TransitionMoveInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInT"); tolua_cclass(tolua_S,"TransitionMoveInT","cc.TransitionMoveInT","cc.TransitionMoveInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInT"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInT).name(); g_luaType[typeName] = "cc.TransitionMoveInT"; @@ -42213,17 +42213,17 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInB",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42242,7 +42242,7 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInB:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInB_create'.",&tolua_err); #endif return 0; @@ -42257,9 +42257,9 @@ int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInB"); tolua_cclass(tolua_S,"TransitionMoveInB","cc.TransitionMoveInB","cc.TransitionMoveInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInB"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInB).name(); g_luaType[typeName] = "cc.TransitionMoveInB"; @@ -42272,28 +42272,28 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInL_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42306,12 +42306,12 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) @@ -42319,31 +42319,31 @@ int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -42356,29 +42356,29 @@ int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42397,7 +42397,7 @@ int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_create'.",&tolua_err); #endif return 0; @@ -42412,11 +42412,11 @@ int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInL"); tolua_cclass(tolua_S,"TransitionSlideInL","cc.TransitionSlideInL","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInL"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInL_action); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSlideInL_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInL_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInL_action); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSlideInL_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInL).name(); g_luaType[typeName] = "cc.TransitionSlideInL"; @@ -42429,28 +42429,28 @@ int lua_cocos2dx_TransitionSlideInR_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInR* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInR",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInR*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInR_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42463,29 +42463,29 @@ int lua_cocos2dx_TransitionSlideInR_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInR:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInR",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42504,7 +42504,7 @@ int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_create'.",&tolua_err); #endif return 0; @@ -42519,10 +42519,10 @@ int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInR"); tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInR"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInR_action); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInR_action); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInR).name(); g_luaType[typeName] = "cc.TransitionSlideInR"; @@ -42535,28 +42535,28 @@ int lua_cocos2dx_TransitionSlideInB_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInB* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInB",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInB*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInB_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42569,29 +42569,29 @@ int lua_cocos2dx_TransitionSlideInB_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInB:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInB",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42610,7 +42610,7 @@ int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInB:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_create'.",&tolua_err); #endif return 0; @@ -42625,10 +42625,10 @@ int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInB"); tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInB"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInB_action); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInB_action); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInB).name(); g_luaType[typeName] = "cc.TransitionSlideInB"; @@ -42641,28 +42641,28 @@ int lua_cocos2dx_TransitionSlideInT_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInT* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInT",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInT*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInT_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42675,29 +42675,29 @@ int lua_cocos2dx_TransitionSlideInT_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInT:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInT",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42716,7 +42716,7 @@ int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInT:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_create'.",&tolua_err); #endif return 0; @@ -42731,10 +42731,10 @@ int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInT"); tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInT"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInT_action); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInT_action); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInT).name(); g_luaType[typeName] = "cc.TransitionSlideInT"; @@ -42747,31 +42747,31 @@ int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionShrinkGrow* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionShrinkGrow*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -42784,29 +42784,29 @@ int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionShrinkGrow:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42825,7 +42825,7 @@ int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionShrinkGrow:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_create'.",&tolua_err); #endif return 0; @@ -42840,10 +42840,10 @@ int lua_register_cocos2dx_TransitionShrinkGrow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionShrinkGrow"); tolua_cclass(tolua_S,"TransitionShrinkGrow","cc.TransitionShrinkGrow","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionShrinkGrow"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionShrinkGrow).name(); g_luaType[typeName] = "cc.TransitionShrinkGrow"; @@ -42858,14 +42858,14 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipX",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -42881,7 +42881,7 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -42903,7 +42903,7 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipX:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipX_create'.",&tolua_err); #endif return 0; @@ -42918,9 +42918,9 @@ int lua_register_cocos2dx_TransitionFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipX"); tolua_cclass(tolua_S,"TransitionFlipX","cc.TransitionFlipX","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFlipX"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipX).name(); g_luaType[typeName] = "cc.TransitionFlipX"; @@ -42935,14 +42935,14 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipY",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -42958,7 +42958,7 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -42980,7 +42980,7 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipY:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipY_create'.",&tolua_err); #endif return 0; @@ -42995,9 +42995,9 @@ int lua_register_cocos2dx_TransitionFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipY"); tolua_cclass(tolua_S,"TransitionFlipY","cc.TransitionFlipY","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFlipY"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipY).name(); g_luaType[typeName] = "cc.TransitionFlipY"; @@ -43012,14 +43012,14 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipAngular",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43035,7 +43035,7 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43057,7 +43057,7 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipAngular:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipAngular_create'.",&tolua_err); #endif return 0; @@ -43072,9 +43072,9 @@ int lua_register_cocos2dx_TransitionFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipAngular"); tolua_cclass(tolua_S,"TransitionFlipAngular","cc.TransitionFlipAngular","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFlipAngular"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipAngular).name(); g_luaType[typeName] = "cc.TransitionFlipAngular"; @@ -43089,14 +43089,14 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipX",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43112,7 +43112,7 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43134,7 +43134,7 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipX:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipX_create'.",&tolua_err); #endif return 0; @@ -43149,9 +43149,9 @@ int lua_register_cocos2dx_TransitionZoomFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipX"); tolua_cclass(tolua_S,"TransitionZoomFlipX","cc.TransitionZoomFlipX","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionZoomFlipX"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipX).name(); g_luaType[typeName] = "cc.TransitionZoomFlipX"; @@ -43166,14 +43166,14 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipY",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43189,7 +43189,7 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43211,7 +43211,7 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipY:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipY_create'.",&tolua_err); #endif return 0; @@ -43226,9 +43226,9 @@ int lua_register_cocos2dx_TransitionZoomFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipY"); tolua_cclass(tolua_S,"TransitionZoomFlipY","cc.TransitionZoomFlipY","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionZoomFlipY"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipY).name(); g_luaType[typeName] = "cc.TransitionZoomFlipY"; @@ -43243,14 +43243,14 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipAngular",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43266,7 +43266,7 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43288,7 +43288,7 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipAngular:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipAngular_create'.",&tolua_err); #endif return 0; @@ -43303,9 +43303,9 @@ int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipAngular"); tolua_cclass(tolua_S,"TransitionZoomFlipAngular","cc.TransitionZoomFlipAngular","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionZoomFlipAngular"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipAngular).name(); g_luaType[typeName] = "cc.TransitionZoomFlipAngular"; @@ -43320,14 +43320,14 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFade",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43343,7 +43343,7 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43365,7 +43365,7 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFade:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_create'.",&tolua_err); #endif return 0; @@ -43380,9 +43380,9 @@ int lua_register_cocos2dx_TransitionFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFade"); tolua_cclass(tolua_S,"TransitionFade","cc.TransitionFade","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFade"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFade).name(); g_luaType[typeName] = "cc.TransitionFade"; @@ -43394,17 +43394,17 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionCrossFade",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43423,7 +43423,7 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionCrossFade:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionCrossFade_create'.",&tolua_err); #endif return 0; @@ -43438,9 +43438,9 @@ int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionCrossFade"); tolua_cclass(tolua_S,"TransitionCrossFade","cc.TransitionCrossFade","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionCrossFade"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionCrossFade).name(); g_luaType[typeName] = "cc.TransitionCrossFade"; @@ -43453,31 +43453,31 @@ int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionTurnOffTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionTurnOffTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -43490,29 +43490,29 @@ int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionTurnOffTiles:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43531,7 +43531,7 @@ int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionTurnOffTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_create'.",&tolua_err); #endif return 0; @@ -43546,10 +43546,10 @@ int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionTurnOffTiles"); tolua_cclass(tolua_S,"TransitionTurnOffTiles","cc.TransitionTurnOffTiles","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionTurnOffTiles"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionTurnOffTiles).name(); g_luaType[typeName] = "cc.TransitionTurnOffTiles"; @@ -43562,28 +43562,28 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSplitCols_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -43596,12 +43596,12 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) @@ -43609,31 +43609,31 @@ int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -43646,29 +43646,29 @@ int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43687,7 +43687,7 @@ int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitCols:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_create'.",&tolua_err); #endif return 0; @@ -43702,11 +43702,11 @@ int lua_register_cocos2dx_TransitionSplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitCols"); tolua_cclass(tolua_S,"TransitionSplitCols","cc.TransitionSplitCols","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSplitCols"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSplitCols_action); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSplitCols_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitCols_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSplitCols_action); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSplitCols_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitCols).name(); g_luaType[typeName] = "cc.TransitionSplitCols"; @@ -43718,17 +43718,17 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSplitRows",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43747,7 +43747,7 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitRows:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitRows_create'.",&tolua_err); #endif return 0; @@ -43762,9 +43762,9 @@ int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitRows"); tolua_cclass(tolua_S,"TransitionSplitRows","cc.TransitionSplitRows","cc.TransitionSplitCols",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSplitRows"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitRows).name(); g_luaType[typeName] = "cc.TransitionSplitRows"; @@ -43777,31 +43777,31 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -43814,12 +43814,12 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) @@ -43827,31 +43827,31 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TransitionFadeTR:actionWithSize"); if(!ok) { @@ -43864,29 +43864,29 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:actionWithSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43905,7 +43905,7 @@ int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeTR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_create'.",&tolua_err); #endif return 0; @@ -43920,11 +43920,11 @@ int lua_register_cocos2dx_TransitionFadeTR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeTR"); tolua_cclass(tolua_S,"TransitionFadeTR","cc.TransitionFadeTR","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeTR"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionFadeTR_easeActionWithAction); - tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionFadeTR_actionWithSize); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeTR_create); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionFadeTR_easeActionWithAction); + tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionFadeTR_actionWithSize); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeTR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeTR).name(); g_luaType[typeName] = "cc.TransitionFadeTR"; @@ -43936,17 +43936,17 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeBL",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43965,7 +43965,7 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeBL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeBL_create'.",&tolua_err); #endif return 0; @@ -43980,9 +43980,9 @@ int lua_register_cocos2dx_TransitionFadeBL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeBL"); tolua_cclass(tolua_S,"TransitionFadeBL","cc.TransitionFadeBL","cc.TransitionFadeTR",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeBL"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeBL).name(); g_luaType[typeName] = "cc.TransitionFadeBL"; @@ -43994,17 +43994,17 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeUp",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44023,7 +44023,7 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeUp:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeUp_create'.",&tolua_err); #endif return 0; @@ -44038,9 +44038,9 @@ int lua_register_cocos2dx_TransitionFadeUp(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeUp"); tolua_cclass(tolua_S,"TransitionFadeUp","cc.TransitionFadeUp","cc.TransitionFadeTR",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeUp"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeUp).name(); g_luaType[typeName] = "cc.TransitionFadeUp"; @@ -44052,17 +44052,17 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeDown",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44081,7 +44081,7 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeDown:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeDown_create'.",&tolua_err); #endif return 0; @@ -44096,9 +44096,9 @@ int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeDown"); tolua_cclass(tolua_S,"TransitionFadeDown","cc.TransitionFadeDown","cc.TransitionFadeTR",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeDown"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeDown).name(); g_luaType[typeName] = "cc.TransitionFadeDown"; @@ -44111,31 +44111,31 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TransitionPageTurn:actionWithSize"); if(!ok) { @@ -44148,12 +44148,12 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:actionWithSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) @@ -44161,37 +44161,37 @@ int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; cocos2d::Scene* arg1; bool arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionPageTurn:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1); - + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TransitionPageTurn:initWithDuration"); if(!ok) { @@ -44204,29 +44204,29 @@ int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:initWithDuration",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -44247,7 +44247,7 @@ int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionPageTurn:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_create'.",&tolua_err); #endif return 0; @@ -44262,11 +44262,11 @@ int lua_register_cocos2dx_TransitionPageTurn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionPageTurn"); tolua_cclass(tolua_S,"TransitionPageTurn","cc.TransitionPageTurn","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionPageTurn"); - tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionPageTurn_actionWithSize); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionPageTurn_initWithDuration); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionPageTurn_create); + tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionPageTurn_actionWithSize); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionPageTurn_initWithDuration); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionPageTurn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionPageTurn).name(); g_luaType[typeName] = "cc.TransitionPageTurn"; @@ -44278,17 +44278,17 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgress",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44307,7 +44307,7 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgress:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgress_create'.",&tolua_err); #endif return 0; @@ -44322,9 +44322,9 @@ int lua_register_cocos2dx_TransitionProgress(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgress"); tolua_cclass(tolua_S,"TransitionProgress","cc.TransitionProgress","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgress"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgress).name(); g_luaType[typeName] = "cc.TransitionProgress"; @@ -44336,17 +44336,17 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressRadialCCW",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44365,7 +44365,7 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCCW:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCCW_create'.",&tolua_err); #endif return 0; @@ -44380,9 +44380,9 @@ int lua_register_cocos2dx_TransitionProgressRadialCCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCCW"); tolua_cclass(tolua_S,"TransitionProgressRadialCCW","cc.TransitionProgressRadialCCW","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressRadialCCW"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCCW).name(); g_luaType[typeName] = "cc.TransitionProgressRadialCCW"; @@ -44394,17 +44394,17 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressRadialCW",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44423,7 +44423,7 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCW:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCW_create'.",&tolua_err); #endif return 0; @@ -44438,9 +44438,9 @@ int lua_register_cocos2dx_TransitionProgressRadialCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCW"); tolua_cclass(tolua_S,"TransitionProgressRadialCW","cc.TransitionProgressRadialCW","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressRadialCW"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCW).name(); g_luaType[typeName] = "cc.TransitionProgressRadialCW"; @@ -44452,17 +44452,17 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressHorizontal",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44481,7 +44481,7 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressHorizontal:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressHorizontal_create'.",&tolua_err); #endif return 0; @@ -44496,9 +44496,9 @@ int lua_register_cocos2dx_TransitionProgressHorizontal(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressHorizontal"); tolua_cclass(tolua_S,"TransitionProgressHorizontal","cc.TransitionProgressHorizontal","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressHorizontal"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressHorizontal).name(); g_luaType[typeName] = "cc.TransitionProgressHorizontal"; @@ -44510,17 +44510,17 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressVertical",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44539,7 +44539,7 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressVertical:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressVertical_create'.",&tolua_err); #endif return 0; @@ -44554,9 +44554,9 @@ int lua_register_cocos2dx_TransitionProgressVertical(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressVertical"); tolua_cclass(tolua_S,"TransitionProgressVertical","cc.TransitionProgressVertical","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressVertical"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressVertical).name(); g_luaType[typeName] = "cc.TransitionProgressVertical"; @@ -44568,17 +44568,17 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44597,7 +44597,7 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressInOut_create'.",&tolua_err); #endif return 0; @@ -44612,9 +44612,9 @@ int lua_register_cocos2dx_TransitionProgressInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressInOut"); tolua_cclass(tolua_S,"TransitionProgressInOut","cc.TransitionProgressInOut","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressInOut).name(); g_luaType[typeName] = "cc.TransitionProgressInOut"; @@ -44626,17 +44626,17 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressOutIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44655,7 +44655,7 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressOutIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressOutIn_create'.",&tolua_err); #endif return 0; @@ -44670,9 +44670,9 @@ int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressOutIn"); tolua_cclass(tolua_S,"TransitionProgressOutIn","cc.TransitionProgressOutIn","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressOutIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressOutIn).name(); g_luaType[typeName] = "cc.TransitionProgressOutIn"; @@ -44685,31 +44685,31 @@ int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MenuItem:setEnabled"); if(!ok) { @@ -44721,12 +44721,12 @@ int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) @@ -44734,28 +44734,28 @@ int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_activate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44767,12 +44767,12 @@ int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:activate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_activate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) @@ -44780,28 +44780,28 @@ int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44814,12 +44814,12 @@ int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) @@ -44827,28 +44827,28 @@ int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_selected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44860,12 +44860,12 @@ int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:selected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_selected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) @@ -44873,28 +44873,28 @@ int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_isSelected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44907,12 +44907,12 @@ int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:isSelected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_isSelected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) @@ -44920,28 +44920,28 @@ int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_unselected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44953,12 +44953,12 @@ int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:unselected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_unselected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) @@ -44966,28 +44966,28 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_rect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45000,12 +45000,12 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:rect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_rect'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItem_finalize(lua_State* tolua_S) @@ -45018,15 +45018,15 @@ int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItem"); tolua_cclass(tolua_S,"MenuItem","cc.MenuItem","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"MenuItem"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItem_setEnabled); - tolua_function(tolua_S,"activate",lua_cocos2dx_MenuItem_activate); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_MenuItem_isEnabled); - tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItem_selected); - tolua_function(tolua_S,"isSelected",lua_cocos2dx_MenuItem_isSelected); - tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItem_unselected); - tolua_function(tolua_S,"rect",lua_cocos2dx_MenuItem_rect); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItem_setEnabled); + tolua_function(tolua_S,"activate",lua_cocos2dx_MenuItem_activate); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_MenuItem_isEnabled); + tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItem_selected); + tolua_function(tolua_S,"isSelected",lua_cocos2dx_MenuItem_isSelected); + tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItem_unselected); + tolua_function(tolua_S,"rect",lua_cocos2dx_MenuItem_rect); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItem).name(); g_luaType[typeName] = "cc.MenuItem"; @@ -45039,28 +45039,28 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45073,12 +45073,12 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getDisabledColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) @@ -45086,31 +45086,31 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemLabel:setString"); if(!ok) { @@ -45122,12 +45122,12 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) @@ -45135,31 +45135,31 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45171,12 +45171,12 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setLabel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setLabel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) @@ -45184,31 +45184,31 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MenuItemLabel:setDisabledColor"); if(!ok) { @@ -45220,12 +45220,12 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setDisabledColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) @@ -45233,28 +45233,28 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getLabel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45267,12 +45267,12 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getLabel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getLabel'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemLabel_finalize(lua_State* tolua_S) @@ -45285,13 +45285,13 @@ int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemLabel"); tolua_cclass(tolua_S,"MenuItemLabel","cc.MenuItemLabel","cc.MenuItem",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemLabel"); - tolua_function(tolua_S,"getDisabledColor",lua_cocos2dx_MenuItemLabel_getDisabledColor); - tolua_function(tolua_S,"setString",lua_cocos2dx_MenuItemLabel_setString); - tolua_function(tolua_S,"setLabel",lua_cocos2dx_MenuItemLabel_setLabel); - tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); - tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); + tolua_function(tolua_S,"getDisabledColor",lua_cocos2dx_MenuItemLabel_getDisabledColor); + tolua_function(tolua_S,"setString",lua_cocos2dx_MenuItemLabel_setString); + tolua_function(tolua_S,"setLabel",lua_cocos2dx_MenuItemLabel_setLabel); + tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); + tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemLabel).name(); g_luaType[typeName] = "cc.MenuItemLabel"; @@ -45309,7 +45309,7 @@ int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemAtlasFont"); tolua_cclass(tolua_S,"MenuItemAtlasFont","cc.MenuItemAtlasFont","cc.MenuItemLabel",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemAtlasFont"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemAtlasFont).name(); @@ -45323,28 +45323,28 @@ int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45357,12 +45357,12 @@ int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:getFontSizeObj",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) @@ -45370,28 +45370,28 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45404,12 +45404,12 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:getFontNameObj",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) @@ -45417,31 +45417,31 @@ int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.MenuItemFont:setFontSizeObj"); if(!ok) { @@ -45453,12 +45453,12 @@ int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:setFontSizeObj",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) @@ -45466,31 +45466,31 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemFont:setFontNameObj"); if(!ok) { @@ -45502,29 +45502,29 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:setFontNameObj",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -45540,7 +45540,7 @@ int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:setFontName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontName'.",&tolua_err); #endif return 0; @@ -45549,17 +45549,17 @@ int lua_cocos2dx_MenuItemFont_getFontSize(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -45574,7 +45574,7 @@ int lua_cocos2dx_MenuItemFont_getFontSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:getFontSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSize'.",&tolua_err); #endif return 0; @@ -45583,17 +45583,17 @@ int lua_cocos2dx_MenuItemFont_getFontName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -45608,7 +45608,7 @@ int lua_cocos2dx_MenuItemFont_getFontName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:getFontName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontName'.",&tolua_err); #endif return 0; @@ -45617,17 +45617,17 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -45643,7 +45643,7 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:setFontSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSize'.",&tolua_err); #endif return 0; @@ -45658,16 +45658,16 @@ int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemFont"); tolua_cclass(tolua_S,"MenuItemFont","cc.MenuItemFont","cc.MenuItemLabel",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemFont"); - tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); - tolua_function(tolua_S,"getFontNameObj",lua_cocos2dx_MenuItemFont_getFontNameObj); - tolua_function(tolua_S,"setFontSizeObj",lua_cocos2dx_MenuItemFont_setFontSizeObj); - tolua_function(tolua_S,"setFontNameObj",lua_cocos2dx_MenuItemFont_setFontNameObj); - tolua_function(tolua_S,"setFontName", lua_cocos2dx_MenuItemFont_setFontName); - tolua_function(tolua_S,"getFontSize", lua_cocos2dx_MenuItemFont_getFontSize); - tolua_function(tolua_S,"getFontName", lua_cocos2dx_MenuItemFont_getFontName); - tolua_function(tolua_S,"setFontSize", lua_cocos2dx_MenuItemFont_setFontSize); + tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); + tolua_function(tolua_S,"getFontNameObj",lua_cocos2dx_MenuItemFont_getFontNameObj); + tolua_function(tolua_S,"setFontSizeObj",lua_cocos2dx_MenuItemFont_setFontSizeObj); + tolua_function(tolua_S,"setFontNameObj",lua_cocos2dx_MenuItemFont_setFontNameObj); + tolua_function(tolua_S,"setFontName", lua_cocos2dx_MenuItemFont_setFontName); + tolua_function(tolua_S,"getFontSize", lua_cocos2dx_MenuItemFont_getFontSize); + tolua_function(tolua_S,"getFontName", lua_cocos2dx_MenuItemFont_getFontName); + tolua_function(tolua_S,"setFontSize", lua_cocos2dx_MenuItemFont_setFontSize); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemFont).name(); g_luaType[typeName] = "cc.MenuItemFont"; @@ -45680,31 +45680,31 @@ int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MenuItemSprite:setEnabled"); if(!ok) { @@ -45716,12 +45716,12 @@ int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) @@ -45729,28 +45729,28 @@ int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_selected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45762,12 +45762,12 @@ int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:selected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_selected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) @@ -45775,31 +45775,31 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45811,12 +45811,12 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setNormalImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) @@ -45824,31 +45824,31 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45860,12 +45860,12 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setDisabledImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) @@ -45873,31 +45873,31 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45909,12 +45909,12 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setSelectedImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) @@ -45922,28 +45922,28 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45956,12 +45956,12 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getDisabledImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) @@ -45969,28 +45969,28 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46003,12 +46003,12 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getSelectedImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) @@ -46016,28 +46016,28 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46050,12 +46050,12 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getNormalImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) @@ -46063,28 +46063,28 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_unselected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46096,12 +46096,12 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:unselected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_unselected'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemSprite_finalize(lua_State* tolua_S) @@ -46114,17 +46114,17 @@ int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemSprite"); tolua_cclass(tolua_S,"MenuItemSprite","cc.MenuItemSprite","cc.MenuItem",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemSprite"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItemSprite_setEnabled); - tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItemSprite_selected); - tolua_function(tolua_S,"setNormalImage",lua_cocos2dx_MenuItemSprite_setNormalImage); - tolua_function(tolua_S,"setDisabledImage",lua_cocos2dx_MenuItemSprite_setDisabledImage); - tolua_function(tolua_S,"setSelectedImage",lua_cocos2dx_MenuItemSprite_setSelectedImage); - tolua_function(tolua_S,"getDisabledImage",lua_cocos2dx_MenuItemSprite_getDisabledImage); - tolua_function(tolua_S,"getSelectedImage",lua_cocos2dx_MenuItemSprite_getSelectedImage); - tolua_function(tolua_S,"getNormalImage",lua_cocos2dx_MenuItemSprite_getNormalImage); - tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItemSprite_unselected); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItemSprite_setEnabled); + tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItemSprite_selected); + tolua_function(tolua_S,"setNormalImage",lua_cocos2dx_MenuItemSprite_setNormalImage); + tolua_function(tolua_S,"setDisabledImage",lua_cocos2dx_MenuItemSprite_setDisabledImage); + tolua_function(tolua_S,"setSelectedImage",lua_cocos2dx_MenuItemSprite_setSelectedImage); + tolua_function(tolua_S,"getDisabledImage",lua_cocos2dx_MenuItemSprite_getDisabledImage); + tolua_function(tolua_S,"getSelectedImage",lua_cocos2dx_MenuItemSprite_getSelectedImage); + tolua_function(tolua_S,"getNormalImage",lua_cocos2dx_MenuItemSprite_getNormalImage); + tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItemSprite_unselected); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemSprite).name(); g_luaType[typeName] = "cc.MenuItemSprite"; @@ -46137,31 +46137,31 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -46173,12 +46173,12 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setDisabledSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) @@ -46186,31 +46186,31 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -46222,12 +46222,12 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setSelectedSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) @@ -46235,31 +46235,31 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -46271,12 +46271,12 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setNormalSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemImage_finalize(lua_State* tolua_S) @@ -46289,11 +46289,11 @@ int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemImage"); tolua_cclass(tolua_S,"MenuItemImage","cc.MenuItemImage","cc.MenuItemSprite",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemImage"); - tolua_function(tolua_S,"setDisabledSpriteFrame",lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame); - tolua_function(tolua_S,"setSelectedSpriteFrame",lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame); - tolua_function(tolua_S,"setNormalSpriteFrame",lua_cocos2dx_MenuItemImage_setNormalSpriteFrame); + tolua_function(tolua_S,"setDisabledSpriteFrame",lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame); + tolua_function(tolua_S,"setSelectedSpriteFrame",lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame); + tolua_function(tolua_S,"setNormalSpriteFrame",lua_cocos2dx_MenuItemImage_setNormalSpriteFrame); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemImage).name(); g_luaType[typeName] = "cc.MenuItemImage"; @@ -46306,31 +46306,31 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_setSubItems'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.MenuItemToggle:setSubItems"); if(!ok) { @@ -46342,12 +46342,12 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:setSubItems",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_setSubItems'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) @@ -46355,28 +46355,28 @@ int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46389,12 +46389,12 @@ int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedIndex",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) @@ -46402,31 +46402,31 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_addSubItem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MenuItem* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0); if(!ok) { @@ -46438,12 +46438,12 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:addSubItem",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_addSubItem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) @@ -46451,28 +46451,28 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46485,12 +46485,12 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedItem",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) @@ -46498,31 +46498,31 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.MenuItemToggle:setSelectedIndex"); if(!ok) { @@ -46534,12 +46534,12 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:setSelectedIndex",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemToggle_finalize(lua_State* tolua_S) @@ -46552,13 +46552,13 @@ int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemToggle"); tolua_cclass(tolua_S,"MenuItemToggle","cc.MenuItemToggle","cc.MenuItem",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemToggle"); - tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); - tolua_function(tolua_S,"getSelectedIndex",lua_cocos2dx_MenuItemToggle_getSelectedIndex); - tolua_function(tolua_S,"addSubItem",lua_cocos2dx_MenuItemToggle_addSubItem); - tolua_function(tolua_S,"getSelectedItem",lua_cocos2dx_MenuItemToggle_getSelectedItem); - tolua_function(tolua_S,"setSelectedIndex",lua_cocos2dx_MenuItemToggle_setSelectedIndex); + tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); + tolua_function(tolua_S,"getSelectedIndex",lua_cocos2dx_MenuItemToggle_getSelectedIndex); + tolua_function(tolua_S,"addSubItem",lua_cocos2dx_MenuItemToggle_addSubItem); + tolua_function(tolua_S,"getSelectedItem",lua_cocos2dx_MenuItemToggle_getSelectedItem); + tolua_function(tolua_S,"setSelectedIndex",lua_cocos2dx_MenuItemToggle_setSelectedIndex); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemToggle).name(); g_luaType[typeName] = "cc.MenuItemToggle"; @@ -46571,31 +46571,31 @@ int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Menu:setEnabled"); if(!ok) { @@ -46607,12 +46607,12 @@ int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) @@ -46620,28 +46620,28 @@ int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsVertically'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46653,12 +46653,12 @@ int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsVertically",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsVertically'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) @@ -46666,28 +46666,28 @@ int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46700,12 +46700,12 @@ int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) @@ -46713,31 +46713,31 @@ int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Menu:alignItemsHorizontallyWithPadding"); if(!ok) { @@ -46749,12 +46749,12 @@ int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsHorizontallyWithPadding",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) @@ -46762,31 +46762,31 @@ int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Menu:alignItemsVerticallyWithPadding"); if(!ok) { @@ -46798,12 +46798,12 @@ int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsVerticallyWithPadding",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) @@ -46811,28 +46811,28 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsHorizontally'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46844,12 +46844,12 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsHorizontally",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsHorizontally'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Menu_finalize(lua_State* tolua_S) @@ -46862,14 +46862,14 @@ int lua_register_cocos2dx_Menu(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Menu"); tolua_cclass(tolua_S,"Menu","cc.Menu","cc.Layer",nullptr); - + tolua_beginmodule(tolua_S,"Menu"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Menu_setEnabled); - tolua_function(tolua_S,"alignItemsVertically",lua_cocos2dx_Menu_alignItemsVertically); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Menu_isEnabled); - tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding); - tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_cocos2dx_Menu_alignItemsVerticallyWithPadding); - tolua_function(tolua_S,"alignItemsHorizontally",lua_cocos2dx_Menu_alignItemsHorizontally); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Menu_setEnabled); + tolua_function(tolua_S,"alignItemsVertically",lua_cocos2dx_Menu_alignItemsVertically); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Menu_isEnabled); + tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding); + tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_cocos2dx_Menu_alignItemsVerticallyWithPadding); + tolua_function(tolua_S,"alignItemsHorizontally",lua_cocos2dx_Menu_alignItemsHorizontally); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Menu).name(); g_luaType[typeName] = "cc.Menu"; @@ -46882,28 +46882,28 @@ int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_hasContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46916,12 +46916,12 @@ int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:hasContent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_hasContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) @@ -46929,31 +46929,31 @@ int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setInverted'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ClippingNode:setInverted"); if(!ok) { @@ -46965,12 +46965,12 @@ int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setInverted",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setInverted'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) @@ -46978,31 +46978,31 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -47014,12 +47014,12 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setStencil",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) @@ -47027,28 +47027,28 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47061,12 +47061,12 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getAlphaThreshold",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) @@ -47074,28 +47074,28 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_getStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47108,12 +47108,12 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getStencil",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_getStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) @@ -47121,31 +47121,31 @@ int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ClippingNode:setAlphaThreshold"); if(!ok) { @@ -47157,12 +47157,12 @@ int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setAlphaThreshold",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) @@ -47170,28 +47170,28 @@ int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_isInverted'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47204,12 +47204,12 @@ int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:isInverted",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_isInverted'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) @@ -47219,14 +47219,14 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -47239,7 +47239,7 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -47252,7 +47252,7 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ClippingNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_create'.",&tolua_err); #endif return 0; @@ -47267,16 +47267,16 @@ int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingNode"); tolua_cclass(tolua_S,"ClippingNode","cc.ClippingNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ClippingNode"); - tolua_function(tolua_S,"hasContent",lua_cocos2dx_ClippingNode_hasContent); - tolua_function(tolua_S,"setInverted",lua_cocos2dx_ClippingNode_setInverted); - tolua_function(tolua_S,"setStencil",lua_cocos2dx_ClippingNode_setStencil); - tolua_function(tolua_S,"getAlphaThreshold",lua_cocos2dx_ClippingNode_getAlphaThreshold); - tolua_function(tolua_S,"getStencil",lua_cocos2dx_ClippingNode_getStencil); - tolua_function(tolua_S,"setAlphaThreshold",lua_cocos2dx_ClippingNode_setAlphaThreshold); - tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); - tolua_function(tolua_S,"create", lua_cocos2dx_ClippingNode_create); + tolua_function(tolua_S,"hasContent",lua_cocos2dx_ClippingNode_hasContent); + tolua_function(tolua_S,"setInverted",lua_cocos2dx_ClippingNode_setInverted); + tolua_function(tolua_S,"setStencil",lua_cocos2dx_ClippingNode_setStencil); + tolua_function(tolua_S,"getAlphaThreshold",lua_cocos2dx_ClippingNode_getAlphaThreshold); + tolua_function(tolua_S,"getStencil",lua_cocos2dx_ClippingNode_getStencil); + tolua_function(tolua_S,"setAlphaThreshold",lua_cocos2dx_ClippingNode_setAlphaThreshold); + tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); + tolua_function(tolua_S,"create", lua_cocos2dx_ClippingNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ClippingNode).name(); g_luaType[typeName] = "cc.ClippingNode"; @@ -47289,28 +47289,28 @@ int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47323,12 +47323,12 @@ int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:isClippingEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) @@ -47336,31 +47336,31 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ClippingRectangleNode:setClippingEnabled"); if(!ok) { @@ -47372,12 +47372,12 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:setClippingEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) @@ -47385,28 +47385,28 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47419,12 +47419,12 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:getClippingRegion",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) @@ -47432,31 +47432,31 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ClippingRectangleNode:setClippingRegion"); if(!ok) { @@ -47468,12 +47468,12 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:setClippingRegion",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) @@ -47483,14 +47483,14 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 0) { @@ -47500,7 +47500,7 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -47516,7 +47516,7 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ClippingRectangleNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_create'.",&tolua_err); #endif return 0; @@ -47531,13 +47531,13 @@ int lua_register_cocos2dx_ClippingRectangleNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingRectangleNode"); tolua_cclass(tolua_S,"ClippingRectangleNode","cc.ClippingRectangleNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ClippingRectangleNode"); - tolua_function(tolua_S,"isClippingEnabled",lua_cocos2dx_ClippingRectangleNode_isClippingEnabled); - tolua_function(tolua_S,"setClippingEnabled",lua_cocos2dx_ClippingRectangleNode_setClippingEnabled); - tolua_function(tolua_S,"getClippingRegion",lua_cocos2dx_ClippingRectangleNode_getClippingRegion); - tolua_function(tolua_S,"setClippingRegion",lua_cocos2dx_ClippingRectangleNode_setClippingRegion); - tolua_function(tolua_S,"create", lua_cocos2dx_ClippingRectangleNode_create); + tolua_function(tolua_S,"isClippingEnabled",lua_cocos2dx_ClippingRectangleNode_isClippingEnabled); + tolua_function(tolua_S,"setClippingEnabled",lua_cocos2dx_ClippingRectangleNode_setClippingEnabled); + tolua_function(tolua_S,"getClippingRegion",lua_cocos2dx_ClippingRectangleNode_getClippingRegion); + tolua_function(tolua_S,"setClippingRegion",lua_cocos2dx_ClippingRectangleNode_setClippingRegion); + tolua_function(tolua_S,"create", lua_cocos2dx_ClippingRectangleNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ClippingRectangleNode).name(); g_luaType[typeName] = "cc.ClippingRectangleNode"; @@ -47550,28 +47550,28 @@ int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_reset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47583,12 +47583,12 @@ int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:reset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_reset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) @@ -47596,31 +47596,31 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -47632,12 +47632,12 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) @@ -47645,28 +47645,28 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47679,12 +47679,12 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) @@ -47692,31 +47692,31 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_tintWithColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MotionStreak:tintWithColor"); if(!ok) { @@ -47728,12 +47728,12 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:tintWithColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_tintWithColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) @@ -47741,31 +47741,31 @@ int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak:setStartingPositionInitialized"); if(!ok) { @@ -47777,12 +47777,12 @@ int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setStartingPositionInitialized",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) @@ -47790,28 +47790,28 @@ int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47824,12 +47824,12 @@ int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:isStartingPositionInitialized",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) @@ -47837,28 +47837,28 @@ int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_isFastMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47871,12 +47871,12 @@ int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:isFastMode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_isFastMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) @@ -47884,31 +47884,31 @@ int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setFastMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak:setFastMode"); if(!ok) { @@ -47920,12 +47920,12 @@ int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setFastMode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setFastMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) @@ -47935,14 +47935,14 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -47967,7 +47967,7 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 5) { @@ -47995,7 +47995,7 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.MotionStreak:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_create'.",&tolua_err); #endif return 0; @@ -48010,17 +48010,17 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MotionStreak"); tolua_cclass(tolua_S,"MotionStreak","cc.MotionStreak","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"MotionStreak"); - tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak_reset); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_MotionStreak_setTexture); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_MotionStreak_getTexture); - tolua_function(tolua_S,"tintWithColor",lua_cocos2dx_MotionStreak_tintWithColor); - tolua_function(tolua_S,"setStartingPositionInitialized",lua_cocos2dx_MotionStreak_setStartingPositionInitialized); - tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak_isStartingPositionInitialized); - tolua_function(tolua_S,"isFastMode",lua_cocos2dx_MotionStreak_isFastMode); - tolua_function(tolua_S,"setFastMode",lua_cocos2dx_MotionStreak_setFastMode); - tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); + tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak_reset); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_MotionStreak_setTexture); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_MotionStreak_getTexture); + tolua_function(tolua_S,"tintWithColor",lua_cocos2dx_MotionStreak_tintWithColor); + tolua_function(tolua_S,"setStartingPositionInitialized",lua_cocos2dx_MotionStreak_setStartingPositionInitialized); + tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak_isStartingPositionInitialized); + tolua_function(tolua_S,"isFastMode",lua_cocos2dx_MotionStreak_isFastMode); + tolua_function(tolua_S,"setFastMode",lua_cocos2dx_MotionStreak_setFastMode); + tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MotionStreak).name(); g_luaType[typeName] = "cc.MotionStreak"; @@ -48033,28 +48033,28 @@ int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48067,12 +48067,12 @@ int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:isReverseDirection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) @@ -48080,31 +48080,31 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setBarChangeRate"); if(!ok) { @@ -48116,12 +48116,12 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setBarChangeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) @@ -48129,28 +48129,28 @@ int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getPercentage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48163,12 +48163,12 @@ int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getPercentage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getPercentage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) @@ -48176,31 +48176,31 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -48212,12 +48212,12 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setSprite",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) @@ -48225,28 +48225,28 @@ int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48259,12 +48259,12 @@ int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) @@ -48272,28 +48272,28 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48306,12 +48306,12 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getSprite",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) @@ -48319,31 +48319,31 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setMidpoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setMidpoint"); if(!ok) { @@ -48355,12 +48355,12 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setMidpoint",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setMidpoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) @@ -48368,28 +48368,28 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48402,12 +48402,12 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getBarChangeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) @@ -48418,7 +48418,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif @@ -48435,7 +48435,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection"); - + if (!ok) { break; } cobj->setReverseDirection(arg0); return 0; @@ -48446,7 +48446,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection"); - + if (!ok) { break; } cobj->setReverseProgress(arg0); return 0; @@ -48455,12 +48455,12 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setReverseProgress",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) @@ -48468,28 +48468,28 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getMidpoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48502,12 +48502,12 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getMidpoint",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getMidpoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) @@ -48515,31 +48515,31 @@ int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setPercentage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressTimer:setPercentage"); if(!ok) { @@ -48551,12 +48551,12 @@ int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setPercentage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setPercentage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) @@ -48564,31 +48564,31 @@ int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ProgressTimer::Type arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProgressTimer:setType"); if(!ok) { @@ -48600,29 +48600,29 @@ int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setType",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Sprite* arg0; @@ -48639,7 +48639,7 @@ int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTimer:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_create'.",&tolua_err); #endif return 0; @@ -48654,21 +48654,21 @@ int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTimer"); tolua_cclass(tolua_S,"ProgressTimer","cc.ProgressTimer","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ProgressTimer"); - tolua_function(tolua_S,"isReverseDirection",lua_cocos2dx_ProgressTimer_isReverseDirection); - tolua_function(tolua_S,"setBarChangeRate",lua_cocos2dx_ProgressTimer_setBarChangeRate); - tolua_function(tolua_S,"getPercentage",lua_cocos2dx_ProgressTimer_getPercentage); - tolua_function(tolua_S,"setSprite",lua_cocos2dx_ProgressTimer_setSprite); - tolua_function(tolua_S,"getType",lua_cocos2dx_ProgressTimer_getType); - tolua_function(tolua_S,"getSprite",lua_cocos2dx_ProgressTimer_getSprite); - tolua_function(tolua_S,"setMidpoint",lua_cocos2dx_ProgressTimer_setMidpoint); - tolua_function(tolua_S,"getBarChangeRate",lua_cocos2dx_ProgressTimer_getBarChangeRate); - tolua_function(tolua_S,"setReverseDirection",lua_cocos2dx_ProgressTimer_setReverseDirection); - tolua_function(tolua_S,"getMidpoint",lua_cocos2dx_ProgressTimer_getMidpoint); - tolua_function(tolua_S,"setPercentage",lua_cocos2dx_ProgressTimer_setPercentage); - tolua_function(tolua_S,"setType",lua_cocos2dx_ProgressTimer_setType); - tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTimer_create); + tolua_function(tolua_S,"isReverseDirection",lua_cocos2dx_ProgressTimer_isReverseDirection); + tolua_function(tolua_S,"setBarChangeRate",lua_cocos2dx_ProgressTimer_setBarChangeRate); + tolua_function(tolua_S,"getPercentage",lua_cocos2dx_ProgressTimer_getPercentage); + tolua_function(tolua_S,"setSprite",lua_cocos2dx_ProgressTimer_setSprite); + tolua_function(tolua_S,"getType",lua_cocos2dx_ProgressTimer_getType); + tolua_function(tolua_S,"getSprite",lua_cocos2dx_ProgressTimer_getSprite); + tolua_function(tolua_S,"setMidpoint",lua_cocos2dx_ProgressTimer_setMidpoint); + tolua_function(tolua_S,"getBarChangeRate",lua_cocos2dx_ProgressTimer_getBarChangeRate); + tolua_function(tolua_S,"setReverseDirection",lua_cocos2dx_ProgressTimer_setReverseDirection); + tolua_function(tolua_S,"getMidpoint",lua_cocos2dx_ProgressTimer_getMidpoint); + tolua_function(tolua_S,"setPercentage",lua_cocos2dx_ProgressTimer_setPercentage); + tolua_function(tolua_S,"setType",lua_cocos2dx_ProgressTimer_setType); + tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTimer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTimer).name(); g_luaType[typeName] = "cc.ProgressTimer"; @@ -48684,7 +48684,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif @@ -48701,7 +48701,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); - + if (!ok) { break; } cobj->setSpriteFrame(arg0); return 0; @@ -48712,7 +48712,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setSpriteFrame"); - + if (!ok) { break; } cobj->setSpriteFrame(arg0); return 0; @@ -48721,12 +48721,12 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) @@ -48737,7 +48737,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif @@ -48754,7 +48754,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + if (!ok) { break; } cobj->setTexture(arg0); return 0; @@ -48765,7 +48765,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setTexture"); - + if (!ok) { break; } cobj->setTexture(arg0); return 0; @@ -48774,12 +48774,12 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) @@ -48787,28 +48787,28 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48821,12 +48821,12 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) @@ -48834,31 +48834,31 @@ int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setFlippedY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setFlippedY"); if(!ok) { @@ -48870,12 +48870,12 @@ int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setFlippedY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setFlippedY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) @@ -48883,31 +48883,31 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setFlippedX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setFlippedX"); if(!ok) { @@ -48919,12 +48919,12 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setFlippedX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setFlippedX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) @@ -48932,28 +48932,28 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48966,12 +48966,12 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getBatchNode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) @@ -48979,28 +48979,28 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getOffsetPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49013,12 +49013,12 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getOffsetPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getOffsetPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -49026,31 +49026,31 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:removeAllChildrenWithCleanup"); if(!ok) { @@ -49062,12 +49062,12 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) @@ -49075,28 +49075,28 @@ int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_updateTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49108,12 +49108,12 @@ int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:updateTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_updateTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) @@ -49124,7 +49124,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif @@ -49141,15 +49141,15 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) if (argc == 3) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } cocos2d::Size arg2; ok &= luaval_to_size(tolua_S, 4, &arg2, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } cobj->setTextureRect(arg0, arg1, arg2); return 0; @@ -49160,7 +49160,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } cobj->setTextureRect(arg0); return 0; @@ -49169,12 +49169,12 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTextureRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTextureRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) @@ -49182,31 +49182,31 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFrameDisplayed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -49219,12 +49219,12 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFrameDisplayed",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFrameDisplayed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) @@ -49232,28 +49232,28 @@ int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49266,12 +49266,12 @@ int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getAtlasIndex",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) @@ -49279,31 +49279,31 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteBatchNode* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteBatchNode",&arg0); if(!ok) { @@ -49315,12 +49315,12 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setBatchNode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) @@ -49328,34 +49328,34 @@ int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; ssize_t arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setDisplayFrameWithAnimationName"); - + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.Sprite:setDisplayFrameWithAnimationName"); if(!ok) { @@ -49367,12 +49367,12 @@ int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setDisplayFrameWithAnimationName",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) @@ -49380,31 +49380,31 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -49416,12 +49416,12 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) @@ -49429,28 +49429,28 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49463,12 +49463,12 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getSpriteFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) @@ -49476,28 +49476,28 @@ int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isDirty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49510,12 +49510,12 @@ int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isDirty",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isDirty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) @@ -49523,31 +49523,31 @@ int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { ssize_t arg0; - + ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.Sprite:setAtlasIndex"); if(!ok) { @@ -49559,12 +49559,12 @@ int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setAtlasIndex",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) @@ -49572,31 +49572,31 @@ int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setDirty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setDirty"); if(!ok) { @@ -49608,12 +49608,12 @@ int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setDirty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setDirty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) @@ -49621,28 +49621,28 @@ int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isTextureRectRotated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49655,12 +49655,12 @@ int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isTextureRectRotated",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isTextureRectRotated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) @@ -49668,28 +49668,28 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTextureRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49702,12 +49702,12 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTextureRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) @@ -49715,28 +49715,28 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49749,12 +49749,12 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) @@ -49762,28 +49762,28 @@ int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFlippedX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49796,12 +49796,12 @@ int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFlippedX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFlippedX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) @@ -49809,28 +49809,28 @@ int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFlippedY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49843,12 +49843,12 @@ int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFlippedY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFlippedY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) @@ -49856,31 +49856,31 @@ int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setVertexRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setVertexRect"); if(!ok) { @@ -49892,12 +49892,12 @@ int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setVertexRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setVertexRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_create(lua_State* tolua_S) @@ -49907,14 +49907,14 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -49927,7 +49927,7 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -49937,7 +49937,7 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -49956,7 +49956,7 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Sprite:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_create'.",&tolua_err); #endif return 0; @@ -49968,14 +49968,14 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -49991,7 +49991,7 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -50010,7 +50010,7 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -50026,7 +50026,7 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Sprite:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithTexture'.",&tolua_err); #endif return 0; @@ -50035,17 +50035,17 @@ int lua_cocos2dx_Sprite_createWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -50062,7 +50062,7 @@ int lua_cocos2dx_Sprite_createWithSpriteFrameName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrameName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithSpriteFrameName'.",&tolua_err); #endif return 0; @@ -50071,17 +50071,17 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::SpriteFrame* arg0; @@ -50098,7 +50098,7 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithSpriteFrame'.",&tolua_err); #endif return 0; @@ -50113,37 +50113,37 @@ int lua_register_cocos2dx_Sprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sprite"); tolua_cclass(tolua_S,"Sprite","cc.Sprite","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Sprite"); - tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_Sprite_setSpriteFrame); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite_setTexture); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_Sprite_getTexture); - tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_Sprite_setFlippedY); - tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_Sprite_setFlippedX); - tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_Sprite_getBatchNode); - tolua_function(tolua_S,"getOffsetPosition",lua_cocos2dx_Sprite_getOffsetPosition); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Sprite_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Sprite_updateTransform); - tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); - tolua_function(tolua_S,"isFrameDisplayed",lua_cocos2dx_Sprite_isFrameDisplayed); - tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_Sprite_getAtlasIndex); - tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_Sprite_setBatchNode); - tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_Sprite_setTextureAtlas); - tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_Sprite_getSpriteFrame); - tolua_function(tolua_S,"isDirty",lua_cocos2dx_Sprite_isDirty); - tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_Sprite_setAtlasIndex); - tolua_function(tolua_S,"setDirty",lua_cocos2dx_Sprite_setDirty); - tolua_function(tolua_S,"isTextureRectRotated",lua_cocos2dx_Sprite_isTextureRectRotated); - tolua_function(tolua_S,"getTextureRect",lua_cocos2dx_Sprite_getTextureRect); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_Sprite_getTextureAtlas); - tolua_function(tolua_S,"isFlippedX",lua_cocos2dx_Sprite_isFlippedX); - tolua_function(tolua_S,"isFlippedY",lua_cocos2dx_Sprite_isFlippedY); - tolua_function(tolua_S,"setVertexRect",lua_cocos2dx_Sprite_setVertexRect); - tolua_function(tolua_S,"create", lua_cocos2dx_Sprite_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_Sprite_createWithTexture); - tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_Sprite_createWithSpriteFrameName); - tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_Sprite_createWithSpriteFrame); + tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_Sprite_setSpriteFrame); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite_setTexture); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_Sprite_getTexture); + tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_Sprite_setFlippedY); + tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_Sprite_setFlippedX); + tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_Sprite_getBatchNode); + tolua_function(tolua_S,"getOffsetPosition",lua_cocos2dx_Sprite_getOffsetPosition); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Sprite_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Sprite_updateTransform); + tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); + tolua_function(tolua_S,"isFrameDisplayed",lua_cocos2dx_Sprite_isFrameDisplayed); + tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_Sprite_getAtlasIndex); + tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_Sprite_setBatchNode); + tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_Sprite_setTextureAtlas); + tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_Sprite_getSpriteFrame); + tolua_function(tolua_S,"isDirty",lua_cocos2dx_Sprite_isDirty); + tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_Sprite_setAtlasIndex); + tolua_function(tolua_S,"setDirty",lua_cocos2dx_Sprite_setDirty); + tolua_function(tolua_S,"isTextureRectRotated",lua_cocos2dx_Sprite_isTextureRectRotated); + tolua_function(tolua_S,"getTextureRect",lua_cocos2dx_Sprite_getTextureRect); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_Sprite_getTextureAtlas); + tolua_function(tolua_S,"isFlippedX",lua_cocos2dx_Sprite_isFlippedX); + tolua_function(tolua_S,"isFlippedY",lua_cocos2dx_Sprite_isFlippedY); + tolua_function(tolua_S,"setVertexRect",lua_cocos2dx_Sprite_setVertexRect); + tolua_function(tolua_S,"create", lua_cocos2dx_Sprite_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_Sprite_createWithTexture); + tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_Sprite_createWithSpriteFrameName); + tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_Sprite_createWithSpriteFrame); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sprite).name(); g_luaType[typeName] = "cc.Sprite"; @@ -50156,28 +50156,28 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50190,12 +50190,12 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:hasPremultipliedAlpha",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) @@ -50203,31 +50203,31 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_saveToFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:saveToFile"); if(!ok) { @@ -50238,13 +50238,13 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) tolua_pushboolean(tolua_S,(bool)ret); return 1; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:saveToFile"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Image:saveToFile"); if(!ok) { @@ -50257,12 +50257,12 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:saveToFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_saveToFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) @@ -50270,28 +50270,28 @@ int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_hasAlpha'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50304,12 +50304,12 @@ int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:hasAlpha",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_hasAlpha'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) @@ -50317,28 +50317,28 @@ int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_isCompressed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50351,12 +50351,12 @@ int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:isCompressed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_isCompressed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) @@ -50364,28 +50364,28 @@ int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50398,12 +50398,12 @@ int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getHeight",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) @@ -50411,31 +50411,31 @@ int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_initWithImageFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:initWithImageFile"); if(!ok) { @@ -50448,12 +50448,12 @@ int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:initWithImageFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_initWithImageFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) @@ -50461,28 +50461,28 @@ int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50495,12 +50495,12 @@ int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getWidth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) @@ -50508,28 +50508,28 @@ int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getBitPerPixel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50542,12 +50542,12 @@ int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getBitPerPixel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getBitPerPixel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) @@ -50555,28 +50555,28 @@ int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getFileType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50589,12 +50589,12 @@ int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getFileType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getFileType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) @@ -50602,28 +50602,28 @@ int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getNumberOfMipmaps'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50636,12 +50636,12 @@ int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getNumberOfMipmaps",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getNumberOfMipmaps'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) @@ -50649,28 +50649,28 @@ int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getRenderFormat'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50683,29 +50683,29 @@ int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getRenderFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getRenderFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -50721,7 +50721,7 @@ int lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Image:setPVRImagesHavePremultipliedAlpha",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha'.",&tolua_err); #endif return 0; @@ -50731,15 +50731,15 @@ int lua_cocos2dx_Image_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50755,11 +50755,11 @@ int lua_cocos2dx_Image_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:Image",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_constructor'.",&tolua_err); #endif - + return 0; } @@ -50773,21 +50773,21 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Image"); tolua_cclass(tolua_S,"Image","cc.Image","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Image"); - tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor); - tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Image_hasPremultipliedAlpha); - tolua_function(tolua_S,"saveToFile",lua_cocos2dx_Image_saveToFile); - tolua_function(tolua_S,"hasAlpha",lua_cocos2dx_Image_hasAlpha); - tolua_function(tolua_S,"isCompressed",lua_cocos2dx_Image_isCompressed); - tolua_function(tolua_S,"getHeight",lua_cocos2dx_Image_getHeight); - tolua_function(tolua_S,"initWithImageFile",lua_cocos2dx_Image_initWithImageFile); - tolua_function(tolua_S,"getWidth",lua_cocos2dx_Image_getWidth); - tolua_function(tolua_S,"getBitPerPixel",lua_cocos2dx_Image_getBitPerPixel); - tolua_function(tolua_S,"getFileType",lua_cocos2dx_Image_getFileType); - tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps); - tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat); - tolua_function(tolua_S,"setPVRImagesHavePremultipliedAlpha", lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha); + tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor); + tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Image_hasPremultipliedAlpha); + tolua_function(tolua_S,"saveToFile",lua_cocos2dx_Image_saveToFile); + tolua_function(tolua_S,"hasAlpha",lua_cocos2dx_Image_hasAlpha); + tolua_function(tolua_S,"isCompressed",lua_cocos2dx_Image_isCompressed); + tolua_function(tolua_S,"getHeight",lua_cocos2dx_Image_getHeight); + tolua_function(tolua_S,"initWithImageFile",lua_cocos2dx_Image_initWithImageFile); + tolua_function(tolua_S,"getWidth",lua_cocos2dx_Image_getWidth); + tolua_function(tolua_S,"getBitPerPixel",lua_cocos2dx_Image_getBitPerPixel); + tolua_function(tolua_S,"getFileType",lua_cocos2dx_Image_getFileType); + tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps); + tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat); + tolua_function(tolua_S,"setPVRImagesHavePremultipliedAlpha", lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Image).name(); g_luaType[typeName] = "cc.Image"; @@ -50800,37 +50800,37 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Rect arg1; cocos2d::Rect arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.RenderTexture:setVirtualViewport"); - + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.RenderTexture:setVirtualViewport"); - + ok &= luaval_to_rect(tolua_S, 4, &arg2, "cc.RenderTexture:setVirtualViewport"); if(!ok) { @@ -50842,12 +50842,12 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setVirtualViewport",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) @@ -50855,31 +50855,31 @@ int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clearStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:clearStencil"); if(!ok) { @@ -50891,12 +50891,12 @@ int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clearStencil",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clearStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) @@ -50904,28 +50904,28 @@ int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearDepth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50938,12 +50938,12 @@ int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearDepth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearDepth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) @@ -50951,28 +50951,28 @@ int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50985,12 +50985,12 @@ int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearStencil",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) @@ -50998,28 +50998,28 @@ int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_end'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51031,12 +51031,12 @@ int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:end",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_end'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) @@ -51044,31 +51044,31 @@ int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:setClearStencil"); if(!ok) { @@ -51080,12 +51080,12 @@ int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearStencil",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) @@ -51093,31 +51093,31 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -51129,12 +51129,12 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setSprite",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) @@ -51142,28 +51142,28 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51176,12 +51176,12 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getSprite",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) @@ -51189,28 +51189,28 @@ int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_isAutoDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51223,12 +51223,12 @@ int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:isAutoDraw",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_isAutoDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) @@ -51236,31 +51236,31 @@ int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:setKeepMatrix"); if(!ok) { @@ -51272,12 +51272,12 @@ int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setKeepMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) @@ -51285,31 +51285,31 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearFlags'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.RenderTexture:setClearFlags"); if(!ok) { @@ -51321,12 +51321,12 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearFlags",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearFlags'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) @@ -51334,28 +51334,28 @@ int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_begin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51367,12 +51367,12 @@ int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:begin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_begin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) @@ -51383,7 +51383,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif @@ -51400,11 +51400,11 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -51416,15 +51416,15 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -51436,23 +51436,23 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } std::function &)> arg3; do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -51464,7 +51464,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -51476,11 +51476,11 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -51492,19 +51492,19 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } std::function &)> arg2; do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -51514,12 +51514,12 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:saveToFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_saveToFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) @@ -51527,31 +51527,31 @@ int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setAutoDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:setAutoDraw"); if(!ok) { @@ -51563,12 +51563,12 @@ int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setAutoDraw",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setAutoDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) @@ -51576,31 +51576,31 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.RenderTexture:setClearColor"); if(!ok) { @@ -51612,12 +51612,12 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_endToLua(lua_State* tolua_S) @@ -51625,28 +51625,28 @@ int lua_cocos2dx_RenderTexture_endToLua(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_endToLua'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51658,12 +51658,12 @@ int lua_cocos2dx_RenderTexture_endToLua(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:endToLua",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_endToLua'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) @@ -51674,7 +51674,7 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif @@ -51691,23 +51691,23 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4); return 0; @@ -51718,19 +51718,19 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3); return 0; @@ -51741,27 +51741,27 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) if (argc == 6) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } int arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4, arg5); return 0; @@ -51770,12 +51770,12 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:beginWithClear",argc, 6); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_beginWithClear'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) @@ -51783,31 +51783,31 @@ int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clearDepth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:clearDepth"); if(!ok) { @@ -51819,12 +51819,12 @@ int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clearDepth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clearDepth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) @@ -51832,28 +51832,28 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51866,12 +51866,12 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) @@ -51879,40 +51879,40 @@ int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clear'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:clear"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:clear"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:clear"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:clear"); if(!ok) { @@ -51924,12 +51924,12 @@ int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clear",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clear'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) @@ -51937,28 +51937,28 @@ int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearFlags'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51971,12 +51971,12 @@ int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearFlags",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearFlags'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) @@ -51984,28 +51984,28 @@ int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_newImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52016,10 +52016,10 @@ int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) object_to_luaval(tolua_S, "cc.Image",(cocos2d::Image*)ret); return 1; } - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:newImage"); if(!ok) { @@ -52032,12 +52032,12 @@ int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:newImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_newImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) @@ -52045,31 +52045,31 @@ int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearDepth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:setClearDepth"); if(!ok) { @@ -52081,12 +52081,12 @@ int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearDepth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearDepth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) @@ -52097,7 +52097,7 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif @@ -52114,19 +52114,19 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) if (argc == 4) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } bool ret = cobj->initWithWidthAndHeight(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -52138,15 +52138,15 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } bool ret = cobj->initWithWidthAndHeight(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -52156,12 +52156,12 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:initWithWidthAndHeight",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_initWithWidthAndHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) @@ -52171,14 +52171,14 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -52197,7 +52197,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -52219,7 +52219,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -52238,7 +52238,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RenderTexture:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_create'.",&tolua_err); #endif return 0; @@ -52248,15 +52248,15 @@ int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52272,11 +52272,11 @@ int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:RenderTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_constructor'.",&tolua_err); #endif - + return 0; } @@ -52290,34 +52290,34 @@ int lua_register_cocos2dx_RenderTexture(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RenderTexture"); tolua_cclass(tolua_S,"RenderTexture","cc.RenderTexture","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"RenderTexture"); - tolua_function(tolua_S,"new",lua_cocos2dx_RenderTexture_constructor); - tolua_function(tolua_S,"setVirtualViewport",lua_cocos2dx_RenderTexture_setVirtualViewport); - tolua_function(tolua_S,"clearStencil",lua_cocos2dx_RenderTexture_clearStencil); - tolua_function(tolua_S,"getClearDepth",lua_cocos2dx_RenderTexture_getClearDepth); - tolua_function(tolua_S,"getClearStencil",lua_cocos2dx_RenderTexture_getClearStencil); - tolua_function(tolua_S,"end",lua_cocos2dx_RenderTexture_end); - tolua_function(tolua_S,"setClearStencil",lua_cocos2dx_RenderTexture_setClearStencil); - tolua_function(tolua_S,"setSprite",lua_cocos2dx_RenderTexture_setSprite); - tolua_function(tolua_S,"getSprite",lua_cocos2dx_RenderTexture_getSprite); - tolua_function(tolua_S,"isAutoDraw",lua_cocos2dx_RenderTexture_isAutoDraw); - tolua_function(tolua_S,"setKeepMatrix",lua_cocos2dx_RenderTexture_setKeepMatrix); - tolua_function(tolua_S,"setClearFlags",lua_cocos2dx_RenderTexture_setClearFlags); - tolua_function(tolua_S,"begin",lua_cocos2dx_RenderTexture_begin); - tolua_function(tolua_S,"saveToFile",lua_cocos2dx_RenderTexture_saveToFile); - tolua_function(tolua_S,"setAutoDraw",lua_cocos2dx_RenderTexture_setAutoDraw); - tolua_function(tolua_S,"setClearColor",lua_cocos2dx_RenderTexture_setClearColor); - tolua_function(tolua_S,"endToLua",lua_cocos2dx_RenderTexture_endToLua); - tolua_function(tolua_S,"beginWithClear",lua_cocos2dx_RenderTexture_beginWithClear); - tolua_function(tolua_S,"clearDepth",lua_cocos2dx_RenderTexture_clearDepth); - tolua_function(tolua_S,"getClearColor",lua_cocos2dx_RenderTexture_getClearColor); - tolua_function(tolua_S,"clear",lua_cocos2dx_RenderTexture_clear); - tolua_function(tolua_S,"getClearFlags",lua_cocos2dx_RenderTexture_getClearFlags); - tolua_function(tolua_S,"newImage",lua_cocos2dx_RenderTexture_newImage); - tolua_function(tolua_S,"setClearDepth",lua_cocos2dx_RenderTexture_setClearDepth); - tolua_function(tolua_S,"initWithWidthAndHeight",lua_cocos2dx_RenderTexture_initWithWidthAndHeight); - tolua_function(tolua_S,"create", lua_cocos2dx_RenderTexture_create); + tolua_function(tolua_S,"new",lua_cocos2dx_RenderTexture_constructor); + tolua_function(tolua_S,"setVirtualViewport",lua_cocos2dx_RenderTexture_setVirtualViewport); + tolua_function(tolua_S,"clearStencil",lua_cocos2dx_RenderTexture_clearStencil); + tolua_function(tolua_S,"getClearDepth",lua_cocos2dx_RenderTexture_getClearDepth); + tolua_function(tolua_S,"getClearStencil",lua_cocos2dx_RenderTexture_getClearStencil); + tolua_function(tolua_S,"end",lua_cocos2dx_RenderTexture_end); + tolua_function(tolua_S,"setClearStencil",lua_cocos2dx_RenderTexture_setClearStencil); + tolua_function(tolua_S,"setSprite",lua_cocos2dx_RenderTexture_setSprite); + tolua_function(tolua_S,"getSprite",lua_cocos2dx_RenderTexture_getSprite); + tolua_function(tolua_S,"isAutoDraw",lua_cocos2dx_RenderTexture_isAutoDraw); + tolua_function(tolua_S,"setKeepMatrix",lua_cocos2dx_RenderTexture_setKeepMatrix); + tolua_function(tolua_S,"setClearFlags",lua_cocos2dx_RenderTexture_setClearFlags); + tolua_function(tolua_S,"begin",lua_cocos2dx_RenderTexture_begin); + tolua_function(tolua_S,"saveToFile",lua_cocos2dx_RenderTexture_saveToFile); + tolua_function(tolua_S,"setAutoDraw",lua_cocos2dx_RenderTexture_setAutoDraw); + tolua_function(tolua_S,"setClearColor",lua_cocos2dx_RenderTexture_setClearColor); + tolua_function(tolua_S,"endToLua",lua_cocos2dx_RenderTexture_endToLua); + tolua_function(tolua_S,"beginWithClear",lua_cocos2dx_RenderTexture_beginWithClear); + tolua_function(tolua_S,"clearDepth",lua_cocos2dx_RenderTexture_clearDepth); + tolua_function(tolua_S,"getClearColor",lua_cocos2dx_RenderTexture_getClearColor); + tolua_function(tolua_S,"clear",lua_cocos2dx_RenderTexture_clear); + tolua_function(tolua_S,"getClearFlags",lua_cocos2dx_RenderTexture_getClearFlags); + tolua_function(tolua_S,"newImage",lua_cocos2dx_RenderTexture_newImage); + tolua_function(tolua_S,"setClearDepth",lua_cocos2dx_RenderTexture_setClearDepth); + tolua_function(tolua_S,"initWithWidthAndHeight",lua_cocos2dx_RenderTexture_initWithWidthAndHeight); + tolua_function(tolua_S,"create", lua_cocos2dx_RenderTexture_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RenderTexture).name(); g_luaType[typeName] = "cc.RenderTexture"; @@ -52330,31 +52330,31 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -52366,12 +52366,12 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) @@ -52382,7 +52382,7 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif @@ -52413,12 +52413,12 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_getGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) @@ -52426,31 +52426,31 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GridBase* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GridBase",&arg0); if(!ok) { @@ -52462,29 +52462,29 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setGrid",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -52499,7 +52499,7 @@ int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.NodeGrid:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_create'.",&tolua_err); #endif return 0; @@ -52514,12 +52514,12 @@ int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.NodeGrid"); tolua_cclass(tolua_S,"NodeGrid","cc.NodeGrid","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"NodeGrid"); - tolua_function(tolua_S,"setTarget",lua_cocos2dx_NodeGrid_setTarget); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_NodeGrid_getGrid); - tolua_function(tolua_S,"setGrid",lua_cocos2dx_NodeGrid_setGrid); - tolua_function(tolua_S,"create", lua_cocos2dx_NodeGrid_create); + tolua_function(tolua_S,"setTarget",lua_cocos2dx_NodeGrid_setTarget); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_NodeGrid_getGrid); + tolua_function(tolua_S,"setGrid",lua_cocos2dx_NodeGrid_setGrid); + tolua_function(tolua_S,"create", lua_cocos2dx_NodeGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::NodeGrid).name(); g_luaType[typeName] = "cc.NodeGrid"; @@ -52532,31 +52532,31 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -52568,12 +52568,12 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) @@ -52581,31 +52581,31 @@ int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleBatchNode:disableParticle"); if(!ok) { @@ -52617,12 +52617,12 @@ int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:disableParticle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) @@ -52630,28 +52630,28 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52664,12 +52664,12 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) @@ -52677,31 +52677,31 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -52713,12 +52713,12 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -52726,31 +52726,31 @@ int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleBatchNode:removeAllChildrenWithCleanup"); if(!ok) { @@ -52762,12 +52762,12 @@ int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) @@ -52775,28 +52775,28 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52809,12 +52809,12 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) @@ -52822,34 +52822,34 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_insertChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ParticleSystem* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.ParticleSystem",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:insertChild"); if(!ok) { @@ -52861,12 +52861,12 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:insertChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_insertChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) @@ -52874,34 +52874,34 @@ int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleBatchNode:removeChildAtIndex"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ParticleBatchNode:removeChildAtIndex"); if(!ok) { @@ -52913,29 +52913,29 @@ int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:removeChildAtIndex",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -52967,7 +52967,7 @@ int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_create'.",&tolua_err); #endif return 0; @@ -52976,17 +52976,17 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Texture2D* arg0; @@ -53018,7 +53018,7 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'.",&tolua_err); #endif return 0; @@ -53033,18 +53033,18 @@ int lua_register_cocos2dx_ParticleBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleBatchNode"); tolua_cclass(tolua_S,"ParticleBatchNode","cc.ParticleBatchNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ParticleBatchNode"); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); - tolua_function(tolua_S,"disableParticle",lua_cocos2dx_ParticleBatchNode_disableParticle); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleBatchNode_getTexture); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_ParticleBatchNode_setTextureAtlas); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_ParticleBatchNode_getTextureAtlas); - tolua_function(tolua_S,"insertChild",lua_cocos2dx_ParticleBatchNode_insertChild); - tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_ParticleBatchNode_removeChildAtIndex); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleBatchNode_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_ParticleBatchNode_createWithTexture); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); + tolua_function(tolua_S,"disableParticle",lua_cocos2dx_ParticleBatchNode_disableParticle); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleBatchNode_getTexture); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_ParticleBatchNode_setTextureAtlas); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_ParticleBatchNode_getTextureAtlas); + tolua_function(tolua_S,"insertChild",lua_cocos2dx_ParticleBatchNode_insertChild); + tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_ParticleBatchNode_removeChildAtIndex); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleBatchNode_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_ParticleBatchNode_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleBatchNode).name(); g_luaType[typeName] = "cc.ParticleBatchNode"; @@ -53057,28 +53057,28 @@ int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53091,12 +53091,12 @@ int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSizeVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) @@ -53104,28 +53104,28 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53138,12 +53138,12 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) @@ -53151,28 +53151,28 @@ int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isFull'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53185,12 +53185,12 @@ int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isFull",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isFull'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) @@ -53198,28 +53198,28 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53232,12 +53232,12 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getBatchNode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) @@ -53245,28 +53245,28 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53279,12 +53279,12 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) @@ -53292,28 +53292,28 @@ int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getPositionType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53326,12 +53326,12 @@ int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getPositionType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getPositionType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) @@ -53339,31 +53339,31 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setPosVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setPosVar"); if(!ok) { @@ -53375,12 +53375,12 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setPosVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setPosVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) @@ -53388,28 +53388,28 @@ int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53422,12 +53422,12 @@ int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSpin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) @@ -53435,31 +53435,31 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotatePerSecondVar"); if(!ok) { @@ -53471,12 +53471,12 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotatePerSecondVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) @@ -53484,28 +53484,28 @@ int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53518,12 +53518,12 @@ int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSpinVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) @@ -53531,28 +53531,28 @@ int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53565,12 +53565,12 @@ int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRadialAccelVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) @@ -53578,28 +53578,28 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53612,12 +53612,12 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSizeVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotation(lua_State* tolua_S) @@ -53625,31 +53625,31 @@ int lua_cocos2dx_ParticleSystem_setRotation(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotation"); if(!ok) { @@ -53661,12 +53661,12 @@ int lua_cocos2dx_ParticleSystem_setRotation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) @@ -53674,31 +53674,31 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setTangentialAccel"); if(!ok) { @@ -53710,12 +53710,12 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTangentialAccel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setScaleY(lua_State* tolua_S) @@ -53723,31 +53723,31 @@ int lua_cocos2dx_ParticleSystem_setScaleY(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScaleY"); if(!ok) { @@ -53759,12 +53759,12 @@ int lua_cocos2dx_ParticleSystem_setScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScaleY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setScaleX(lua_State* tolua_S) @@ -53772,31 +53772,31 @@ int lua_cocos2dx_ParticleSystem_setScaleX(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScaleX"); if(!ok) { @@ -53808,12 +53808,12 @@ int lua_cocos2dx_ParticleSystem_setScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScaleX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) @@ -53821,28 +53821,28 @@ int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53855,12 +53855,12 @@ int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRadialAccel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) @@ -53868,31 +53868,31 @@ int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartRadius"); if(!ok) { @@ -53904,12 +53904,12 @@ int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartRadius",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) @@ -53917,31 +53917,31 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotatePerSecond"); if(!ok) { @@ -53953,12 +53953,12 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotatePerSecond",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) @@ -53966,31 +53966,31 @@ int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSize"); if(!ok) { @@ -54002,12 +54002,12 @@ int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) @@ -54015,28 +54015,28 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getGravity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54049,12 +54049,12 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getGravity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getGravity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) @@ -54062,28 +54062,28 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54096,12 +54096,12 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTangentialAccel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) @@ -54109,31 +54109,31 @@ int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndRadius"); if(!ok) { @@ -54145,12 +54145,12 @@ int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndRadius",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) @@ -54158,28 +54158,28 @@ int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54192,12 +54192,12 @@ int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSpeed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) @@ -54205,28 +54205,28 @@ int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54239,12 +54239,12 @@ int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) @@ -54252,31 +54252,31 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColor"); if(!ok) { @@ -54288,12 +54288,12 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) @@ -54301,31 +54301,31 @@ int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSpin"); if(!ok) { @@ -54337,12 +54337,12 @@ int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSpin",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) @@ -54350,31 +54350,31 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setDuration"); if(!ok) { @@ -54386,12 +54386,12 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setDuration",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) @@ -54399,31 +54399,31 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -54435,12 +54435,12 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) @@ -54448,28 +54448,28 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getPosVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54482,12 +54482,12 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getPosVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getPosVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) @@ -54495,28 +54495,28 @@ int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54528,12 +54528,12 @@ int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:updateWithNoTime",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) @@ -54541,28 +54541,28 @@ int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54575,12 +54575,12 @@ int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isBlendAdditive",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) @@ -54588,28 +54588,28 @@ int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54622,12 +54622,12 @@ int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSpeedVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) @@ -54635,31 +54635,31 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setPositionType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ParticleSystem::PositionType arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setPositionType"); if(!ok) { @@ -54671,12 +54671,12 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setPositionType",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setPositionType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) @@ -54684,28 +54684,28 @@ int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_stopSystem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54717,12 +54717,12 @@ int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:stopSystem",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_stopSystem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) @@ -54730,28 +54730,28 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54764,12 +54764,12 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSourcePosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) @@ -54777,31 +54777,31 @@ int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setLifeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setLifeVar"); if(!ok) { @@ -54813,12 +54813,12 @@ int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setLifeVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setLifeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) @@ -54826,31 +54826,31 @@ int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setTotalParticles"); if(!ok) { @@ -54862,12 +54862,12 @@ int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTotalParticles",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) @@ -54875,31 +54875,31 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColorVar"); if(!ok) { @@ -54911,12 +54911,12 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndColorVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) @@ -54924,28 +54924,28 @@ int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54958,12 +54958,12 @@ int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAtlasIndex",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) @@ -54971,28 +54971,28 @@ int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55005,12 +55005,12 @@ int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) @@ -55018,31 +55018,31 @@ int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSpinVar"); if(!ok) { @@ -55054,12 +55054,12 @@ int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSpinVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) @@ -55067,28 +55067,28 @@ int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_resetSystem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55100,12 +55100,12 @@ int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:resetSystem",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_resetSystem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) @@ -55113,31 +55113,31 @@ int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setAtlasIndex"); if(!ok) { @@ -55149,12 +55149,12 @@ int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAtlasIndex",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) @@ -55162,31 +55162,31 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setTangentialAccelVar"); if(!ok) { @@ -55198,12 +55198,12 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTangentialAccelVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) @@ -55211,31 +55211,31 @@ int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndRadiusVar"); if(!ok) { @@ -55247,12 +55247,12 @@ int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndRadiusVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) @@ -55260,28 +55260,28 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55294,12 +55294,12 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndRadius",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(lua_State* tolua_S) @@ -55307,28 +55307,28 @@ int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55341,12 +55341,12 @@ int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isOpacityModifyRGB",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) @@ -55354,28 +55354,28 @@ int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isActive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55388,12 +55388,12 @@ int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isActive",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isActive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) @@ -55401,31 +55401,31 @@ int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRadialAccelVar"); if(!ok) { @@ -55437,12 +55437,12 @@ int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRadialAccelVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) @@ -55450,31 +55450,31 @@ int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSize"); if(!ok) { @@ -55486,12 +55486,12 @@ int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) @@ -55499,31 +55499,31 @@ int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setSpeed"); if(!ok) { @@ -55535,12 +55535,12 @@ int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSpeed",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) @@ -55548,28 +55548,28 @@ int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55582,12 +55582,12 @@ int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSpin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) @@ -55595,28 +55595,28 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55629,12 +55629,12 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotatePerSecond",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) @@ -55642,31 +55642,31 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ParticleSystem::Mode arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setEmitterMode"); if(!ok) { @@ -55678,12 +55678,12 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEmitterMode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) @@ -55691,28 +55691,28 @@ int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55725,12 +55725,12 @@ int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getDuration",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) @@ -55738,31 +55738,31 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setSourcePosition"); if(!ok) { @@ -55774,12 +55774,12 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSourcePosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) @@ -55787,28 +55787,28 @@ int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55821,12 +55821,12 @@ int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSpinVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) @@ -55834,31 +55834,31 @@ int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setBlendAdditive"); if(!ok) { @@ -55870,12 +55870,12 @@ int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBlendAdditive",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) @@ -55883,31 +55883,31 @@ int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setLife'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setLife"); if(!ok) { @@ -55919,12 +55919,12 @@ int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setLife",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setLife'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) @@ -55932,31 +55932,31 @@ int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAngleVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setAngleVar"); if(!ok) { @@ -55968,12 +55968,12 @@ int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAngleVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAngleVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) @@ -55981,31 +55981,31 @@ int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotationIsDir"); if(!ok) { @@ -56017,12 +56017,12 @@ int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotationIsDir",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) @@ -56030,31 +56030,31 @@ int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSizeVar"); if(!ok) { @@ -56066,12 +56066,12 @@ int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSizeVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) @@ -56079,31 +56079,31 @@ int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setAngle"); if(!ok) { @@ -56115,12 +56115,12 @@ int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAngle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) @@ -56128,31 +56128,31 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ParticleBatchNode* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ParticleBatchNode",&arg0); if(!ok) { @@ -56164,12 +56164,12 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBatchNode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) @@ -56177,28 +56177,28 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56211,12 +56211,12 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTangentialAccelVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) @@ -56224,28 +56224,28 @@ int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56258,12 +56258,12 @@ int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEmitterMode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) @@ -56271,31 +56271,31 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSpinVar"); if(!ok) { @@ -56307,12 +56307,12 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSpinVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) @@ -56320,28 +56320,28 @@ int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAngleVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56354,12 +56354,12 @@ int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAngleVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAngleVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) @@ -56367,31 +56367,31 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColor"); if(!ok) { @@ -56403,12 +56403,12 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) @@ -56416,28 +56416,28 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56450,12 +56450,12 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotatePerSecondVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) @@ -56463,28 +56463,28 @@ int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56497,12 +56497,12 @@ int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) @@ -56510,28 +56510,28 @@ int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getLife'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56544,12 +56544,12 @@ int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getLife",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getLife'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) @@ -56557,31 +56557,31 @@ int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setSpeedVar"); if(!ok) { @@ -56593,12 +56593,12 @@ int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSpeedVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) @@ -56606,31 +56606,31 @@ int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setAutoRemoveOnFinish"); if(!ok) { @@ -56642,12 +56642,12 @@ int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAutoRemoveOnFinish",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) @@ -56655,31 +56655,31 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setGravity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setGravity"); if(!ok) { @@ -56691,12 +56691,12 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setGravity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setGravity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) @@ -56704,28 +56704,28 @@ int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_postStep'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56737,12 +56737,12 @@ int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:postStep",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_postStep'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) @@ -56750,31 +56750,31 @@ int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEmissionRate"); if(!ok) { @@ -56786,12 +56786,12 @@ int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEmissionRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) @@ -56799,28 +56799,28 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56833,12 +56833,12 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndColorVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) @@ -56846,28 +56846,28 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56880,12 +56880,12 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotationIsDir",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setScale(lua_State* tolua_S) @@ -56893,31 +56893,31 @@ int lua_cocos2dx_ParticleSystem_setScale(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScale"); if(!ok) { @@ -56929,12 +56929,12 @@ int lua_cocos2dx_ParticleSystem_setScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScale",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) @@ -56942,28 +56942,28 @@ int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56976,12 +56976,12 @@ int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEmissionRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) @@ -56989,28 +56989,28 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57023,12 +57023,12 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) @@ -57036,28 +57036,28 @@ int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getLifeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57070,12 +57070,12 @@ int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getLifeVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getLifeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) @@ -57083,31 +57083,31 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSizeVar"); if(!ok) { @@ -57119,12 +57119,12 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSizeVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(lua_State* tolua_S) @@ -57132,31 +57132,31 @@ int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setOpacityModifyRGB"); if(!ok) { @@ -57168,12 +57168,12 @@ int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setOpacityModifyRGB",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) @@ -57181,28 +57181,28 @@ int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_addParticle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57215,12 +57215,12 @@ int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:addParticle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_addParticle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) @@ -57228,28 +57228,28 @@ int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57262,12 +57262,12 @@ int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartRadius",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) @@ -57275,28 +57275,28 @@ int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getParticleCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57309,12 +57309,12 @@ int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getParticleCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getParticleCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) @@ -57322,28 +57322,28 @@ int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57356,12 +57356,12 @@ int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartRadiusVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) @@ -57369,31 +57369,31 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColorVar"); if(!ok) { @@ -57405,12 +57405,12 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartColorVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) @@ -57418,31 +57418,31 @@ int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSpin"); if(!ok) { @@ -57454,12 +57454,12 @@ int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSpin",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) @@ -57467,31 +57467,31 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRadialAccel"); if(!ok) { @@ -57503,12 +57503,12 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRadialAccel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) @@ -57516,28 +57516,28 @@ int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57550,12 +57550,12 @@ int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isAutoRemoveOnFinish",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) @@ -57563,28 +57563,28 @@ int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57597,12 +57597,12 @@ int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTotalParticles",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) @@ -57610,31 +57610,31 @@ int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartRadiusVar"); if(!ok) { @@ -57646,12 +57646,12 @@ int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartRadiusVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) @@ -57659,28 +57659,28 @@ int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57693,12 +57693,12 @@ int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndRadiusVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) @@ -57706,28 +57706,28 @@ int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57740,29 +57740,29 @@ int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartColorVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -57779,7 +57779,7 @@ int lua_cocos2dx_ParticleSystem_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_create'.",&tolua_err); #endif return 0; @@ -57788,17 +57788,17 @@ int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -57815,7 +57815,7 @@ int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -57830,108 +57830,108 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystem"); tolua_cclass(tolua_S,"ParticleSystem","cc.ParticleSystem","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSystem"); - tolua_function(tolua_S,"getStartSizeVar",lua_cocos2dx_ParticleSystem_getStartSizeVar); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleSystem_getTexture); - tolua_function(tolua_S,"isFull",lua_cocos2dx_ParticleSystem_isFull); - tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_ParticleSystem_getBatchNode); - tolua_function(tolua_S,"getStartColor",lua_cocos2dx_ParticleSystem_getStartColor); - tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ParticleSystem_getPositionType); - tolua_function(tolua_S,"setPosVar",lua_cocos2dx_ParticleSystem_setPosVar); - tolua_function(tolua_S,"getEndSpin",lua_cocos2dx_ParticleSystem_getEndSpin); - tolua_function(tolua_S,"setRotatePerSecondVar",lua_cocos2dx_ParticleSystem_setRotatePerSecondVar); - tolua_function(tolua_S,"getStartSpinVar",lua_cocos2dx_ParticleSystem_getStartSpinVar); - tolua_function(tolua_S,"getRadialAccelVar",lua_cocos2dx_ParticleSystem_getRadialAccelVar); - tolua_function(tolua_S,"getEndSizeVar",lua_cocos2dx_ParticleSystem_getEndSizeVar); - tolua_function(tolua_S,"setRotation",lua_cocos2dx_ParticleSystem_setRotation); - tolua_function(tolua_S,"setTangentialAccel",lua_cocos2dx_ParticleSystem_setTangentialAccel); - tolua_function(tolua_S,"setScaleY",lua_cocos2dx_ParticleSystem_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_cocos2dx_ParticleSystem_setScaleX); - tolua_function(tolua_S,"getRadialAccel",lua_cocos2dx_ParticleSystem_getRadialAccel); - tolua_function(tolua_S,"setStartRadius",lua_cocos2dx_ParticleSystem_setStartRadius); - tolua_function(tolua_S,"setRotatePerSecond",lua_cocos2dx_ParticleSystem_setRotatePerSecond); - tolua_function(tolua_S,"setEndSize",lua_cocos2dx_ParticleSystem_setEndSize); - tolua_function(tolua_S,"getGravity",lua_cocos2dx_ParticleSystem_getGravity); - tolua_function(tolua_S,"getTangentialAccel",lua_cocos2dx_ParticleSystem_getTangentialAccel); - tolua_function(tolua_S,"setEndRadius",lua_cocos2dx_ParticleSystem_setEndRadius); - tolua_function(tolua_S,"getSpeed",lua_cocos2dx_ParticleSystem_getSpeed); - tolua_function(tolua_S,"getAngle",lua_cocos2dx_ParticleSystem_getAngle); - tolua_function(tolua_S,"setEndColor",lua_cocos2dx_ParticleSystem_setEndColor); - tolua_function(tolua_S,"setStartSpin",lua_cocos2dx_ParticleSystem_setStartSpin); - tolua_function(tolua_S,"setDuration",lua_cocos2dx_ParticleSystem_setDuration); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleSystem_setTexture); - tolua_function(tolua_S,"getPosVar",lua_cocos2dx_ParticleSystem_getPosVar); - tolua_function(tolua_S,"updateWithNoTime",lua_cocos2dx_ParticleSystem_updateWithNoTime); - tolua_function(tolua_S,"isBlendAdditive",lua_cocos2dx_ParticleSystem_isBlendAdditive); - tolua_function(tolua_S,"getSpeedVar",lua_cocos2dx_ParticleSystem_getSpeedVar); - tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ParticleSystem_setPositionType); - tolua_function(tolua_S,"stopSystem",lua_cocos2dx_ParticleSystem_stopSystem); - tolua_function(tolua_S,"getSourcePosition",lua_cocos2dx_ParticleSystem_getSourcePosition); - tolua_function(tolua_S,"setLifeVar",lua_cocos2dx_ParticleSystem_setLifeVar); - tolua_function(tolua_S,"setTotalParticles",lua_cocos2dx_ParticleSystem_setTotalParticles); - tolua_function(tolua_S,"setEndColorVar",lua_cocos2dx_ParticleSystem_setEndColorVar); - tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_ParticleSystem_getAtlasIndex); - tolua_function(tolua_S,"getStartSize",lua_cocos2dx_ParticleSystem_getStartSize); - tolua_function(tolua_S,"setStartSpinVar",lua_cocos2dx_ParticleSystem_setStartSpinVar); - tolua_function(tolua_S,"resetSystem",lua_cocos2dx_ParticleSystem_resetSystem); - tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_ParticleSystem_setAtlasIndex); - tolua_function(tolua_S,"setTangentialAccelVar",lua_cocos2dx_ParticleSystem_setTangentialAccelVar); - tolua_function(tolua_S,"setEndRadiusVar",lua_cocos2dx_ParticleSystem_setEndRadiusVar); - tolua_function(tolua_S,"getEndRadius",lua_cocos2dx_ParticleSystem_getEndRadius); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_ParticleSystem_isOpacityModifyRGB); - tolua_function(tolua_S,"isActive",lua_cocos2dx_ParticleSystem_isActive); - tolua_function(tolua_S,"setRadialAccelVar",lua_cocos2dx_ParticleSystem_setRadialAccelVar); - tolua_function(tolua_S,"setStartSize",lua_cocos2dx_ParticleSystem_setStartSize); - tolua_function(tolua_S,"setSpeed",lua_cocos2dx_ParticleSystem_setSpeed); - tolua_function(tolua_S,"getStartSpin",lua_cocos2dx_ParticleSystem_getStartSpin); - tolua_function(tolua_S,"getRotatePerSecond",lua_cocos2dx_ParticleSystem_getRotatePerSecond); - tolua_function(tolua_S,"setEmitterMode",lua_cocos2dx_ParticleSystem_setEmitterMode); - tolua_function(tolua_S,"getDuration",lua_cocos2dx_ParticleSystem_getDuration); - tolua_function(tolua_S,"setSourcePosition",lua_cocos2dx_ParticleSystem_setSourcePosition); - tolua_function(tolua_S,"getEndSpinVar",lua_cocos2dx_ParticleSystem_getEndSpinVar); - tolua_function(tolua_S,"setBlendAdditive",lua_cocos2dx_ParticleSystem_setBlendAdditive); - tolua_function(tolua_S,"setLife",lua_cocos2dx_ParticleSystem_setLife); - tolua_function(tolua_S,"setAngleVar",lua_cocos2dx_ParticleSystem_setAngleVar); - tolua_function(tolua_S,"setRotationIsDir",lua_cocos2dx_ParticleSystem_setRotationIsDir); - tolua_function(tolua_S,"setEndSizeVar",lua_cocos2dx_ParticleSystem_setEndSizeVar); - tolua_function(tolua_S,"setAngle",lua_cocos2dx_ParticleSystem_setAngle); - tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_ParticleSystem_setBatchNode); - tolua_function(tolua_S,"getTangentialAccelVar",lua_cocos2dx_ParticleSystem_getTangentialAccelVar); - tolua_function(tolua_S,"getEmitterMode",lua_cocos2dx_ParticleSystem_getEmitterMode); - tolua_function(tolua_S,"setEndSpinVar",lua_cocos2dx_ParticleSystem_setEndSpinVar); - tolua_function(tolua_S,"getAngleVar",lua_cocos2dx_ParticleSystem_getAngleVar); - tolua_function(tolua_S,"setStartColor",lua_cocos2dx_ParticleSystem_setStartColor); - tolua_function(tolua_S,"getRotatePerSecondVar",lua_cocos2dx_ParticleSystem_getRotatePerSecondVar); - tolua_function(tolua_S,"getEndSize",lua_cocos2dx_ParticleSystem_getEndSize); - tolua_function(tolua_S,"getLife",lua_cocos2dx_ParticleSystem_getLife); - tolua_function(tolua_S,"setSpeedVar",lua_cocos2dx_ParticleSystem_setSpeedVar); - tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish); - tolua_function(tolua_S,"setGravity",lua_cocos2dx_ParticleSystem_setGravity); - tolua_function(tolua_S,"postStep",lua_cocos2dx_ParticleSystem_postStep); - tolua_function(tolua_S,"setEmissionRate",lua_cocos2dx_ParticleSystem_setEmissionRate); - tolua_function(tolua_S,"getEndColorVar",lua_cocos2dx_ParticleSystem_getEndColorVar); - tolua_function(tolua_S,"getRotationIsDir",lua_cocos2dx_ParticleSystem_getRotationIsDir); - tolua_function(tolua_S,"setScale",lua_cocos2dx_ParticleSystem_setScale); - tolua_function(tolua_S,"getEmissionRate",lua_cocos2dx_ParticleSystem_getEmissionRate); - tolua_function(tolua_S,"getEndColor",lua_cocos2dx_ParticleSystem_getEndColor); - tolua_function(tolua_S,"getLifeVar",lua_cocos2dx_ParticleSystem_getLifeVar); - tolua_function(tolua_S,"setStartSizeVar",lua_cocos2dx_ParticleSystem_setStartSizeVar); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_ParticleSystem_setOpacityModifyRGB); - tolua_function(tolua_S,"addParticle",lua_cocos2dx_ParticleSystem_addParticle); - tolua_function(tolua_S,"getStartRadius",lua_cocos2dx_ParticleSystem_getStartRadius); - tolua_function(tolua_S,"getParticleCount",lua_cocos2dx_ParticleSystem_getParticleCount); - tolua_function(tolua_S,"getStartRadiusVar",lua_cocos2dx_ParticleSystem_getStartRadiusVar); - tolua_function(tolua_S,"setStartColorVar",lua_cocos2dx_ParticleSystem_setStartColorVar); - tolua_function(tolua_S,"setEndSpin",lua_cocos2dx_ParticleSystem_setEndSpin); - tolua_function(tolua_S,"setRadialAccel",lua_cocos2dx_ParticleSystem_setRadialAccel); - tolua_function(tolua_S,"isAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish); - tolua_function(tolua_S,"getTotalParticles",lua_cocos2dx_ParticleSystem_getTotalParticles); - tolua_function(tolua_S,"setStartRadiusVar",lua_cocos2dx_ParticleSystem_setStartRadiusVar); - tolua_function(tolua_S,"getEndRadiusVar",lua_cocos2dx_ParticleSystem_getEndRadiusVar); - tolua_function(tolua_S,"getStartColorVar",lua_cocos2dx_ParticleSystem_getStartColorVar); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystem_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystem_createWithTotalParticles); + tolua_function(tolua_S,"getStartSizeVar",lua_cocos2dx_ParticleSystem_getStartSizeVar); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleSystem_getTexture); + tolua_function(tolua_S,"isFull",lua_cocos2dx_ParticleSystem_isFull); + tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_ParticleSystem_getBatchNode); + tolua_function(tolua_S,"getStartColor",lua_cocos2dx_ParticleSystem_getStartColor); + tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ParticleSystem_getPositionType); + tolua_function(tolua_S,"setPosVar",lua_cocos2dx_ParticleSystem_setPosVar); + tolua_function(tolua_S,"getEndSpin",lua_cocos2dx_ParticleSystem_getEndSpin); + tolua_function(tolua_S,"setRotatePerSecondVar",lua_cocos2dx_ParticleSystem_setRotatePerSecondVar); + tolua_function(tolua_S,"getStartSpinVar",lua_cocos2dx_ParticleSystem_getStartSpinVar); + tolua_function(tolua_S,"getRadialAccelVar",lua_cocos2dx_ParticleSystem_getRadialAccelVar); + tolua_function(tolua_S,"getEndSizeVar",lua_cocos2dx_ParticleSystem_getEndSizeVar); + tolua_function(tolua_S,"setRotation",lua_cocos2dx_ParticleSystem_setRotation); + tolua_function(tolua_S,"setTangentialAccel",lua_cocos2dx_ParticleSystem_setTangentialAccel); + tolua_function(tolua_S,"setScaleY",lua_cocos2dx_ParticleSystem_setScaleY); + tolua_function(tolua_S,"setScaleX",lua_cocos2dx_ParticleSystem_setScaleX); + tolua_function(tolua_S,"getRadialAccel",lua_cocos2dx_ParticleSystem_getRadialAccel); + tolua_function(tolua_S,"setStartRadius",lua_cocos2dx_ParticleSystem_setStartRadius); + tolua_function(tolua_S,"setRotatePerSecond",lua_cocos2dx_ParticleSystem_setRotatePerSecond); + tolua_function(tolua_S,"setEndSize",lua_cocos2dx_ParticleSystem_setEndSize); + tolua_function(tolua_S,"getGravity",lua_cocos2dx_ParticleSystem_getGravity); + tolua_function(tolua_S,"getTangentialAccel",lua_cocos2dx_ParticleSystem_getTangentialAccel); + tolua_function(tolua_S,"setEndRadius",lua_cocos2dx_ParticleSystem_setEndRadius); + tolua_function(tolua_S,"getSpeed",lua_cocos2dx_ParticleSystem_getSpeed); + tolua_function(tolua_S,"getAngle",lua_cocos2dx_ParticleSystem_getAngle); + tolua_function(tolua_S,"setEndColor",lua_cocos2dx_ParticleSystem_setEndColor); + tolua_function(tolua_S,"setStartSpin",lua_cocos2dx_ParticleSystem_setStartSpin); + tolua_function(tolua_S,"setDuration",lua_cocos2dx_ParticleSystem_setDuration); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleSystem_setTexture); + tolua_function(tolua_S,"getPosVar",lua_cocos2dx_ParticleSystem_getPosVar); + tolua_function(tolua_S,"updateWithNoTime",lua_cocos2dx_ParticleSystem_updateWithNoTime); + tolua_function(tolua_S,"isBlendAdditive",lua_cocos2dx_ParticleSystem_isBlendAdditive); + tolua_function(tolua_S,"getSpeedVar",lua_cocos2dx_ParticleSystem_getSpeedVar); + tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ParticleSystem_setPositionType); + tolua_function(tolua_S,"stopSystem",lua_cocos2dx_ParticleSystem_stopSystem); + tolua_function(tolua_S,"getSourcePosition",lua_cocos2dx_ParticleSystem_getSourcePosition); + tolua_function(tolua_S,"setLifeVar",lua_cocos2dx_ParticleSystem_setLifeVar); + tolua_function(tolua_S,"setTotalParticles",lua_cocos2dx_ParticleSystem_setTotalParticles); + tolua_function(tolua_S,"setEndColorVar",lua_cocos2dx_ParticleSystem_setEndColorVar); + tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_ParticleSystem_getAtlasIndex); + tolua_function(tolua_S,"getStartSize",lua_cocos2dx_ParticleSystem_getStartSize); + tolua_function(tolua_S,"setStartSpinVar",lua_cocos2dx_ParticleSystem_setStartSpinVar); + tolua_function(tolua_S,"resetSystem",lua_cocos2dx_ParticleSystem_resetSystem); + tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_ParticleSystem_setAtlasIndex); + tolua_function(tolua_S,"setTangentialAccelVar",lua_cocos2dx_ParticleSystem_setTangentialAccelVar); + tolua_function(tolua_S,"setEndRadiusVar",lua_cocos2dx_ParticleSystem_setEndRadiusVar); + tolua_function(tolua_S,"getEndRadius",lua_cocos2dx_ParticleSystem_getEndRadius); + tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_ParticleSystem_isOpacityModifyRGB); + tolua_function(tolua_S,"isActive",lua_cocos2dx_ParticleSystem_isActive); + tolua_function(tolua_S,"setRadialAccelVar",lua_cocos2dx_ParticleSystem_setRadialAccelVar); + tolua_function(tolua_S,"setStartSize",lua_cocos2dx_ParticleSystem_setStartSize); + tolua_function(tolua_S,"setSpeed",lua_cocos2dx_ParticleSystem_setSpeed); + tolua_function(tolua_S,"getStartSpin",lua_cocos2dx_ParticleSystem_getStartSpin); + tolua_function(tolua_S,"getRotatePerSecond",lua_cocos2dx_ParticleSystem_getRotatePerSecond); + tolua_function(tolua_S,"setEmitterMode",lua_cocos2dx_ParticleSystem_setEmitterMode); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_ParticleSystem_getDuration); + tolua_function(tolua_S,"setSourcePosition",lua_cocos2dx_ParticleSystem_setSourcePosition); + tolua_function(tolua_S,"getEndSpinVar",lua_cocos2dx_ParticleSystem_getEndSpinVar); + tolua_function(tolua_S,"setBlendAdditive",lua_cocos2dx_ParticleSystem_setBlendAdditive); + tolua_function(tolua_S,"setLife",lua_cocos2dx_ParticleSystem_setLife); + tolua_function(tolua_S,"setAngleVar",lua_cocos2dx_ParticleSystem_setAngleVar); + tolua_function(tolua_S,"setRotationIsDir",lua_cocos2dx_ParticleSystem_setRotationIsDir); + tolua_function(tolua_S,"setEndSizeVar",lua_cocos2dx_ParticleSystem_setEndSizeVar); + tolua_function(tolua_S,"setAngle",lua_cocos2dx_ParticleSystem_setAngle); + tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_ParticleSystem_setBatchNode); + tolua_function(tolua_S,"getTangentialAccelVar",lua_cocos2dx_ParticleSystem_getTangentialAccelVar); + tolua_function(tolua_S,"getEmitterMode",lua_cocos2dx_ParticleSystem_getEmitterMode); + tolua_function(tolua_S,"setEndSpinVar",lua_cocos2dx_ParticleSystem_setEndSpinVar); + tolua_function(tolua_S,"getAngleVar",lua_cocos2dx_ParticleSystem_getAngleVar); + tolua_function(tolua_S,"setStartColor",lua_cocos2dx_ParticleSystem_setStartColor); + tolua_function(tolua_S,"getRotatePerSecondVar",lua_cocos2dx_ParticleSystem_getRotatePerSecondVar); + tolua_function(tolua_S,"getEndSize",lua_cocos2dx_ParticleSystem_getEndSize); + tolua_function(tolua_S,"getLife",lua_cocos2dx_ParticleSystem_getLife); + tolua_function(tolua_S,"setSpeedVar",lua_cocos2dx_ParticleSystem_setSpeedVar); + tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish); + tolua_function(tolua_S,"setGravity",lua_cocos2dx_ParticleSystem_setGravity); + tolua_function(tolua_S,"postStep",lua_cocos2dx_ParticleSystem_postStep); + tolua_function(tolua_S,"setEmissionRate",lua_cocos2dx_ParticleSystem_setEmissionRate); + tolua_function(tolua_S,"getEndColorVar",lua_cocos2dx_ParticleSystem_getEndColorVar); + tolua_function(tolua_S,"getRotationIsDir",lua_cocos2dx_ParticleSystem_getRotationIsDir); + tolua_function(tolua_S,"setScale",lua_cocos2dx_ParticleSystem_setScale); + tolua_function(tolua_S,"getEmissionRate",lua_cocos2dx_ParticleSystem_getEmissionRate); + tolua_function(tolua_S,"getEndColor",lua_cocos2dx_ParticleSystem_getEndColor); + tolua_function(tolua_S,"getLifeVar",lua_cocos2dx_ParticleSystem_getLifeVar); + tolua_function(tolua_S,"setStartSizeVar",lua_cocos2dx_ParticleSystem_setStartSizeVar); + tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_ParticleSystem_setOpacityModifyRGB); + tolua_function(tolua_S,"addParticle",lua_cocos2dx_ParticleSystem_addParticle); + tolua_function(tolua_S,"getStartRadius",lua_cocos2dx_ParticleSystem_getStartRadius); + tolua_function(tolua_S,"getParticleCount",lua_cocos2dx_ParticleSystem_getParticleCount); + tolua_function(tolua_S,"getStartRadiusVar",lua_cocos2dx_ParticleSystem_getStartRadiusVar); + tolua_function(tolua_S,"setStartColorVar",lua_cocos2dx_ParticleSystem_setStartColorVar); + tolua_function(tolua_S,"setEndSpin",lua_cocos2dx_ParticleSystem_setEndSpin); + tolua_function(tolua_S,"setRadialAccel",lua_cocos2dx_ParticleSystem_setRadialAccel); + tolua_function(tolua_S,"isAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish); + tolua_function(tolua_S,"getTotalParticles",lua_cocos2dx_ParticleSystem_getTotalParticles); + tolua_function(tolua_S,"setStartRadiusVar",lua_cocos2dx_ParticleSystem_setStartRadiusVar); + tolua_function(tolua_S,"getEndRadiusVar",lua_cocos2dx_ParticleSystem_getEndRadiusVar); + tolua_function(tolua_S,"getStartColorVar",lua_cocos2dx_ParticleSystem_getStartColorVar); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystem_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystem_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystem).name(); g_luaType[typeName] = "cc.ParticleSystem"; @@ -57944,31 +57944,31 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -57980,12 +57980,12 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:setDisplayFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) @@ -57993,34 +57993,34 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Texture2D* arg0; cocos2d::Rect arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.ParticleSystemQuad:setTextureWithRect"); if(!ok) { @@ -58032,12 +58032,12 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:setTextureWithRect",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) @@ -58045,31 +58045,31 @@ int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventCustom* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0); if(!ok) { @@ -58081,12 +58081,12 @@ int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:listenRendererRecreated",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) @@ -58096,14 +58096,14 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -58116,7 +58116,7 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -58126,7 +58126,7 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -58142,7 +58142,7 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ParticleSystemQuad:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_create'.",&tolua_err); #endif return 0; @@ -58151,17 +58151,17 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58178,7 +58178,7 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystemQuad:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58193,13 +58193,13 @@ int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystemQuad"); tolua_cclass(tolua_S,"ParticleSystemQuad","cc.ParticleSystemQuad","cc.ParticleSystem",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSystemQuad"); - tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame); - tolua_function(tolua_S,"setTextureWithRect",lua_cocos2dx_ParticleSystemQuad_setTextureWithRect); - tolua_function(tolua_S,"listenRendererRecreated",lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles); + tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame); + tolua_function(tolua_S,"setTextureWithRect",lua_cocos2dx_ParticleSystemQuad_setTextureWithRect); + tolua_function(tolua_S,"listenRendererRecreated",lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystemQuad).name(); g_luaType[typeName] = "cc.ParticleSystemQuad"; @@ -58211,17 +58211,17 @@ int lua_cocos2dx_ParticleFire_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFire",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58236,7 +58236,7 @@ int lua_cocos2dx_ParticleFire_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_create'.",&tolua_err); #endif return 0; @@ -58245,17 +58245,17 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFire",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58272,7 +58272,7 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58287,10 +58287,10 @@ int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFire"); tolua_cclass(tolua_S,"ParticleFire","cc.ParticleFire","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleFire"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFire).name(); g_luaType[typeName] = "cc.ParticleFire"; @@ -58302,17 +58302,17 @@ int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58327,7 +58327,7 @@ int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_create'.",&tolua_err); #endif return 0; @@ -58336,17 +58336,17 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58363,7 +58363,7 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58378,10 +58378,10 @@ int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFireworks"); tolua_cclass(tolua_S,"ParticleFireworks","cc.ParticleFireworks","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleFireworks"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFireworks).name(); g_luaType[typeName] = "cc.ParticleFireworks"; @@ -58393,17 +58393,17 @@ int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58418,7 +58418,7 @@ int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_create'.",&tolua_err); #endif return 0; @@ -58427,17 +58427,17 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58454,7 +58454,7 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58469,10 +58469,10 @@ int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSun"); tolua_cclass(tolua_S,"ParticleSun","cc.ParticleSun","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSun"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSun).name(); g_luaType[typeName] = "cc.ParticleSun"; @@ -58484,17 +58484,17 @@ int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58509,7 +58509,7 @@ int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_create'.",&tolua_err); #endif return 0; @@ -58518,17 +58518,17 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58545,7 +58545,7 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58560,10 +58560,10 @@ int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleGalaxy"); tolua_cclass(tolua_S,"ParticleGalaxy","cc.ParticleGalaxy","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleGalaxy"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleGalaxy).name(); g_luaType[typeName] = "cc.ParticleGalaxy"; @@ -58575,17 +58575,17 @@ int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58600,7 +58600,7 @@ int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_create'.",&tolua_err); #endif return 0; @@ -58609,17 +58609,17 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58636,7 +58636,7 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58651,10 +58651,10 @@ int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFlower"); tolua_cclass(tolua_S,"ParticleFlower","cc.ParticleFlower","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleFlower"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFlower).name(); g_luaType[typeName] = "cc.ParticleFlower"; @@ -58666,17 +58666,17 @@ int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58691,7 +58691,7 @@ int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_create'.",&tolua_err); #endif return 0; @@ -58700,17 +58700,17 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58727,7 +58727,7 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58742,10 +58742,10 @@ int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleMeteor"); tolua_cclass(tolua_S,"ParticleMeteor","cc.ParticleMeteor","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleMeteor"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleMeteor).name(); g_luaType[typeName] = "cc.ParticleMeteor"; @@ -58757,17 +58757,17 @@ int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58782,7 +58782,7 @@ int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_create'.",&tolua_err); #endif return 0; @@ -58791,17 +58791,17 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58818,7 +58818,7 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58833,10 +58833,10 @@ int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSpiral"); tolua_cclass(tolua_S,"ParticleSpiral","cc.ParticleSpiral","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSpiral"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSpiral).name(); g_luaType[typeName] = "cc.ParticleSpiral"; @@ -58848,17 +58848,17 @@ int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58873,7 +58873,7 @@ int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_create'.",&tolua_err); #endif return 0; @@ -58882,17 +58882,17 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58909,7 +58909,7 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58924,10 +58924,10 @@ int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleExplosion"); tolua_cclass(tolua_S,"ParticleExplosion","cc.ParticleExplosion","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleExplosion"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleExplosion).name(); g_luaType[typeName] = "cc.ParticleExplosion"; @@ -58939,17 +58939,17 @@ int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58964,7 +58964,7 @@ int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_create'.",&tolua_err); #endif return 0; @@ -58973,17 +58973,17 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -59000,7 +59000,7 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -59015,10 +59015,10 @@ int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSmoke"); tolua_cclass(tolua_S,"ParticleSmoke","cc.ParticleSmoke","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSmoke"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSmoke).name(); g_luaType[typeName] = "cc.ParticleSmoke"; @@ -59030,17 +59030,17 @@ int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -59055,7 +59055,7 @@ int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_create'.",&tolua_err); #endif return 0; @@ -59064,17 +59064,17 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -59091,7 +59091,7 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -59106,10 +59106,10 @@ int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSnow"); tolua_cclass(tolua_S,"ParticleSnow","cc.ParticleSnow","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSnow"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSnow).name(); g_luaType[typeName] = "cc.ParticleSnow"; @@ -59121,17 +59121,17 @@ int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -59146,7 +59146,7 @@ int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_create'.",&tolua_err); #endif return 0; @@ -59155,17 +59155,17 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -59182,7 +59182,7 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -59197,10 +59197,10 @@ int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleRain"); tolua_cclass(tolua_S,"ParticleRain","cc.ParticleRain","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleRain"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleRain).name(); g_luaType[typeName] = "cc.ParticleRain"; @@ -59213,31 +59213,31 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setGridSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:setGridSize"); if(!ok) { @@ -59249,12 +59249,12 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setGridSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setGridSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) @@ -59262,28 +59262,28 @@ int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_afterBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59295,12 +59295,12 @@ int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:afterBlit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_afterBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) @@ -59308,31 +59308,31 @@ int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_afterDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -59344,12 +59344,12 @@ int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:afterDraw",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_afterDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) @@ -59357,28 +59357,28 @@ int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_beforeDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59390,12 +59390,12 @@ int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:beforeDraw",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_beforeDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) @@ -59403,28 +59403,28 @@ int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_calculateVertexPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59436,12 +59436,12 @@ int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:calculateVertexPoints",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_calculateVertexPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) @@ -59449,28 +59449,28 @@ int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_isTextureFlipped'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59483,12 +59483,12 @@ int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:isTextureFlipped",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_isTextureFlipped'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) @@ -59496,28 +59496,28 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getGridSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59530,12 +59530,12 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getGridSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getGridSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) @@ -59543,28 +59543,28 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getStep'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59577,12 +59577,12 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getStep",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getStep'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) @@ -59590,28 +59590,28 @@ int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_set2DProjection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59623,12 +59623,12 @@ int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:set2DProjection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_set2DProjection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) @@ -59636,31 +59636,31 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setStep'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:setStep"); if(!ok) { @@ -59672,12 +59672,12 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setStep",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setStep'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) @@ -59685,31 +59685,31 @@ int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setTextureFlipped'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GridBase:setTextureFlipped"); if(!ok) { @@ -59721,12 +59721,12 @@ int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setTextureFlipped",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setTextureFlipped'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) @@ -59734,28 +59734,28 @@ int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_blit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59767,12 +59767,12 @@ int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:blit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_blit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) @@ -59780,31 +59780,31 @@ int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setActive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GridBase:setActive"); if(!ok) { @@ -59816,12 +59816,12 @@ int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setActive",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setActive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) @@ -59829,28 +59829,28 @@ int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getReuseGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59863,12 +59863,12 @@ int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getReuseGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getReuseGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) @@ -59879,7 +59879,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif @@ -59896,7 +59896,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); - + if (!ok) { break; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -59908,15 +59908,15 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) if (argc == 3) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.GridBase:initWithSize"); - + if (!ok) { break; } bool ret = cobj->initWithSize(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -59926,12 +59926,12 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:initWithSize",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_initWithSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) @@ -59939,28 +59939,28 @@ int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_beforeBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59972,12 +59972,12 @@ int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:beforeBlit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_beforeBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) @@ -59985,31 +59985,31 @@ int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setReuseGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GridBase:setReuseGrid"); if(!ok) { @@ -60021,12 +60021,12 @@ int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setReuseGrid",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setReuseGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) @@ -60034,28 +60034,28 @@ int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_isActive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60068,12 +60068,12 @@ int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:isActive",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_isActive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) @@ -60081,28 +60081,28 @@ int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_reuse'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60114,12 +60114,12 @@ int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:reuse",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_reuse'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_create(lua_State* tolua_S) @@ -60129,14 +60129,14 @@ int lua_cocos2dx_GridBase_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -60149,7 +60149,7 @@ int lua_cocos2dx_GridBase_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -60171,7 +60171,7 @@ int lua_cocos2dx_GridBase_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.GridBase:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_create'.",&tolua_err); #endif return 0; @@ -60186,28 +60186,28 @@ int lua_register_cocos2dx_GridBase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridBase"); tolua_cclass(tolua_S,"GridBase","cc.GridBase","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GridBase"); - tolua_function(tolua_S,"setGridSize",lua_cocos2dx_GridBase_setGridSize); - tolua_function(tolua_S,"afterBlit",lua_cocos2dx_GridBase_afterBlit); - tolua_function(tolua_S,"afterDraw",lua_cocos2dx_GridBase_afterDraw); - tolua_function(tolua_S,"beforeDraw",lua_cocos2dx_GridBase_beforeDraw); - tolua_function(tolua_S,"calculateVertexPoints",lua_cocos2dx_GridBase_calculateVertexPoints); - tolua_function(tolua_S,"isTextureFlipped",lua_cocos2dx_GridBase_isTextureFlipped); - tolua_function(tolua_S,"getGridSize",lua_cocos2dx_GridBase_getGridSize); - tolua_function(tolua_S,"getStep",lua_cocos2dx_GridBase_getStep); - tolua_function(tolua_S,"set2DProjection",lua_cocos2dx_GridBase_set2DProjection); - tolua_function(tolua_S,"setStep",lua_cocos2dx_GridBase_setStep); - tolua_function(tolua_S,"setTextureFlipped",lua_cocos2dx_GridBase_setTextureFlipped); - tolua_function(tolua_S,"blit",lua_cocos2dx_GridBase_blit); - tolua_function(tolua_S,"setActive",lua_cocos2dx_GridBase_setActive); - tolua_function(tolua_S,"getReuseGrid",lua_cocos2dx_GridBase_getReuseGrid); - tolua_function(tolua_S,"initWithSize",lua_cocos2dx_GridBase_initWithSize); - tolua_function(tolua_S,"beforeBlit",lua_cocos2dx_GridBase_beforeBlit); - tolua_function(tolua_S,"setReuseGrid",lua_cocos2dx_GridBase_setReuseGrid); - tolua_function(tolua_S,"isActive",lua_cocos2dx_GridBase_isActive); - tolua_function(tolua_S,"reuse",lua_cocos2dx_GridBase_reuse); - tolua_function(tolua_S,"create", lua_cocos2dx_GridBase_create); + tolua_function(tolua_S,"setGridSize",lua_cocos2dx_GridBase_setGridSize); + tolua_function(tolua_S,"afterBlit",lua_cocos2dx_GridBase_afterBlit); + tolua_function(tolua_S,"afterDraw",lua_cocos2dx_GridBase_afterDraw); + tolua_function(tolua_S,"beforeDraw",lua_cocos2dx_GridBase_beforeDraw); + tolua_function(tolua_S,"calculateVertexPoints",lua_cocos2dx_GridBase_calculateVertexPoints); + tolua_function(tolua_S,"isTextureFlipped",lua_cocos2dx_GridBase_isTextureFlipped); + tolua_function(tolua_S,"getGridSize",lua_cocos2dx_GridBase_getGridSize); + tolua_function(tolua_S,"getStep",lua_cocos2dx_GridBase_getStep); + tolua_function(tolua_S,"set2DProjection",lua_cocos2dx_GridBase_set2DProjection); + tolua_function(tolua_S,"setStep",lua_cocos2dx_GridBase_setStep); + tolua_function(tolua_S,"setTextureFlipped",lua_cocos2dx_GridBase_setTextureFlipped); + tolua_function(tolua_S,"blit",lua_cocos2dx_GridBase_blit); + tolua_function(tolua_S,"setActive",lua_cocos2dx_GridBase_setActive); + tolua_function(tolua_S,"getReuseGrid",lua_cocos2dx_GridBase_getReuseGrid); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_GridBase_initWithSize); + tolua_function(tolua_S,"beforeBlit",lua_cocos2dx_GridBase_beforeBlit); + tolua_function(tolua_S,"setReuseGrid",lua_cocos2dx_GridBase_setReuseGrid); + tolua_function(tolua_S,"isActive",lua_cocos2dx_GridBase_isActive); + tolua_function(tolua_S,"reuse",lua_cocos2dx_GridBase_reuse); + tolua_function(tolua_S,"create", lua_cocos2dx_GridBase_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridBase).name(); g_luaType[typeName] = "cc.GridBase"; @@ -60220,28 +60220,28 @@ int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60254,12 +60254,12 @@ int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:getNeedDepthTestForBlit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) @@ -60267,31 +60267,31 @@ int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Grid3D:setNeedDepthTestForBlit"); if(!ok) { @@ -60303,12 +60303,12 @@ int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:setNeedDepthTestForBlit",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) @@ -60318,14 +60318,14 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -60338,7 +60338,7 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -60360,7 +60360,7 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Grid3D:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_create'.",&tolua_err); #endif return 0; @@ -60370,15 +60370,15 @@ int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60394,11 +60394,11 @@ int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:Grid3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_constructor'.",&tolua_err); #endif - + return 0; } @@ -60412,12 +60412,12 @@ int lua_register_cocos2dx_Grid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3D"); tolua_cclass(tolua_S,"Grid3D","cc.Grid3D","cc.GridBase",nullptr); - + tolua_beginmodule(tolua_S,"Grid3D"); - tolua_function(tolua_S,"new",lua_cocos2dx_Grid3D_constructor); - tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_cocos2dx_Grid3D_getNeedDepthTestForBlit); - tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_cocos2dx_Grid3D_setNeedDepthTestForBlit); - tolua_function(tolua_S,"create", lua_cocos2dx_Grid3D_create); + tolua_function(tolua_S,"new",lua_cocos2dx_Grid3D_constructor); + tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_cocos2dx_Grid3D_getNeedDepthTestForBlit); + tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_cocos2dx_Grid3D_setNeedDepthTestForBlit); + tolua_function(tolua_S,"create", lua_cocos2dx_Grid3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3D).name(); g_luaType[typeName] = "cc.Grid3D"; @@ -60432,14 +60432,14 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TiledGrid3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -60452,7 +60452,7 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -60474,7 +60474,7 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TiledGrid3D:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3D_create'.",&tolua_err); #endif return 0; @@ -60484,15 +60484,15 @@ int lua_cocos2dx_TiledGrid3D_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TiledGrid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60508,11 +60508,11 @@ int lua_cocos2dx_TiledGrid3D_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TiledGrid3D:TiledGrid3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3D_constructor'.",&tolua_err); #endif - + return 0; } @@ -60526,10 +60526,10 @@ int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3D"); tolua_cclass(tolua_S,"TiledGrid3D","cc.TiledGrid3D","cc.GridBase",nullptr); - + tolua_beginmodule(tolua_S,"TiledGrid3D"); - tolua_function(tolua_S,"new",lua_cocos2dx_TiledGrid3D_constructor); - tolua_function(tolua_S,"create", lua_cocos2dx_TiledGrid3D_create); + tolua_function(tolua_S,"new",lua_cocos2dx_TiledGrid3D_constructor); + tolua_function(tolua_S,"create", lua_cocos2dx_TiledGrid3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3D).name(); g_luaType[typeName] = "cc.TiledGrid3D"; @@ -60542,28 +60542,28 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getProjectionMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60576,12 +60576,12 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getProjectionMatrix",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getProjectionMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) @@ -60589,28 +60589,28 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60623,12 +60623,12 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getViewProjectionMatrix",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) @@ -60636,28 +60636,28 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getViewMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60670,12 +60670,12 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getViewMatrix",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getViewMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) @@ -60683,28 +60683,28 @@ int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getCameraFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60717,12 +60717,12 @@ int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getCameraFlag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getCameraFlag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getType(lua_State* tolua_S) @@ -60730,28 +60730,28 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60764,64 +60764,12 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getType'.",&tolua_err); #endif - - return 0; -} -int lua_cocos2dx_Camera_enableFrustumCulling(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Camera* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_enableFrustumCulling'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - bool arg0; - bool arg1; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Camera:enableFrustumCulling"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Camera:enableFrustumCulling"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_enableFrustumCulling'", nullptr); - return 0; - } - cobj->enableFrustumCulling(arg0, arg1); - return 0; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:enableFrustumCulling",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_enableFrustumCulling'.",&tolua_err); -#endif - + return 0; } int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) @@ -60829,34 +60777,34 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_lookAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Vec3 arg0; cocos2d::Vec3 arg1; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:lookAt"); - + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Camera:lookAt"); if(!ok) { @@ -60868,62 +60816,12 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:lookAt",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_lookAt'.",&tolua_err); #endif - - return 0; -} -int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Camera* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const cocos2d::AABB* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.AABB",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); - return 0; - } - bool ret = cobj->isVisibleInFrustum(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:isVisibleInFrustum",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_isVisibleInFrustum'.",&tolua_err); -#endif - + return 0; } int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) @@ -60931,31 +60829,31 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setCameraFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::CameraFlag arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Camera:setCameraFlag"); if(!ok) { @@ -60967,29 +60865,29 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setCameraFlag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setCameraFlag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -61004,7 +60902,7 @@ int lua_cocos2dx_Camera_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_create'.",&tolua_err); #endif return 0; @@ -61013,17 +60911,17 @@ int lua_cocos2dx_Camera_createPerspective(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -61046,7 +60944,7 @@ int lua_cocos2dx_Camera_createPerspective(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createPerspective",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_createPerspective'.",&tolua_err); #endif return 0; @@ -61055,17 +60953,17 @@ int lua_cocos2dx_Camera_createOrthographic(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -61088,7 +60986,7 @@ int lua_cocos2dx_Camera_createOrthographic(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createOrthographic",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_createOrthographic'.",&tolua_err); #endif return 0; @@ -61097,17 +60995,17 @@ int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -61122,7 +61020,7 @@ int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getVisitingCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getVisitingCamera'.",&tolua_err); #endif return 0; @@ -61137,21 +61035,19 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Camera"); tolua_cclass(tolua_S,"Camera","cc.Camera","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Camera"); - tolua_function(tolua_S,"getProjectionMatrix",lua_cocos2dx_Camera_getProjectionMatrix); - tolua_function(tolua_S,"getViewProjectionMatrix",lua_cocos2dx_Camera_getViewProjectionMatrix); - tolua_function(tolua_S,"getViewMatrix",lua_cocos2dx_Camera_getViewMatrix); - tolua_function(tolua_S,"getCameraFlag",lua_cocos2dx_Camera_getCameraFlag); - tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType); - tolua_function(tolua_S,"enableFrustumCulling",lua_cocos2dx_Camera_enableFrustumCulling); - tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt); - tolua_function(tolua_S,"isVisibleInFrustum",lua_cocos2dx_Camera_isVisibleInFrustum); - tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag); - tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); - tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective); - tolua_function(tolua_S,"createOrthographic", lua_cocos2dx_Camera_createOrthographic); - tolua_function(tolua_S,"getVisitingCamera", lua_cocos2dx_Camera_getVisitingCamera); + tolua_function(tolua_S,"getProjectionMatrix",lua_cocos2dx_Camera_getProjectionMatrix); + tolua_function(tolua_S,"getViewProjectionMatrix",lua_cocos2dx_Camera_getViewProjectionMatrix); + tolua_function(tolua_S,"getViewMatrix",lua_cocos2dx_Camera_getViewMatrix); + tolua_function(tolua_S,"getCameraFlag",lua_cocos2dx_Camera_getCameraFlag); + tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType); + tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt); + tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag); + tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); + tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective); + tolua_function(tolua_S,"createOrthographic", lua_cocos2dx_Camera_createOrthographic); + tolua_function(tolua_S,"getVisitingCamera", lua_cocos2dx_Camera_getVisitingCamera); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Camera).name(); g_luaType[typeName] = "cc.Camera"; @@ -61164,31 +61060,31 @@ int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.BaseLight:setEnabled"); if(!ok) { @@ -61200,12 +61096,12 @@ int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) @@ -61213,28 +61109,28 @@ int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getIntensity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61247,12 +61143,12 @@ int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getIntensity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getIntensity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) @@ -61260,28 +61156,28 @@ int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61294,12 +61190,12 @@ int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) @@ -61307,28 +61203,28 @@ int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getLightType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61341,12 +61237,12 @@ int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getLightType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getLightType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) @@ -61354,31 +61250,31 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setLightFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::LightFlag arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.BaseLight:setLightFlag"); if(!ok) { @@ -61390,12 +61286,12 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setLightFlag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setLightFlag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) @@ -61403,31 +61299,31 @@ int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setIntensity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BaseLight:setIntensity"); if(!ok) { @@ -61439,12 +61335,12 @@ int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setIntensity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setIntensity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) @@ -61452,28 +61348,28 @@ int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getLightFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61486,12 +61382,12 @@ int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getLightFlag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getLightFlag'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_BaseLight_finalize(lua_State* tolua_S) @@ -61504,15 +61400,15 @@ int lua_register_cocos2dx_BaseLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BaseLight"); tolua_cclass(tolua_S,"BaseLight","cc.BaseLight","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"BaseLight"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_BaseLight_setEnabled); - tolua_function(tolua_S,"getIntensity",lua_cocos2dx_BaseLight_getIntensity); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_BaseLight_isEnabled); - tolua_function(tolua_S,"getLightType",lua_cocos2dx_BaseLight_getLightType); - tolua_function(tolua_S,"setLightFlag",lua_cocos2dx_BaseLight_setLightFlag); - tolua_function(tolua_S,"setIntensity",lua_cocos2dx_BaseLight_setIntensity); - tolua_function(tolua_S,"getLightFlag",lua_cocos2dx_BaseLight_getLightFlag); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_BaseLight_setEnabled); + tolua_function(tolua_S,"getIntensity",lua_cocos2dx_BaseLight_getIntensity); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_BaseLight_isEnabled); + tolua_function(tolua_S,"getLightType",lua_cocos2dx_BaseLight_getLightType); + tolua_function(tolua_S,"setLightFlag",lua_cocos2dx_BaseLight_setLightFlag); + tolua_function(tolua_S,"setIntensity",lua_cocos2dx_BaseLight_setIntensity); + tolua_function(tolua_S,"getLightFlag",lua_cocos2dx_BaseLight_getLightFlag); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BaseLight).name(); g_luaType[typeName] = "cc.BaseLight"; @@ -61525,28 +61421,28 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_getDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61559,12 +61455,12 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:getDirection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_getDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) @@ -61572,28 +61468,28 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61606,12 +61502,12 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:getDirectionInWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) @@ -61619,31 +61515,31 @@ int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_setDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.DirectionLight:setDirection"); if(!ok) { @@ -61655,29 +61551,29 @@ int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:setDirection",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_setDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::Vec3 arg0; @@ -61696,7 +61592,7 @@ int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DirectionLight:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_create'.",&tolua_err); #endif return 0; @@ -61711,12 +61607,12 @@ int lua_register_cocos2dx_DirectionLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DirectionLight"); tolua_cclass(tolua_S,"DirectionLight","cc.DirectionLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"DirectionLight"); - tolua_function(tolua_S,"getDirection",lua_cocos2dx_DirectionLight_getDirection); - tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_DirectionLight_getDirectionInWorld); - tolua_function(tolua_S,"setDirection",lua_cocos2dx_DirectionLight_setDirection); - tolua_function(tolua_S,"create", lua_cocos2dx_DirectionLight_create); + tolua_function(tolua_S,"getDirection",lua_cocos2dx_DirectionLight_getDirection); + tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_DirectionLight_getDirectionInWorld); + tolua_function(tolua_S,"setDirection",lua_cocos2dx_DirectionLight_setDirection); + tolua_function(tolua_S,"create", lua_cocos2dx_DirectionLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DirectionLight).name(); g_luaType[typeName] = "cc.DirectionLight"; @@ -61729,28 +61625,28 @@ int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PointLight_getRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61763,12 +61659,12 @@ int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:getRange",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_getRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) @@ -61776,31 +61672,31 @@ int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PointLight_setRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PointLight:setRange"); if(!ok) { @@ -61812,29 +61708,29 @@ int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:setRange",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_setRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_PointLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { cocos2d::Vec3 arg0; @@ -61855,7 +61751,7 @@ int lua_cocos2dx_PointLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PointLight:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_create'.",&tolua_err); #endif return 0; @@ -61870,11 +61766,11 @@ int lua_register_cocos2dx_PointLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PointLight"); tolua_cclass(tolua_S,"PointLight","cc.PointLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"PointLight"); - tolua_function(tolua_S,"getRange",lua_cocos2dx_PointLight_getRange); - tolua_function(tolua_S,"setRange",lua_cocos2dx_PointLight_setRange); - tolua_function(tolua_S,"create", lua_cocos2dx_PointLight_create); + tolua_function(tolua_S,"getRange",lua_cocos2dx_PointLight_getRange); + tolua_function(tolua_S,"setRange",lua_cocos2dx_PointLight_setRange); + tolua_function(tolua_S,"create", lua_cocos2dx_PointLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PointLight).name(); g_luaType[typeName] = "cc.PointLight"; @@ -61887,28 +61783,28 @@ int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61921,12 +61817,12 @@ int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getRange",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) @@ -61934,31 +61830,31 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.SpotLight:setDirection"); if(!ok) { @@ -61970,12 +61866,12 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setDirection",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) @@ -61983,28 +61879,28 @@ int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62017,12 +61913,12 @@ int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getCosInnerAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) @@ -62030,28 +61926,28 @@ int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getOuterAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62064,12 +61960,12 @@ int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getOuterAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getOuterAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) @@ -62077,28 +61973,28 @@ int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getInnerAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62111,12 +62007,12 @@ int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getInnerAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getInnerAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) @@ -62124,28 +62020,28 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62158,12 +62054,12 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getDirection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) @@ -62171,28 +62067,28 @@ int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62205,12 +62101,12 @@ int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getCosOuterAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) @@ -62218,31 +62114,31 @@ int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setOuterAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setOuterAngle"); if(!ok) { @@ -62254,12 +62150,12 @@ int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setOuterAngle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setOuterAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) @@ -62267,31 +62163,31 @@ int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setInnerAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setInnerAngle"); if(!ok) { @@ -62303,12 +62199,12 @@ int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setInnerAngle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setInnerAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) @@ -62316,28 +62212,28 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62350,12 +62246,12 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getDirectionInWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) @@ -62363,31 +62259,31 @@ int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setRange"); if(!ok) { @@ -62399,29 +62295,29 @@ int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setRange",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 6) { cocos2d::Vec3 arg0; @@ -62448,7 +62344,7 @@ int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpotLight:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_create'.",&tolua_err); #endif return 0; @@ -62463,20 +62359,20 @@ int lua_register_cocos2dx_SpotLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpotLight"); tolua_cclass(tolua_S,"SpotLight","cc.SpotLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"SpotLight"); - tolua_function(tolua_S,"getRange",lua_cocos2dx_SpotLight_getRange); - tolua_function(tolua_S,"setDirection",lua_cocos2dx_SpotLight_setDirection); - tolua_function(tolua_S,"getCosInnerAngle",lua_cocos2dx_SpotLight_getCosInnerAngle); - tolua_function(tolua_S,"getOuterAngle",lua_cocos2dx_SpotLight_getOuterAngle); - tolua_function(tolua_S,"getInnerAngle",lua_cocos2dx_SpotLight_getInnerAngle); - tolua_function(tolua_S,"getDirection",lua_cocos2dx_SpotLight_getDirection); - tolua_function(tolua_S,"getCosOuterAngle",lua_cocos2dx_SpotLight_getCosOuterAngle); - tolua_function(tolua_S,"setOuterAngle",lua_cocos2dx_SpotLight_setOuterAngle); - tolua_function(tolua_S,"setInnerAngle",lua_cocos2dx_SpotLight_setInnerAngle); - tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_SpotLight_getDirectionInWorld); - tolua_function(tolua_S,"setRange",lua_cocos2dx_SpotLight_setRange); - tolua_function(tolua_S,"create", lua_cocos2dx_SpotLight_create); + tolua_function(tolua_S,"getRange",lua_cocos2dx_SpotLight_getRange); + tolua_function(tolua_S,"setDirection",lua_cocos2dx_SpotLight_setDirection); + tolua_function(tolua_S,"getCosInnerAngle",lua_cocos2dx_SpotLight_getCosInnerAngle); + tolua_function(tolua_S,"getOuterAngle",lua_cocos2dx_SpotLight_getOuterAngle); + tolua_function(tolua_S,"getInnerAngle",lua_cocos2dx_SpotLight_getInnerAngle); + tolua_function(tolua_S,"getDirection",lua_cocos2dx_SpotLight_getDirection); + tolua_function(tolua_S,"getCosOuterAngle",lua_cocos2dx_SpotLight_getCosOuterAngle); + tolua_function(tolua_S,"setOuterAngle",lua_cocos2dx_SpotLight_setOuterAngle); + tolua_function(tolua_S,"setInnerAngle",lua_cocos2dx_SpotLight_setInnerAngle); + tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_SpotLight_getDirectionInWorld); + tolua_function(tolua_S,"setRange",lua_cocos2dx_SpotLight_setRange); + tolua_function(tolua_S,"create", lua_cocos2dx_SpotLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpotLight).name(); g_luaType[typeName] = "cc.SpotLight"; @@ -62488,17 +62384,17 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AmbientLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Color3B arg0; @@ -62515,7 +62411,7 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AmbientLight:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AmbientLight_create'.",&tolua_err); #endif return 0; @@ -62530,9 +62426,9 @@ int lua_register_cocos2dx_AmbientLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AmbientLight"); tolua_cclass(tolua_S,"AmbientLight","cc.AmbientLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"AmbientLight"); - tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); + tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AmbientLight).name(); g_luaType[typeName] = "cc.AmbientLight"; @@ -62545,28 +62441,28 @@ int lua_cocos2dx_GLProgram_getFragmentShaderLog(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62579,12 +62475,12 @@ int lua_cocos2dx_GLProgram_getFragmentShaderLog(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getFragmentShaderLog",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) @@ -62592,34 +62488,34 @@ int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_initWithByteArrays'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; const char* arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.GLProgram:initWithByteArrays"); arg0 = arg0_tmp.c_str(); - + std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.GLProgram:initWithByteArrays"); arg1 = arg1_tmp.c_str(); if(!ok) { @@ -62632,12 +62528,12 @@ int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:initWithByteArrays",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_initWithByteArrays'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) @@ -62645,34 +62541,34 @@ int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_initWithFilenames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::string arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:initWithFilenames"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgram:initWithFilenames"); if(!ok) { @@ -62685,12 +62581,12 @@ int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:initWithFilenames",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_initWithFilenames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) @@ -62698,28 +62594,28 @@ int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_use'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62731,12 +62627,12 @@ int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:use",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_use'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) @@ -62744,28 +62640,28 @@ int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62778,12 +62674,12 @@ int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getVertexShaderLog",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) @@ -62794,7 +62690,7 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif @@ -62811,7 +62707,7 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgram:setUniformsForBuiltins"); - + if (!ok) { break; } cobj->setUniformsForBuiltins(arg0); return 0; @@ -62827,12 +62723,12 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformsForBuiltins",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformsForBuiltins'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) @@ -62840,28 +62736,28 @@ int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_updateUniforms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62873,12 +62769,12 @@ int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:updateUniforms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_updateUniforms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) @@ -62886,34 +62782,34 @@ int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; int arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgram:setUniformLocationWith1i"); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgram:setUniformLocationWith1i"); if(!ok) { @@ -62925,12 +62821,12 @@ int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformLocationWith1i",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) @@ -62938,28 +62834,28 @@ int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_reset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62971,12 +62867,12 @@ int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:reset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_reset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) @@ -62984,34 +62880,34 @@ int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_bindAttribLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; unsigned int arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:bindAttribLocation"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgram:bindAttribLocation"); if(!ok) { @@ -63023,12 +62919,12 @@ int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:bindAttribLocation",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_bindAttribLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) @@ -63036,31 +62932,31 @@ int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getAttribLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:getAttribLocation"); if(!ok) { @@ -63073,12 +62969,12 @@ int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getAttribLocation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getAttribLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) @@ -63086,28 +62982,28 @@ int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_link'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63120,29 +63016,29 @@ int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:link",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_link'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_createWithByteArrays(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { const char* arg0; @@ -63161,7 +63057,7 @@ int lua_cocos2dx_GLProgram_createWithByteArrays(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgram:createWithByteArrays",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_createWithByteArrays'.",&tolua_err); #endif return 0; @@ -63170,17 +63066,17 @@ int lua_cocos2dx_GLProgram_createWithFilenames(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -63199,7 +63095,7 @@ int lua_cocos2dx_GLProgram_createWithFilenames(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgram:createWithFilenames",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_createWithFilenames'.",&tolua_err); #endif return 0; @@ -63209,15 +63105,15 @@ int lua_cocos2dx_GLProgram_constructor(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63233,11 +63129,11 @@ int lua_cocos2dx_GLProgram_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:GLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_constructor'.",&tolua_err); #endif - + return 0; } @@ -63251,23 +63147,23 @@ int lua_register_cocos2dx_GLProgram(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgram"); tolua_cclass(tolua_S,"GLProgram","cc.GLProgram","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLProgram"); - tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); - tolua_function(tolua_S,"getFragmentShaderLog",lua_cocos2dx_GLProgram_getFragmentShaderLog); - tolua_function(tolua_S,"initWithByteArrays",lua_cocos2dx_GLProgram_initWithByteArrays); - tolua_function(tolua_S,"initWithFilenames",lua_cocos2dx_GLProgram_initWithFilenames); - tolua_function(tolua_S,"use",lua_cocos2dx_GLProgram_use); - tolua_function(tolua_S,"getVertexShaderLog",lua_cocos2dx_GLProgram_getVertexShaderLog); - tolua_function(tolua_S,"setUniformsForBuiltins",lua_cocos2dx_GLProgram_setUniformsForBuiltins); - tolua_function(tolua_S,"updateUniforms",lua_cocos2dx_GLProgram_updateUniforms); - tolua_function(tolua_S,"setUniformLocationI32",lua_cocos2dx_GLProgram_setUniformLocationWith1i); - tolua_function(tolua_S,"reset",lua_cocos2dx_GLProgram_reset); - tolua_function(tolua_S,"bindAttribLocation",lua_cocos2dx_GLProgram_bindAttribLocation); - tolua_function(tolua_S,"getAttribLocation",lua_cocos2dx_GLProgram_getAttribLocation); - tolua_function(tolua_S,"link",lua_cocos2dx_GLProgram_link); - tolua_function(tolua_S,"createWithByteArrays", lua_cocos2dx_GLProgram_createWithByteArrays); - tolua_function(tolua_S,"createWithFilenames", lua_cocos2dx_GLProgram_createWithFilenames); + tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); + tolua_function(tolua_S,"getFragmentShaderLog",lua_cocos2dx_GLProgram_getFragmentShaderLog); + tolua_function(tolua_S,"initWithByteArrays",lua_cocos2dx_GLProgram_initWithByteArrays); + tolua_function(tolua_S,"initWithFilenames",lua_cocos2dx_GLProgram_initWithFilenames); + tolua_function(tolua_S,"use",lua_cocos2dx_GLProgram_use); + tolua_function(tolua_S,"getVertexShaderLog",lua_cocos2dx_GLProgram_getVertexShaderLog); + tolua_function(tolua_S,"setUniformsForBuiltins",lua_cocos2dx_GLProgram_setUniformsForBuiltins); + tolua_function(tolua_S,"updateUniforms",lua_cocos2dx_GLProgram_updateUniforms); + tolua_function(tolua_S,"setUniformLocationI32",lua_cocos2dx_GLProgram_setUniformLocationWith1i); + tolua_function(tolua_S,"reset",lua_cocos2dx_GLProgram_reset); + tolua_function(tolua_S,"bindAttribLocation",lua_cocos2dx_GLProgram_bindAttribLocation); + tolua_function(tolua_S,"getAttribLocation",lua_cocos2dx_GLProgram_getAttribLocation); + tolua_function(tolua_S,"link",lua_cocos2dx_GLProgram_link); + tolua_function(tolua_S,"createWithByteArrays", lua_cocos2dx_GLProgram_createWithByteArrays); + tolua_function(tolua_S,"createWithFilenames", lua_cocos2dx_GLProgram_createWithFilenames); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgram).name(); g_luaType[typeName] = "cc.GLProgram"; @@ -63280,34 +63176,34 @@ int lua_cocos2dx_GLProgramCache_addGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_addGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::GLProgram* arg0; std::string arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgramCache:addGLProgram"); if(!ok) { @@ -63319,12 +63215,12 @@ int lua_cocos2dx_GLProgramCache_addGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:addGLProgram",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_addGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) @@ -63332,31 +63228,31 @@ int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramCache:getGLProgram"); if(!ok) { @@ -63369,12 +63265,12 @@ int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:getGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) @@ -63382,28 +63278,28 @@ int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63415,12 +63311,12 @@ int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:reloadDefaultGLPrograms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) @@ -63428,28 +63324,28 @@ int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63461,29 +63357,29 @@ int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:loadDefaultGLPrograms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -63497,7 +63393,7 @@ int lua_cocos2dx_GLProgramCache_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_destroyInstance'.",&tolua_err); #endif return 0; @@ -63506,17 +63402,17 @@ int lua_cocos2dx_GLProgramCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -63531,7 +63427,7 @@ int lua_cocos2dx_GLProgramCache_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_getInstance'.",&tolua_err); #endif return 0; @@ -63541,15 +63437,15 @@ int lua_cocos2dx_GLProgramCache_constructor(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63565,11 +63461,11 @@ int lua_cocos2dx_GLProgramCache_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:GLProgramCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_constructor'.",&tolua_err); #endif - + return 0; } @@ -63583,15 +63479,15 @@ int lua_register_cocos2dx_GLProgramCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramCache"); tolua_cclass(tolua_S,"GLProgramCache","cc.GLProgramCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLProgramCache"); - tolua_function(tolua_S,"new",lua_cocos2dx_GLProgramCache_constructor); - tolua_function(tolua_S,"addGLProgram",lua_cocos2dx_GLProgramCache_addGLProgram); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramCache_getGLProgram); - tolua_function(tolua_S,"reloadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms); - tolua_function(tolua_S,"loadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_GLProgramCache_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_GLProgramCache_getInstance); + tolua_function(tolua_S,"new",lua_cocos2dx_GLProgramCache_constructor); + tolua_function(tolua_S,"addGLProgram",lua_cocos2dx_GLProgramCache_addGLProgram); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramCache_getGLProgram); + tolua_function(tolua_S,"reloadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms); + tolua_function(tolua_S,"loadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_GLProgramCache_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_GLProgramCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgramCache).name(); g_luaType[typeName] = "cc.GLProgramCache"; @@ -63604,31 +63500,31 @@ int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_reloadTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:reloadTexture"); if(!ok) { @@ -63641,12 +63537,12 @@ int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:reloadTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_reloadTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) @@ -63654,28 +63550,28 @@ int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63687,12 +63583,12 @@ int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:unbindAllImageAsync",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) @@ -63700,31 +63596,31 @@ int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeTextureForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:removeTextureForKey"); if(!ok) { @@ -63736,12 +63632,12 @@ int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeTextureForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeTextureForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) @@ -63749,28 +63645,28 @@ int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeAllTextures'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63782,12 +63678,12 @@ int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeAllTextures",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeAllTextures'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) @@ -63795,28 +63691,28 @@ int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getDescription'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63829,12 +63725,12 @@ int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getDescription",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getDescription'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) @@ -63842,28 +63738,28 @@ int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63876,12 +63772,12 @@ int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getCachedTextureInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) @@ -63892,7 +63788,7 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif @@ -63909,11 +63805,11 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) if (argc == 2) { cocos2d::Image* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TextureCache:addImage"); - + if (!ok) { break; } cocos2d::Texture2D* ret = cobj->addImage(arg0, arg1); object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); @@ -63925,7 +63821,7 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:addImage"); - + if (!ok) { break; } cocos2d::Texture2D* ret = cobj->addImage(arg0); object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); @@ -63935,12 +63831,12 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:addImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_addImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) @@ -63948,31 +63844,31 @@ int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_unbindImageAsync'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:unbindImageAsync"); if(!ok) { @@ -63984,12 +63880,12 @@ int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:unbindImageAsync",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_unbindImageAsync'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) @@ -63997,31 +63893,31 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getTextureForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:getTextureForKey"); if(!ok) { @@ -64034,12 +63930,12 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getTextureForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getTextureForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) @@ -64047,28 +63943,28 @@ int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64080,12 +63976,12 @@ int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeUnusedTextures",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) @@ -64093,31 +63989,31 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -64129,12 +64025,12 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) @@ -64142,28 +64038,28 @@ int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_waitForQuit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64175,12 +64071,12 @@ int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:waitForQuit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_waitForQuit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) @@ -64188,15 +64084,15 @@ int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64212,11 +64108,11 @@ int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:TextureCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_constructor'.",&tolua_err); #endif - + return 0; } @@ -64230,21 +64126,21 @@ int lua_register_cocos2dx_TextureCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TextureCache"); tolua_cclass(tolua_S,"TextureCache","cc.TextureCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TextureCache"); - tolua_function(tolua_S,"new",lua_cocos2dx_TextureCache_constructor); - tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_TextureCache_reloadTexture); - tolua_function(tolua_S,"unbindAllImageAsync",lua_cocos2dx_TextureCache_unbindAllImageAsync); - tolua_function(tolua_S,"removeTextureForKey",lua_cocos2dx_TextureCache_removeTextureForKey); - tolua_function(tolua_S,"removeAllTextures",lua_cocos2dx_TextureCache_removeAllTextures); - tolua_function(tolua_S,"getDescription",lua_cocos2dx_TextureCache_getDescription); - tolua_function(tolua_S,"getCachedTextureInfo",lua_cocos2dx_TextureCache_getCachedTextureInfo); - tolua_function(tolua_S,"addImage",lua_cocos2dx_TextureCache_addImage); - tolua_function(tolua_S,"unbindImageAsync",lua_cocos2dx_TextureCache_unbindImageAsync); - tolua_function(tolua_S,"getTextureForKey",lua_cocos2dx_TextureCache_getTextureForKey); - tolua_function(tolua_S,"removeUnusedTextures",lua_cocos2dx_TextureCache_removeUnusedTextures); - tolua_function(tolua_S,"removeTexture",lua_cocos2dx_TextureCache_removeTexture); - tolua_function(tolua_S,"waitForQuit",lua_cocos2dx_TextureCache_waitForQuit); + tolua_function(tolua_S,"new",lua_cocos2dx_TextureCache_constructor); + tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_TextureCache_reloadTexture); + tolua_function(tolua_S,"unbindAllImageAsync",lua_cocos2dx_TextureCache_unbindAllImageAsync); + tolua_function(tolua_S,"removeTextureForKey",lua_cocos2dx_TextureCache_removeTextureForKey); + tolua_function(tolua_S,"removeAllTextures",lua_cocos2dx_TextureCache_removeAllTextures); + tolua_function(tolua_S,"getDescription",lua_cocos2dx_TextureCache_getDescription); + tolua_function(tolua_S,"getCachedTextureInfo",lua_cocos2dx_TextureCache_getCachedTextureInfo); + tolua_function(tolua_S,"addImage",lua_cocos2dx_TextureCache_addImage); + tolua_function(tolua_S,"unbindImageAsync",lua_cocos2dx_TextureCache_unbindImageAsync); + tolua_function(tolua_S,"getTextureForKey",lua_cocos2dx_TextureCache_getTextureForKey); + tolua_function(tolua_S,"removeUnusedTextures",lua_cocos2dx_TextureCache_removeUnusedTextures); + tolua_function(tolua_S,"removeTexture",lua_cocos2dx_TextureCache_removeTexture); + tolua_function(tolua_S,"waitForQuit",lua_cocos2dx_TextureCache_waitForQuit); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TextureCache).name(); g_luaType[typeName] = "cc.TextureCache"; @@ -64256,17 +64152,17 @@ int lua_cocos2dx_Device_setAccelerometerEnabled(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -64282,7 +64178,7 @@ int lua_cocos2dx_Device_setAccelerometerEnabled(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setAccelerometerEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setAccelerometerEnabled'.",&tolua_err); #endif return 0; @@ -64291,17 +64187,17 @@ int lua_cocos2dx_Device_setKeepScreenOn(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -64317,7 +64213,7 @@ int lua_cocos2dx_Device_setKeepScreenOn(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setKeepScreenOn",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setKeepScreenOn'.",&tolua_err); #endif return 0; @@ -64326,17 +64222,17 @@ int lua_cocos2dx_Device_setAccelerometerInterval(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -64352,7 +64248,7 @@ int lua_cocos2dx_Device_setAccelerometerInterval(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setAccelerometerInterval",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setAccelerometerInterval'.",&tolua_err); #endif return 0; @@ -64361,17 +64257,17 @@ int lua_cocos2dx_Device_getDPI(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -64386,7 +64282,7 @@ int lua_cocos2dx_Device_getDPI(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:getDPI",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_getDPI'.",&tolua_err); #endif return 0; @@ -64401,12 +64297,12 @@ int lua_register_cocos2dx_Device(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Device"); tolua_cclass(tolua_S,"Device","cc.Device","",nullptr); - + tolua_beginmodule(tolua_S,"Device"); - tolua_function(tolua_S,"setAccelerometerEnabled", lua_cocos2dx_Device_setAccelerometerEnabled); - tolua_function(tolua_S,"setKeepScreenOn", lua_cocos2dx_Device_setKeepScreenOn); - tolua_function(tolua_S,"setAccelerometerInterval", lua_cocos2dx_Device_setAccelerometerInterval); - tolua_function(tolua_S,"getDPI", lua_cocos2dx_Device_getDPI); + tolua_function(tolua_S,"setAccelerometerEnabled", lua_cocos2dx_Device_setAccelerometerEnabled); + tolua_function(tolua_S,"setKeepScreenOn", lua_cocos2dx_Device_setKeepScreenOn); + tolua_function(tolua_S,"setAccelerometerInterval", lua_cocos2dx_Device_setAccelerometerInterval); + tolua_function(tolua_S,"getDPI", lua_cocos2dx_Device_getDPI); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Device).name(); g_luaType[typeName] = "cc.Device"; @@ -64419,31 +64315,31 @@ int lua_cocos2dx_Application_openURL(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_openURL'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Application:openURL"); if(!ok) { @@ -64456,12 +64352,12 @@ int lua_cocos2dx_Application_openURL(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:openURL",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_openURL'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) @@ -64469,28 +64365,28 @@ int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getTargetPlatform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64503,12 +64399,12 @@ int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getTargetPlatform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getTargetPlatform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) @@ -64516,28 +64412,28 @@ int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getCurrentLanguage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64550,12 +64446,12 @@ int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getCurrentLanguage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getCurrentLanguage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) @@ -64563,28 +64459,28 @@ int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getCurrentLanguageCode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64597,12 +64493,12 @@ int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getCurrentLanguageCode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getCurrentLanguageCode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) @@ -64610,31 +64506,31 @@ int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_setAnimationInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Application:setAnimationInterval"); if(!ok) { @@ -64646,29 +64542,29 @@ int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:setAnimationInterval",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_setAnimationInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -64683,7 +64579,7 @@ int lua_cocos2dx_Application_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Application:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getInstance'.",&tolua_err); #endif return 0; @@ -64698,14 +64594,14 @@ int lua_register_cocos2dx_Application(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Application"); tolua_cclass(tolua_S,"Application","cc.Application","",nullptr); - + tolua_beginmodule(tolua_S,"Application"); - tolua_function(tolua_S,"openURL",lua_cocos2dx_Application_openURL); - tolua_function(tolua_S,"getTargetPlatform",lua_cocos2dx_Application_getTargetPlatform); - tolua_function(tolua_S,"getCurrentLanguage",lua_cocos2dx_Application_getCurrentLanguage); - tolua_function(tolua_S,"getCurrentLanguageCode",lua_cocos2dx_Application_getCurrentLanguageCode); - tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Application_setAnimationInterval); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_Application_getInstance); + tolua_function(tolua_S,"openURL",lua_cocos2dx_Application_openURL); + tolua_function(tolua_S,"getTargetPlatform",lua_cocos2dx_Application_getTargetPlatform); + tolua_function(tolua_S,"getCurrentLanguage",lua_cocos2dx_Application_getCurrentLanguage); + tolua_function(tolua_S,"getCurrentLanguageCode",lua_cocos2dx_Application_getCurrentLanguageCode); + tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Application_setAnimationInterval); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_Application_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Application).name(); g_luaType[typeName] = "cc.Application"; @@ -64717,17 +64613,17 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -64763,7 +64659,7 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithRect",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_createWithRect'.",&tolua_err); #endif return 0; @@ -64772,17 +64668,17 @@ int lua_cocos2dx_GLViewImpl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -64799,7 +64695,7 @@ int lua_cocos2dx_GLViewImpl_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_create'.",&tolua_err); #endif return 0; @@ -64808,17 +64704,17 @@ int lua_cocos2dx_GLViewImpl_createWithFullScreen(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -64835,7 +64731,7 @@ int lua_cocos2dx_GLViewImpl_createWithFullScreen(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithFullScreen",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_createWithFullScreen'.",&tolua_err); #endif return 0; @@ -64850,11 +64746,11 @@ int lua_register_cocos2dx_GLViewImpl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLViewImpl"); tolua_cclass(tolua_S,"GLViewImpl","cc.GLViewImpl","cc.GLView",nullptr); - + tolua_beginmodule(tolua_S,"GLViewImpl"); - tolua_function(tolua_S,"createWithRect", lua_cocos2dx_GLViewImpl_createWithRect); - tolua_function(tolua_S,"create", lua_cocos2dx_GLViewImpl_create); - tolua_function(tolua_S,"createWithFullScreen", lua_cocos2dx_GLViewImpl_createWithFullScreen); + tolua_function(tolua_S,"createWithRect", lua_cocos2dx_GLViewImpl_createWithRect); + tolua_function(tolua_S,"create", lua_cocos2dx_GLViewImpl_create); + tolua_function(tolua_S,"createWithFullScreen", lua_cocos2dx_GLViewImpl_createWithFullScreen); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLViewImpl).name(); g_luaType[typeName] = "cc.GLViewImpl"; @@ -64867,31 +64763,31 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_getAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:getAnimation"); if(!ok) { @@ -64904,12 +64800,12 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:getAnimation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_getAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) @@ -64917,34 +64813,34 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Animation* arg0; std::string arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimation"); if(!ok) { @@ -64956,12 +64852,12 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimation",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) @@ -64969,28 +64865,28 @@ int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_init'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65003,12 +64899,12 @@ int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) @@ -65016,34 +64912,34 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationCache:addAnimationsWithDictionary"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimationsWithDictionary"); if(!ok) { @@ -65055,12 +64951,12 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimationsWithDictionary",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) @@ -65068,31 +64964,31 @@ int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_removeAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:removeAnimation"); if(!ok) { @@ -65104,12 +65000,12 @@ int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:removeAnimation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_removeAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) @@ -65117,31 +65013,31 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:addAnimationsWithFile"); if(!ok) { @@ -65153,29 +65049,29 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimationsWithFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65189,7 +65085,7 @@ int lua_cocos2dx_AnimationCache_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_destroyInstance'.",&tolua_err); #endif return 0; @@ -65198,17 +65094,17 @@ int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65223,7 +65119,7 @@ int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_getInstance'.",&tolua_err); #endif return 0; @@ -65233,15 +65129,15 @@ int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65257,11 +65153,11 @@ int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:AnimationCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_constructor'.",&tolua_err); #endif - + return 0; } @@ -65275,17 +65171,17 @@ int lua_register_cocos2dx_AnimationCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationCache"); tolua_cclass(tolua_S,"AnimationCache","cc.AnimationCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"AnimationCache"); - tolua_function(tolua_S,"new",lua_cocos2dx_AnimationCache_constructor); - tolua_function(tolua_S,"getAnimation",lua_cocos2dx_AnimationCache_getAnimation); - tolua_function(tolua_S,"addAnimation",lua_cocos2dx_AnimationCache_addAnimation); - tolua_function(tolua_S,"init",lua_cocos2dx_AnimationCache_init); - tolua_function(tolua_S,"addAnimationsWithDictionary",lua_cocos2dx_AnimationCache_addAnimationsWithDictionary); - tolua_function(tolua_S,"removeAnimation",lua_cocos2dx_AnimationCache_removeAnimation); - tolua_function(tolua_S,"addAnimations",lua_cocos2dx_AnimationCache_addAnimationsWithFile); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AnimationCache_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_AnimationCache_getInstance); + tolua_function(tolua_S,"new",lua_cocos2dx_AnimationCache_constructor); + tolua_function(tolua_S,"getAnimation",lua_cocos2dx_AnimationCache_getAnimation); + tolua_function(tolua_S,"addAnimation",lua_cocos2dx_AnimationCache_addAnimation); + tolua_function(tolua_S,"init",lua_cocos2dx_AnimationCache_init); + tolua_function(tolua_S,"addAnimationsWithDictionary",lua_cocos2dx_AnimationCache_addAnimationsWithDictionary); + tolua_function(tolua_S,"removeAnimation",lua_cocos2dx_AnimationCache_removeAnimation); + tolua_function(tolua_S,"addAnimations",lua_cocos2dx_AnimationCache_addAnimationsWithFile); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AnimationCache_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_AnimationCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationCache).name(); g_luaType[typeName] = "cc.AnimationCache"; @@ -65298,34 +65194,34 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent(lua_State* tolu int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; cocos2d::Texture2D* arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFileContent"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); if(!ok) { @@ -65337,12 +65233,12 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent(lua_State* tolu } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFramesWithFileContent",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) @@ -65353,7 +65249,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif @@ -65370,11 +65266,11 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); return 0; @@ -65385,7 +65281,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0); return 0; @@ -65396,11 +65292,11 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); return 0; @@ -65409,12 +65305,12 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFramesWithFile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) @@ -65422,34 +65318,34 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::SpriteFrame* arg0; std::string arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFrame"); if(!ok) { @@ -65461,12 +65357,12 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFrame",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) @@ -65474,28 +65370,28 @@ int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65507,12 +65403,12 @@ int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeUnusedSpriteFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) @@ -65520,31 +65416,31 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:getSpriteFrameByName"); if(!ok) { @@ -65557,12 +65453,12 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:getSpriteFrameByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) @@ -65570,31 +65466,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromFile"); if(!ok) { @@ -65606,12 +65502,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) @@ -65619,28 +65515,28 @@ int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_init'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65653,12 +65549,12 @@ int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) @@ -65666,28 +65562,28 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65699,12 +65595,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua_S) @@ -65712,31 +65608,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -65748,12 +65644,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* tolua_S) @@ -65761,31 +65657,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* t int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromFileContent"); if(!ok) { @@ -65797,12 +65693,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* t } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromFileContent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) @@ -65810,31 +65706,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFrameByName"); if(!ok) { @@ -65846,29 +65742,29 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFrameByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65882,7 +65778,7 @@ int lua_cocos2dx_SpriteFrameCache_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_destroyInstance'.",&tolua_err); #endif return 0; @@ -65891,17 +65787,17 @@ int lua_cocos2dx_SpriteFrameCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65916,7 +65812,7 @@ int lua_cocos2dx_SpriteFrameCache_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_getInstance'.",&tolua_err); #endif return 0; @@ -65931,21 +65827,21 @@ int lua_register_cocos2dx_SpriteFrameCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrameCache"); tolua_cclass(tolua_S,"SpriteFrameCache","cc.SpriteFrameCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"SpriteFrameCache"); - tolua_function(tolua_S,"addSpriteFramesWithFileContent",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent); - tolua_function(tolua_S,"addSpriteFrames",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile); - tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_SpriteFrameCache_addSpriteFrame); - tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames); - tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName); - tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile); - tolua_function(tolua_S,"init",lua_cocos2dx_SpriteFrameCache_init); - tolua_function(tolua_S,"removeSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeSpriteFrames); - tolua_function(tolua_S,"removeSpriteFramesFromTexture",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture); - tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent); - tolua_function(tolua_S,"removeSpriteFrameByName",lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_SpriteFrameCache_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_SpriteFrameCache_getInstance); + tolua_function(tolua_S,"addSpriteFramesWithFileContent",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent); + tolua_function(tolua_S,"addSpriteFrames",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile); + tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_SpriteFrameCache_addSpriteFrame); + tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames); + tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName); + tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile); + tolua_function(tolua_S,"init",lua_cocos2dx_SpriteFrameCache_init); + tolua_function(tolua_S,"removeSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeSpriteFrames); + tolua_function(tolua_S,"removeSpriteFramesFromTexture",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture); + tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent); + tolua_function(tolua_S,"removeSpriteFrameByName",lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_SpriteFrameCache_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_SpriteFrameCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteFrameCache).name(); g_luaType[typeName] = "cc.SpriteFrameCache"; @@ -65958,40 +65854,40 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_addChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { cocos2d::Node* arg0; int arg1; cocos2d::Vec2 arg2; cocos2d::Vec2 arg3; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParallaxNode:addChild"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.ParallaxNode:addChild"); - + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.ParallaxNode:addChild"); if(!ok) { @@ -66003,12 +65899,12 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:addChild",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_addChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -66016,31 +65912,31 @@ int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParallaxNode:removeAllChildrenWithCleanup"); if(!ok) { @@ -66052,29 +65948,29 @@ int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -66089,7 +65985,7 @@ int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParallaxNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_create'.",&tolua_err); #endif return 0; @@ -66104,11 +66000,11 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParallaxNode"); tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ParallaxNode"); - tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); + tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParallaxNode).name(); g_luaType[typeName] = "cc.ParallaxNode"; @@ -66121,31 +66017,31 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setPositionOffset"); if(!ok) { @@ -66157,12 +66053,12 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setPositionOffset",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) @@ -66170,31 +66066,31 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getProperty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:getProperty"); if(!ok) { @@ -66207,12 +66103,12 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getProperty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getProperty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) @@ -66220,28 +66116,28 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66254,12 +66150,12 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getPositionOffset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) @@ -66267,31 +66163,31 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getObject'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:getObject"); if(!ok) { @@ -66304,12 +66200,12 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getObject",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getObject'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) @@ -66320,7 +66216,7 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif @@ -66351,12 +66247,12 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getObjects",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getObjects'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) @@ -66364,31 +66260,31 @@ int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:setGroupName"); if(!ok) { @@ -66400,12 +66296,12 @@ int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setGroupName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) @@ -66416,7 +66312,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif @@ -66447,12 +66343,12 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) @@ -66460,28 +66356,28 @@ int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66494,12 +66390,12 @@ int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getGroupName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) @@ -66507,31 +66403,31 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setProperties"); if(!ok) { @@ -66543,12 +66439,12 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) @@ -66556,31 +66452,31 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setObjects'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueVector arg0; - + ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setObjects"); if(!ok) { @@ -66592,12 +66488,12 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setObjects",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setObjects'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) @@ -66605,15 +66501,15 @@ int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66629,11 +66525,11 @@ int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:TMXObjectGroup",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_constructor'.",&tolua_err); #endif - + return 0; } @@ -66647,19 +66543,19 @@ int lua_register_cocos2dx_TMXObjectGroup(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXObjectGroup"); tolua_cclass(tolua_S,"TMXObjectGroup","cc.TMXObjectGroup","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TMXObjectGroup"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXObjectGroup_constructor); - tolua_function(tolua_S,"setPositionOffset",lua_cocos2dx_TMXObjectGroup_setPositionOffset); - tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXObjectGroup_getProperty); - tolua_function(tolua_S,"getPositionOffset",lua_cocos2dx_TMXObjectGroup_getPositionOffset); - tolua_function(tolua_S,"getObject",lua_cocos2dx_TMXObjectGroup_getObject); - tolua_function(tolua_S,"getObjects",lua_cocos2dx_TMXObjectGroup_getObjects); - tolua_function(tolua_S,"setGroupName",lua_cocos2dx_TMXObjectGroup_setGroupName); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXObjectGroup_getProperties); - tolua_function(tolua_S,"getGroupName",lua_cocos2dx_TMXObjectGroup_getGroupName); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXObjectGroup_setProperties); - tolua_function(tolua_S,"setObjects",lua_cocos2dx_TMXObjectGroup_setObjects); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXObjectGroup_constructor); + tolua_function(tolua_S,"setPositionOffset",lua_cocos2dx_TMXObjectGroup_setPositionOffset); + tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXObjectGroup_getProperty); + tolua_function(tolua_S,"getPositionOffset",lua_cocos2dx_TMXObjectGroup_getPositionOffset); + tolua_function(tolua_S,"getObject",lua_cocos2dx_TMXObjectGroup_getObject); + tolua_function(tolua_S,"getObjects",lua_cocos2dx_TMXObjectGroup_getObjects); + tolua_function(tolua_S,"setGroupName",lua_cocos2dx_TMXObjectGroup_setGroupName); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXObjectGroup_getProperties); + tolua_function(tolua_S,"getGroupName",lua_cocos2dx_TMXObjectGroup_getGroupName); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXObjectGroup_setProperties); + tolua_function(tolua_S,"setObjects",lua_cocos2dx_TMXObjectGroup_setObjects); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXObjectGroup).name(); g_luaType[typeName] = "cc.TMXObjectGroup"; @@ -66672,31 +66568,31 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayerInfo_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayerInfo:setProperties"); if(!ok) { @@ -66708,12 +66604,12 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) @@ -66721,28 +66617,28 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayerInfo_getProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66755,12 +66651,12 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) @@ -66768,15 +66664,15 @@ int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66792,11 +66688,11 @@ int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:TMXLayerInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_constructor'.",&tolua_err); #endif - + return 0; } @@ -66810,11 +66706,11 @@ int lua_register_cocos2dx_TMXLayerInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayerInfo"); tolua_cclass(tolua_S,"TMXLayerInfo","cc.TMXLayerInfo","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TMXLayerInfo"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayerInfo_constructor); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayerInfo_setProperties); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayerInfo_getProperties); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayerInfo_constructor); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayerInfo_setProperties); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayerInfo_getProperties); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXLayerInfo).name(); g_luaType[typeName] = "cc.TMXLayerInfo"; @@ -66827,31 +66723,31 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) int argc = 0; cocos2d::TMXTilesetInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTilesetInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTilesetInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXTilesetInfo:getRectForGID"); if(!ok) { @@ -66864,12 +66760,12 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTilesetInfo:getRectForGID",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) @@ -66877,15 +66773,15 @@ int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXTilesetInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66901,11 +66797,11 @@ int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTilesetInfo:TMXTilesetInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTilesetInfo_constructor'.",&tolua_err); #endif - + return 0; } @@ -66919,10 +66815,10 @@ int lua_register_cocos2dx_TMXTilesetInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTilesetInfo"); tolua_cclass(tolua_S,"TMXTilesetInfo","cc.TMXTilesetInfo","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TMXTilesetInfo"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); - tolua_function(tolua_S,"getRectForGID",lua_cocos2dx_TMXTilesetInfo_getRectForGID); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); + tolua_function(tolua_S,"getRectForGID",lua_cocos2dx_TMXTilesetInfo_getRectForGID); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXTilesetInfo).name(); g_luaType[typeName] = "cc.TMXTilesetInfo"; @@ -66935,31 +66831,31 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setObjectGroups"); if(!ok) { @@ -66971,12 +66867,12 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setObjectGroups",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) @@ -66984,31 +66880,31 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileSize"); if(!ok) { @@ -67020,12 +66916,12 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) @@ -67033,31 +66929,31 @@ int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:initWithTMXFile"); if(!ok) { @@ -67070,12 +66966,12 @@ int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:initWithTMXFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) @@ -67083,28 +66979,28 @@ int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67117,12 +67013,12 @@ int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getOrientation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) @@ -67130,28 +67026,28 @@ int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67164,12 +67060,12 @@ int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:isStoringCharacters",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) @@ -67177,31 +67073,31 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setLayers'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setLayers"); if(!ok) { @@ -67213,12 +67109,12 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setLayers",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setLayers'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) @@ -67226,31 +67122,31 @@ int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:parseXMLFile"); if(!ok) { @@ -67263,12 +67159,12 @@ int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:parseXMLFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) @@ -67276,28 +67172,28 @@ int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getParentElement'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67310,12 +67206,12 @@ int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getParentElement",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getParentElement'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) @@ -67323,31 +67219,31 @@ int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:setTMXFileName"); if(!ok) { @@ -67359,12 +67255,12 @@ int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTMXFileName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) @@ -67372,31 +67268,31 @@ int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:parseXMLString"); if(!ok) { @@ -67409,12 +67305,12 @@ int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:parseXMLString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) @@ -67425,7 +67321,7 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -67456,12 +67352,12 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getLayers",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getLayers'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) @@ -67472,7 +67368,7 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -67503,12 +67399,12 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTilesets",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTilesets'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) @@ -67516,28 +67412,28 @@ int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getParentGID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67550,12 +67446,12 @@ int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getParentGID",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getParentGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) @@ -67563,31 +67459,31 @@ int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setParentElement'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setParentElement"); if(!ok) { @@ -67599,12 +67495,12 @@ int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setParentElement",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setParentElement'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) @@ -67612,34 +67508,34 @@ int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_initWithXML'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::string arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:initWithXML"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXMapInfo:initWithXML"); if(!ok) { @@ -67652,12 +67548,12 @@ int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:initWithXML",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_initWithXML'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) @@ -67665,31 +67561,31 @@ int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setParentGID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setParentGID"); if(!ok) { @@ -67701,12 +67597,12 @@ int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setParentGID",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setParentGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) @@ -67714,28 +67610,28 @@ int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67748,12 +67644,12 @@ int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getLayerAttribs",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) @@ -67761,28 +67657,28 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67795,12 +67691,12 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTileSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) @@ -67808,28 +67704,28 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67842,12 +67738,12 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTileProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) @@ -67858,7 +67754,7 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -67889,12 +67785,12 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getObjectGroups",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) @@ -67902,28 +67798,28 @@ int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67936,12 +67832,12 @@ int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTMXFileName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) @@ -67949,31 +67845,31 @@ int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:setCurrentString"); if(!ok) { @@ -67985,12 +67881,12 @@ int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setCurrentString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) @@ -67998,31 +67894,31 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXMapInfo:setProperties"); if(!ok) { @@ -68034,12 +67930,12 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) @@ -68047,31 +67943,31 @@ int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setOrientation"); if(!ok) { @@ -68083,12 +67979,12 @@ int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setOrientation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) @@ -68096,31 +67992,31 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMapIntKey arg0; - + ok &= luaval_to_ccvaluemapintkey(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileProperties"); if(!ok) { @@ -68132,12 +68028,12 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTileProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) @@ -68145,31 +68041,31 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXMapInfo:setMapSize"); if(!ok) { @@ -68181,12 +68077,12 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setMapSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) @@ -68194,31 +68090,31 @@ int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.TMXMapInfo:setStoringCharacters"); if(!ok) { @@ -68230,12 +68126,12 @@ int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setStoringCharacters",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) @@ -68243,28 +68139,28 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68277,12 +68173,12 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getMapSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) @@ -68290,31 +68186,31 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTilesets'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTilesets"); if(!ok) { @@ -68326,12 +68222,12 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTilesets",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTilesets'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) @@ -68342,7 +68238,7 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -68373,12 +68269,12 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) @@ -68386,28 +68282,28 @@ int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68420,12 +68316,12 @@ int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getCurrentString",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) @@ -68433,31 +68329,31 @@ int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setLayerAttribs"); if(!ok) { @@ -68469,29 +68365,29 @@ int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setLayerAttribs",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -68508,7 +68404,7 @@ int lua_cocos2dx_TMXMapInfo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_create'.",&tolua_err); #endif return 0; @@ -68517,17 +68413,17 @@ int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -68546,7 +68442,7 @@ int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_createWithXML'.",&tolua_err); #endif return 0; @@ -68556,15 +68452,15 @@ int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68580,11 +68476,11 @@ int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:TMXMapInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_constructor'.",&tolua_err); #endif - + return 0; } @@ -68598,43 +68494,43 @@ int lua_register_cocos2dx_TMXMapInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXMapInfo"); tolua_cclass(tolua_S,"TMXMapInfo","cc.TMXMapInfo","",nullptr); - + tolua_beginmodule(tolua_S,"TMXMapInfo"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXMapInfo_constructor); - tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXMapInfo_setObjectGroups); - tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXMapInfo_setTileSize); - tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXMapInfo_initWithTMXFile); - tolua_function(tolua_S,"getOrientation",lua_cocos2dx_TMXMapInfo_getOrientation); - tolua_function(tolua_S,"isStoringCharacters",lua_cocos2dx_TMXMapInfo_isStoringCharacters); - tolua_function(tolua_S,"setLayers",lua_cocos2dx_TMXMapInfo_setLayers); - tolua_function(tolua_S,"parseXMLFile",lua_cocos2dx_TMXMapInfo_parseXMLFile); - tolua_function(tolua_S,"getParentElement",lua_cocos2dx_TMXMapInfo_getParentElement); - tolua_function(tolua_S,"setTMXFileName",lua_cocos2dx_TMXMapInfo_setTMXFileName); - tolua_function(tolua_S,"parseXMLString",lua_cocos2dx_TMXMapInfo_parseXMLString); - tolua_function(tolua_S,"getLayers",lua_cocos2dx_TMXMapInfo_getLayers); - tolua_function(tolua_S,"getTilesets",lua_cocos2dx_TMXMapInfo_getTilesets); - tolua_function(tolua_S,"getParentGID",lua_cocos2dx_TMXMapInfo_getParentGID); - tolua_function(tolua_S,"setParentElement",lua_cocos2dx_TMXMapInfo_setParentElement); - tolua_function(tolua_S,"initWithXML",lua_cocos2dx_TMXMapInfo_initWithXML); - tolua_function(tolua_S,"setParentGID",lua_cocos2dx_TMXMapInfo_setParentGID); - tolua_function(tolua_S,"getLayerAttribs",lua_cocos2dx_TMXMapInfo_getLayerAttribs); - tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXMapInfo_getTileSize); - tolua_function(tolua_S,"getTileProperties",lua_cocos2dx_TMXMapInfo_getTileProperties); - tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXMapInfo_getObjectGroups); - tolua_function(tolua_S,"getTMXFileName",lua_cocos2dx_TMXMapInfo_getTMXFileName); - tolua_function(tolua_S,"setCurrentString",lua_cocos2dx_TMXMapInfo_setCurrentString); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXMapInfo_setProperties); - tolua_function(tolua_S,"setOrientation",lua_cocos2dx_TMXMapInfo_setOrientation); - tolua_function(tolua_S,"setTileProperties",lua_cocos2dx_TMXMapInfo_setTileProperties); - tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXMapInfo_setMapSize); - tolua_function(tolua_S,"setStoringCharacters",lua_cocos2dx_TMXMapInfo_setStoringCharacters); - tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXMapInfo_getMapSize); - tolua_function(tolua_S,"setTilesets",lua_cocos2dx_TMXMapInfo_setTilesets); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXMapInfo_getProperties); - tolua_function(tolua_S,"getCurrentString",lua_cocos2dx_TMXMapInfo_getCurrentString); - tolua_function(tolua_S,"setLayerAttribs",lua_cocos2dx_TMXMapInfo_setLayerAttribs); - tolua_function(tolua_S,"create", lua_cocos2dx_TMXMapInfo_create); - tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXMapInfo_createWithXML); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXMapInfo_constructor); + tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXMapInfo_setObjectGroups); + tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXMapInfo_setTileSize); + tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXMapInfo_initWithTMXFile); + tolua_function(tolua_S,"getOrientation",lua_cocos2dx_TMXMapInfo_getOrientation); + tolua_function(tolua_S,"isStoringCharacters",lua_cocos2dx_TMXMapInfo_isStoringCharacters); + tolua_function(tolua_S,"setLayers",lua_cocos2dx_TMXMapInfo_setLayers); + tolua_function(tolua_S,"parseXMLFile",lua_cocos2dx_TMXMapInfo_parseXMLFile); + tolua_function(tolua_S,"getParentElement",lua_cocos2dx_TMXMapInfo_getParentElement); + tolua_function(tolua_S,"setTMXFileName",lua_cocos2dx_TMXMapInfo_setTMXFileName); + tolua_function(tolua_S,"parseXMLString",lua_cocos2dx_TMXMapInfo_parseXMLString); + tolua_function(tolua_S,"getLayers",lua_cocos2dx_TMXMapInfo_getLayers); + tolua_function(tolua_S,"getTilesets",lua_cocos2dx_TMXMapInfo_getTilesets); + tolua_function(tolua_S,"getParentGID",lua_cocos2dx_TMXMapInfo_getParentGID); + tolua_function(tolua_S,"setParentElement",lua_cocos2dx_TMXMapInfo_setParentElement); + tolua_function(tolua_S,"initWithXML",lua_cocos2dx_TMXMapInfo_initWithXML); + tolua_function(tolua_S,"setParentGID",lua_cocos2dx_TMXMapInfo_setParentGID); + tolua_function(tolua_S,"getLayerAttribs",lua_cocos2dx_TMXMapInfo_getLayerAttribs); + tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXMapInfo_getTileSize); + tolua_function(tolua_S,"getTileProperties",lua_cocos2dx_TMXMapInfo_getTileProperties); + tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXMapInfo_getObjectGroups); + tolua_function(tolua_S,"getTMXFileName",lua_cocos2dx_TMXMapInfo_getTMXFileName); + tolua_function(tolua_S,"setCurrentString",lua_cocos2dx_TMXMapInfo_setCurrentString); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXMapInfo_setProperties); + tolua_function(tolua_S,"setOrientation",lua_cocos2dx_TMXMapInfo_setOrientation); + tolua_function(tolua_S,"setTileProperties",lua_cocos2dx_TMXMapInfo_setTileProperties); + tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXMapInfo_setMapSize); + tolua_function(tolua_S,"setStoringCharacters",lua_cocos2dx_TMXMapInfo_setStoringCharacters); + tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXMapInfo_getMapSize); + tolua_function(tolua_S,"setTilesets",lua_cocos2dx_TMXMapInfo_setTilesets); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXMapInfo_getProperties); + tolua_function(tolua_S,"getCurrentString",lua_cocos2dx_TMXMapInfo_getCurrentString); + tolua_function(tolua_S,"setLayerAttribs",lua_cocos2dx_TMXMapInfo_setLayerAttribs); + tolua_function(tolua_S,"create", lua_cocos2dx_TMXMapInfo_create); + tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXMapInfo_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXMapInfo).name(); g_luaType[typeName] = "cc.TMXMapInfo"; @@ -68647,31 +68543,31 @@ int lua_cocos2dx_TMXLayer_getPositionAt(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getPositionAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getPositionAt"); if(!ok) { @@ -68684,12 +68580,12 @@ int lua_cocos2dx_TMXLayer_getPositionAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getPositionAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getPositionAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) @@ -68697,31 +68593,31 @@ int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXLayer:setLayerOrientation"); if(!ok) { @@ -68733,12 +68629,12 @@ int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerOrientation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) @@ -68746,28 +68642,28 @@ int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_releaseMap'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68779,12 +68675,12 @@ int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:releaseMap",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_releaseMap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) @@ -68792,28 +68688,28 @@ int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68826,12 +68722,12 @@ int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) @@ -68839,31 +68735,31 @@ int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setMapTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXLayer:setMapTileSize"); if(!ok) { @@ -68875,12 +68771,12 @@ int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setMapTileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setMapTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) @@ -68888,28 +68784,28 @@ int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68922,12 +68818,12 @@ int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerOrientation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) @@ -68935,31 +68831,31 @@ int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayer:setProperties"); if(!ok) { @@ -68971,12 +68867,12 @@ int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) @@ -68984,31 +68880,31 @@ int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXLayer:setLayerName"); if(!ok) { @@ -69020,12 +68916,12 @@ int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) @@ -69033,31 +68929,31 @@ int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_removeTileAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:removeTileAt"); if(!ok) { @@ -69069,12 +68965,12 @@ int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:removeTileAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_removeTileAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) @@ -69082,37 +68978,37 @@ int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; cocos2d::TMXLayerInfo* arg1; cocos2d::TMXMapInfo* arg2; - + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "cc.TMXLayerInfo",&arg1); - + ok &= luaval_to_object(tolua_S, 4, "cc.TMXMapInfo",&arg2); if(!ok) { @@ -69125,12 +69021,12 @@ int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:initWithTilesetInfo",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) @@ -69138,28 +69034,28 @@ int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setupTiles'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69171,12 +69067,12 @@ int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setupTiles",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setupTiles'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) @@ -69187,7 +69083,7 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif @@ -69204,15 +69100,15 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) if (argc == 3) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cocos2d::TMXTileFlags_ arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cobj->setTileGID(arg0, arg1, arg2); return 0; @@ -69223,11 +69119,11 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cobj->setTileGID(arg0, arg1); return 0; @@ -69236,12 +69132,12 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setTileGID",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTileGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) @@ -69249,28 +69145,28 @@ int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getMapTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69283,12 +69179,12 @@ int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getMapTileSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getMapTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) @@ -69296,31 +69192,31 @@ int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getProperty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXLayer:getProperty"); if(!ok) { @@ -69333,12 +69229,12 @@ int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getProperty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getProperty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) @@ -69346,31 +69242,31 @@ int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXLayer:setLayerSize"); if(!ok) { @@ -69382,12 +69278,12 @@ int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) @@ -69395,28 +69291,28 @@ int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69429,12 +69325,12 @@ int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) @@ -69442,31 +69338,31 @@ int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setTileSet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TMXTilesetInfo* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0); if(!ok) { @@ -69478,12 +69374,12 @@ int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setTileSet",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTileSet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) @@ -69491,28 +69387,28 @@ int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileSet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69525,12 +69421,12 @@ int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getTileSet",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileSet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) @@ -69541,7 +69437,7 @@ int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif @@ -69572,12 +69468,12 @@ int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) @@ -69585,31 +69481,31 @@ int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getTileAt"); if(!ok) { @@ -69622,29 +69518,29 @@ int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getTileAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; @@ -69665,7 +69561,7 @@ int lua_cocos2dx_TMXLayer_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXLayer:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_create'.",&tolua_err); #endif return 0; @@ -69675,15 +69571,15 @@ int lua_cocos2dx_TMXLayer_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69699,11 +69595,11 @@ int lua_cocos2dx_TMXLayer_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:TMXLayer",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_constructor'.",&tolua_err); #endif - + return 0; } @@ -69717,30 +69613,30 @@ int lua_register_cocos2dx_TMXLayer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayer"); tolua_cclass(tolua_S,"TMXLayer","cc.TMXLayer","cc.SpriteBatchNode",nullptr); - + tolua_beginmodule(tolua_S,"TMXLayer"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); - tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_TMXLayer_getPositionAt); - tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_TMXLayer_setLayerOrientation); - tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TMXLayer_releaseMap); - tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_TMXLayer_getLayerSize); - tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_TMXLayer_setMapTileSize); - tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_TMXLayer_getLayerOrientation); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayer_setProperties); - tolua_function(tolua_S,"setLayerName",lua_cocos2dx_TMXLayer_setLayerName); - tolua_function(tolua_S,"removeTileAt",lua_cocos2dx_TMXLayer_removeTileAt); - tolua_function(tolua_S,"initWithTilesetInfo",lua_cocos2dx_TMXLayer_initWithTilesetInfo); - tolua_function(tolua_S,"setupTiles",lua_cocos2dx_TMXLayer_setupTiles); - tolua_function(tolua_S,"setTileGID",lua_cocos2dx_TMXLayer_setTileGID); - tolua_function(tolua_S,"getMapTileSize",lua_cocos2dx_TMXLayer_getMapTileSize); - tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXLayer_getProperty); - tolua_function(tolua_S,"setLayerSize",lua_cocos2dx_TMXLayer_setLayerSize); - tolua_function(tolua_S,"getLayerName",lua_cocos2dx_TMXLayer_getLayerName); - tolua_function(tolua_S,"setTileSet",lua_cocos2dx_TMXLayer_setTileSet); - tolua_function(tolua_S,"getTileSet",lua_cocos2dx_TMXLayer_getTileSet); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayer_getProperties); - tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TMXLayer_getTileAt); - tolua_function(tolua_S,"create", lua_cocos2dx_TMXLayer_create); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); + tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_TMXLayer_getPositionAt); + tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_TMXLayer_setLayerOrientation); + tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TMXLayer_releaseMap); + tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_TMXLayer_getLayerSize); + tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_TMXLayer_setMapTileSize); + tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_TMXLayer_getLayerOrientation); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayer_setProperties); + tolua_function(tolua_S,"setLayerName",lua_cocos2dx_TMXLayer_setLayerName); + tolua_function(tolua_S,"removeTileAt",lua_cocos2dx_TMXLayer_removeTileAt); + tolua_function(tolua_S,"initWithTilesetInfo",lua_cocos2dx_TMXLayer_initWithTilesetInfo); + tolua_function(tolua_S,"setupTiles",lua_cocos2dx_TMXLayer_setupTiles); + tolua_function(tolua_S,"setTileGID",lua_cocos2dx_TMXLayer_setTileGID); + tolua_function(tolua_S,"getMapTileSize",lua_cocos2dx_TMXLayer_getMapTileSize); + tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXLayer_getProperty); + tolua_function(tolua_S,"setLayerSize",lua_cocos2dx_TMXLayer_setLayerSize); + tolua_function(tolua_S,"getLayerName",lua_cocos2dx_TMXLayer_getLayerName); + tolua_function(tolua_S,"setTileSet",lua_cocos2dx_TMXLayer_setTileSet); + tolua_function(tolua_S,"getTileSet",lua_cocos2dx_TMXLayer_getTileSet); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayer_getProperties); + tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TMXLayer_getTileAt); + tolua_function(tolua_S,"create", lua_cocos2dx_TMXLayer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXLayer).name(); g_luaType[typeName] = "cc.TMXLayer"; @@ -69753,31 +69649,31 @@ int lua_cocos2dx_TMXTiledMap_setObjectGroups(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXTiledMap:setObjectGroups"); if(!ok) { @@ -69789,12 +69685,12 @@ int lua_cocos2dx_TMXTiledMap_setObjectGroups(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setObjectGroups",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) @@ -69802,31 +69698,31 @@ int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getProperty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getProperty"); if(!ok) { @@ -69839,12 +69735,12 @@ int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getProperty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getProperty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) @@ -69852,31 +69748,31 @@ int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXTiledMap:setMapSize"); if(!ok) { @@ -69888,12 +69784,12 @@ int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setMapSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) @@ -69901,31 +69797,31 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getObjectGroup"); if(!ok) { @@ -69938,12 +69834,12 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getObjectGroup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) @@ -69954,7 +69850,7 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif @@ -69985,12 +69881,12 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getObjectGroups",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) @@ -69998,28 +69894,28 @@ int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -70032,12 +69928,12 @@ int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getTileSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) @@ -70045,28 +69941,28 @@ int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -70079,12 +69975,12 @@ int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getMapSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) @@ -70092,28 +69988,28 @@ int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -70126,12 +70022,12 @@ int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) @@ -70139,31 +70035,31 @@ int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXTiledMap:setTileSize"); if(!ok) { @@ -70175,12 +70071,12 @@ int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setTileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) @@ -70188,31 +70084,31 @@ int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXTiledMap:setProperties"); if(!ok) { @@ -70224,12 +70120,12 @@ int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) @@ -70237,31 +70133,31 @@ int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getLayer'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getLayer"); if(!ok) { @@ -70274,12 +70170,12 @@ int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getLayer",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getLayer'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) @@ -70287,28 +70183,28 @@ int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -70321,12 +70217,12 @@ int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getMapOrientation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) @@ -70334,31 +70230,31 @@ int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXTiledMap:setMapOrientation"); if(!ok) { @@ -70370,29 +70266,29 @@ int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setMapOrientation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -70409,7 +70305,7 @@ int lua_cocos2dx_TMXTiledMap_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTiledMap:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_create'.",&tolua_err); #endif return 0; @@ -70418,17 +70314,17 @@ int lua_cocos2dx_TMXTiledMap_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -70447,7 +70343,7 @@ int lua_cocos2dx_TMXTiledMap_createWithXML(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTiledMap:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_createWithXML'.",&tolua_err); #endif return 0; @@ -70462,23 +70358,23 @@ int lua_register_cocos2dx_TMXTiledMap(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTiledMap"); tolua_cclass(tolua_S,"TMXTiledMap","cc.TMXTiledMap","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"TMXTiledMap"); - tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXTiledMap_setObjectGroups); - tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXTiledMap_getProperty); - tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXTiledMap_setMapSize); - tolua_function(tolua_S,"getObjectGroup",lua_cocos2dx_TMXTiledMap_getObjectGroup); - tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXTiledMap_getObjectGroups); - tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXTiledMap_getTileSize); - tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXTiledMap_getMapSize); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXTiledMap_getProperties); - tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXTiledMap_setTileSize); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXTiledMap_setProperties); - tolua_function(tolua_S,"getLayer",lua_cocos2dx_TMXTiledMap_getLayer); - tolua_function(tolua_S,"getMapOrientation",lua_cocos2dx_TMXTiledMap_getMapOrientation); - tolua_function(tolua_S,"setMapOrientation",lua_cocos2dx_TMXTiledMap_setMapOrientation); - tolua_function(tolua_S,"create", lua_cocos2dx_TMXTiledMap_create); - tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXTiledMap_createWithXML); + tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXTiledMap_setObjectGroups); + tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXTiledMap_getProperty); + tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXTiledMap_setMapSize); + tolua_function(tolua_S,"getObjectGroup",lua_cocos2dx_TMXTiledMap_getObjectGroup); + tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXTiledMap_getObjectGroups); + tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXTiledMap_getTileSize); + tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXTiledMap_getMapSize); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXTiledMap_getProperties); + tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXTiledMap_setTileSize); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXTiledMap_setProperties); + tolua_function(tolua_S,"getLayer",lua_cocos2dx_TMXTiledMap_getLayer); + tolua_function(tolua_S,"getMapOrientation",lua_cocos2dx_TMXTiledMap_getMapOrientation); + tolua_function(tolua_S,"setMapOrientation",lua_cocos2dx_TMXTiledMap_setMapOrientation); + tolua_function(tolua_S,"create", lua_cocos2dx_TMXTiledMap_create); + tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXTiledMap_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXTiledMap).name(); g_luaType[typeName] = "cc.TMXTiledMap"; @@ -70491,18 +70387,18 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70510,7 +70406,7 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 4) { @@ -70518,13 +70414,13 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) std::string arg1; int arg2; int arg3; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TileMapAtlas:initWithTileFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TileMapAtlas:initWithTileFile"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TileMapAtlas:initWithTileFile"); - + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.TileMapAtlas:initWithTileFile"); if(!ok) { @@ -70537,12 +70433,12 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:initWithTileFile",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_initWithTileFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) @@ -70550,18 +70446,18 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70569,7 +70465,7 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70583,12 +70479,12 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:releaseMap",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_releaseMap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) @@ -70596,18 +70492,18 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70615,12 +70511,12 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TileMapAtlas:getTileAt"); if(!ok) { @@ -70633,12 +70529,12 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:getTileAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_getTileAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) @@ -70646,18 +70542,18 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70665,15 +70561,15 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Color3B arg0; cocos2d::Vec2 arg1; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.TileMapAtlas:setTile"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TileMapAtlas:setTile"); if(!ok) { @@ -70685,29 +70581,29 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:setTile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_setTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { std::string arg0; @@ -70730,7 +70626,7 @@ int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TileMapAtlas:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_create'.",&tolua_err); #endif return 0; @@ -70740,13 +70636,13 @@ int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70764,11 +70660,11 @@ int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:TileMapAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_constructor'.",&tolua_err); #endif - + return 0; } @@ -70782,14 +70678,14 @@ int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TileMapAtlas"); tolua_cclass(tolua_S,"TileMapAtlas","cc.TileMapAtlas","cc.AtlasNode",nullptr); - + tolua_beginmodule(tolua_S,"TileMapAtlas"); - tolua_function(tolua_S,"new",lua_cocos2dx_TileMapAtlas_constructor); - tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_TileMapAtlas_initWithTileFile); - tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap); - tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt); - tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); - tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); + tolua_function(tolua_S,"new",lua_cocos2dx_TileMapAtlas_constructor); + tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_TileMapAtlas_initWithTileFile); + tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap); + tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt); + tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); + tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TileMapAtlas).name(); g_luaType[typeName] = "cc.TileMapAtlas"; @@ -70802,18 +70698,18 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70821,12 +70717,12 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Component:setEnabled"); if(!ok) { @@ -70838,12 +70734,12 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_setName(lua_State* tolua_S) @@ -70851,18 +70747,18 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70870,12 +70766,12 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Component:setName"); if(!ok) { @@ -70887,12 +70783,12 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) @@ -70900,18 +70796,18 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70919,7 +70815,7 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70934,12 +70830,12 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_update(lua_State* tolua_S) @@ -70947,18 +70843,18 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70966,12 +70862,12 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Component:update"); if(!ok) { @@ -70983,12 +70879,12 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) @@ -70996,18 +70892,18 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71015,7 +70911,7 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -71030,12 +70926,12 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getOwner",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_getOwner'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_init(lua_State* tolua_S) @@ -71043,18 +70939,18 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71062,7 +70958,7 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -71077,12 +70973,12 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) @@ -71090,18 +70986,18 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71109,12 +71005,12 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -71126,12 +71022,12 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setOwner",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setOwner'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_getName(lua_State* tolua_S) @@ -71139,18 +71035,18 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71158,7 +71054,7 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -71173,29 +71069,29 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_getName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -71210,7 +71106,7 @@ int lua_cocos2dx_Component_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Component:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: +tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_create'.",&tolua_err); #endif return 0; @@ -71225,17 +71121,17 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Component"); tolua_cclass(tolua_S,"Component","cc.Component","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Component"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Component_setEnabled); - tolua_function(tolua_S,"setName",lua_cocos2dx_Component_setName); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Component_isEnabled); - tolua_function(tolua_S,"update",lua_cocos2dx_Component_update); - tolua_function(tolua_S,"getOwner",lua_cocos2dx_Component_getOwner); - tolua_function(tolua_S,"init",lua_cocos2dx_Component_init); - tolua_function(tolua_S,"setOwner",lua_cocos2dx_Component_setOwner); - tolua_function(tolua_S,"getName",lua_cocos2dx_Component_getName); - tolua_function(tolua_S,"create", lua_cocos2dx_Component_create); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Component_setEnabled); + tolua_function(tolua_S,"setName",lua_cocos2dx_Component_setName); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Component_isEnabled); + tolua_function(tolua_S,"update",lua_cocos2dx_Component_update); + tolua_function(tolua_S,"getOwner",lua_cocos2dx_Component_getOwner); + tolua_function(tolua_S,"init",lua_cocos2dx_Component_init); + tolua_function(tolua_S,"setOwner",lua_cocos2dx_Component_setOwner); + tolua_function(tolua_S,"getName",lua_cocos2dx_Component_getName); + tolua_function(tolua_S,"create", lua_cocos2dx_Component_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Component).name(); g_luaType[typeName] = "cc.Component"; @@ -71244,262 +71140,261 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S) } TOLUA_API int register_all_cocos2dx(lua_State* tolua_S) { - tolua_open(tolua_S); - - tolua_module(tolua_S,"cc",0); - tolua_beginmodule(tolua_S,"cc"); - - lua_register_cocos2dx_Ref(tolua_S); - lua_register_cocos2dx_Console(tolua_S); - lua_register_cocos2dx_Node(tolua_S); - lua_register_cocos2dx_Scene(tolua_S); - lua_register_cocos2dx_TransitionScene(tolua_S); - lua_register_cocos2dx_TransitionEaseScene(tolua_S); - lua_register_cocos2dx_TransitionMoveInL(tolua_S); - lua_register_cocos2dx_TransitionMoveInB(tolua_S); - lua_register_cocos2dx_AtlasNode(tolua_S); - lua_register_cocos2dx_TileMapAtlas(tolua_S); - lua_register_cocos2dx_TransitionMoveInT(tolua_S); - lua_register_cocos2dx_TMXTilesetInfo(tolua_S); - lua_register_cocos2dx_TransitionMoveInR(tolua_S); - lua_register_cocos2dx_Action(tolua_S); - lua_register_cocos2dx_FiniteTimeAction(tolua_S); - lua_register_cocos2dx_ActionInstant(tolua_S); - lua_register_cocos2dx_Hide(tolua_S); - lua_register_cocos2dx_ParticleSystem(tolua_S); - lua_register_cocos2dx_ParticleSystemQuad(tolua_S); - lua_register_cocos2dx_ParticleSpiral(tolua_S); - lua_register_cocos2dx_GridBase(tolua_S); - lua_register_cocos2dx_AnimationCache(tolua_S); - lua_register_cocos2dx_ActionInterval(tolua_S); - lua_register_cocos2dx_ActionCamera(tolua_S); - lua_register_cocos2dx_ProgressFromTo(tolua_S); - lua_register_cocos2dx_MoveBy(tolua_S); - lua_register_cocos2dx_MoveTo(tolua_S); - lua_register_cocos2dx_JumpBy(tolua_S); - lua_register_cocos2dx_EventListener(tolua_S); - lua_register_cocos2dx_EventListenerKeyboard(tolua_S); - lua_register_cocos2dx_EventListenerMouse(tolua_S); - lua_register_cocos2dx_TransitionRotoZoom(tolua_S); - lua_register_cocos2dx_Director(tolua_S); - lua_register_cocos2dx_Scheduler(tolua_S); - lua_register_cocos2dx_ActionEase(tolua_S); - lua_register_cocos2dx_EaseElastic(tolua_S); - lua_register_cocos2dx_EaseElasticOut(tolua_S); - lua_register_cocos2dx_EaseQuadraticActionInOut(tolua_S); - lua_register_cocos2dx_EaseBackOut(tolua_S); - lua_register_cocos2dx_Texture2D(tolua_S); - lua_register_cocos2dx_TransitionSceneOriented(tolua_S); - lua_register_cocos2dx_TransitionFlipX(tolua_S); - lua_register_cocos2dx_GridAction(tolua_S); - lua_register_cocos2dx_TiledGrid3DAction(tolua_S); - lua_register_cocos2dx_FadeOutTRTiles(tolua_S); - lua_register_cocos2dx_FadeOutUpTiles(tolua_S); - lua_register_cocos2dx_FadeOutDownTiles(tolua_S); - lua_register_cocos2dx_StopGrid(tolua_S); - lua_register_cocos2dx_ParticleBatchNode(tolua_S); - lua_register_cocos2dx_SkewTo(tolua_S); - lua_register_cocos2dx_SkewBy(tolua_S); - lua_register_cocos2dx_EaseQuadraticActionOut(tolua_S); - lua_register_cocos2dx_TransitionProgress(tolua_S); - lua_register_cocos2dx_TransitionProgressVertical(tolua_S); - lua_register_cocos2dx_Layer(tolua_S); - lua_register_cocos2dx_TMXTiledMap(tolua_S); - lua_register_cocos2dx_Grid3DAction(tolua_S); - lua_register_cocos2dx_BaseLight(tolua_S); - lua_register_cocos2dx_SpotLight(tolua_S); - lua_register_cocos2dx_FadeTo(tolua_S); - lua_register_cocos2dx_FadeIn(tolua_S); - lua_register_cocos2dx_DirectionLight(tolua_S); - lua_register_cocos2dx_GLProgramState(tolua_S); - lua_register_cocos2dx_EventListenerCustom(tolua_S); - lua_register_cocos2dx_FlipX3D(tolua_S); - lua_register_cocos2dx_FlipY3D(tolua_S); - lua_register_cocos2dx_EaseSineInOut(tolua_S); - lua_register_cocos2dx_TransitionFlipAngular(tolua_S); - lua_register_cocos2dx_EaseElasticInOut(tolua_S); - lua_register_cocos2dx_EaseBounce(tolua_S); - lua_register_cocos2dx_Show(tolua_S); - lua_register_cocos2dx_FadeOut(tolua_S); - lua_register_cocos2dx_CallFunc(tolua_S); - lua_register_cocos2dx_Event(tolua_S); - lua_register_cocos2dx_EventMouse(tolua_S); - lua_register_cocos2dx_GLView(tolua_S); - lua_register_cocos2dx_EaseBezierAction(tolua_S); - lua_register_cocos2dx_ParticleFireworks(tolua_S); - lua_register_cocos2dx_MenuItem(tolua_S); - lua_register_cocos2dx_MenuItemSprite(tolua_S); - lua_register_cocos2dx_MenuItemImage(tolua_S); - lua_register_cocos2dx_ParticleFire(tolua_S); - lua_register_cocos2dx_TransitionZoomFlipAngular(tolua_S); - lua_register_cocos2dx_EaseRateAction(tolua_S); - lua_register_cocos2dx_EaseIn(tolua_S); - lua_register_cocos2dx_EaseExponentialInOut(tolua_S); - lua_register_cocos2dx_EaseBackInOut(tolua_S); - lua_register_cocos2dx_Waves3D(tolua_S); - lua_register_cocos2dx_EaseExponentialOut(tolua_S); - lua_register_cocos2dx_SpriteBatchNode(tolua_S); - lua_register_cocos2dx_Label(tolua_S); - lua_register_cocos2dx_Application(tolua_S); - lua_register_cocos2dx_DelayTime(tolua_S); - lua_register_cocos2dx_LabelAtlas(tolua_S); - lua_register_cocos2dx_ParticleSnow(tolua_S); - lua_register_cocos2dx_EaseElasticIn(tolua_S); - lua_register_cocos2dx_EaseCircleActionInOut(tolua_S); - lua_register_cocos2dx_EaseQuarticActionOut(tolua_S); - lua_register_cocos2dx_EventAcceleration(tolua_S); - lua_register_cocos2dx_EaseCubicActionIn(tolua_S); - lua_register_cocos2dx_TextureCache(tolua_S); - lua_register_cocos2dx_ActionTween(tolua_S); - lua_register_cocos2dx_TransitionFadeTR(tolua_S); - lua_register_cocos2dx_TransitionFadeDown(tolua_S); - lua_register_cocos2dx_ParticleSun(tolua_S); - lua_register_cocos2dx_TransitionProgressHorizontal(tolua_S); - lua_register_cocos2dx_TMXObjectGroup(tolua_S); - lua_register_cocos2dx_TMXLayer(tolua_S); - lua_register_cocos2dx_FlipX(tolua_S); - lua_register_cocos2dx_FlipY(tolua_S); - lua_register_cocos2dx_EventKeyboard(tolua_S); - lua_register_cocos2dx_TransitionSplitCols(tolua_S); - lua_register_cocos2dx_Timer(tolua_S); - lua_register_cocos2dx_RepeatForever(tolua_S); - lua_register_cocos2dx_Place(tolua_S); - lua_register_cocos2dx_EventListenerAcceleration(tolua_S); - lua_register_cocos2dx_TiledGrid3D(tolua_S); - lua_register_cocos2dx_EaseBounceOut(tolua_S); - lua_register_cocos2dx_RenderTexture(tolua_S); - lua_register_cocos2dx_TintBy(tolua_S); - lua_register_cocos2dx_TransitionShrinkGrow(tolua_S); - lua_register_cocos2dx_ClippingNode(tolua_S); - lua_register_cocos2dx_ParticleFlower(tolua_S); - lua_register_cocos2dx_EaseCircleActionIn(tolua_S); - lua_register_cocos2dx_ParticleSmoke(tolua_S); - lua_register_cocos2dx_Image(tolua_S); - lua_register_cocos2dx_LayerMultiplex(tolua_S); - lua_register_cocos2dx_Blink(tolua_S); - lua_register_cocos2dx_JumpTo(tolua_S); - lua_register_cocos2dx_ParticleExplosion(tolua_S); - lua_register_cocos2dx_TransitionJumpZoom(tolua_S); - lua_register_cocos2dx_Touch(tolua_S); - lua_register_cocos2dx_AnimationFrame(tolua_S); - lua_register_cocos2dx_NodeGrid(tolua_S); - lua_register_cocos2dx_TMXLayerInfo(tolua_S); - lua_register_cocos2dx_EaseSineIn(tolua_S); - lua_register_cocos2dx_EaseBounceIn(tolua_S); - lua_register_cocos2dx_Camera(tolua_S); - lua_register_cocos2dx_GLProgram(tolua_S); - lua_register_cocos2dx_ParticleGalaxy(tolua_S); - lua_register_cocos2dx_Twirl(tolua_S); - lua_register_cocos2dx_MenuItemLabel(tolua_S); - lua_register_cocos2dx_EaseQuinticActionIn(tolua_S); - lua_register_cocos2dx_LayerColor(tolua_S); - lua_register_cocos2dx_FadeOutBLTiles(tolua_S); - lua_register_cocos2dx_LayerGradient(tolua_S); - lua_register_cocos2dx_EventListenerTouchAllAtOnce(tolua_S); - lua_register_cocos2dx_GLViewImpl(tolua_S); - lua_register_cocos2dx_ToggleVisibility(tolua_S); - lua_register_cocos2dx_Repeat(tolua_S); - lua_register_cocos2dx_CardinalSplineTo(tolua_S); - lua_register_cocos2dx_CardinalSplineBy(tolua_S); - lua_register_cocos2dx_TransitionFlipY(tolua_S); - lua_register_cocos2dx_TurnOffTiles(tolua_S); - lua_register_cocos2dx_TintTo(tolua_S); - lua_register_cocos2dx_CatmullRomTo(tolua_S); - lua_register_cocos2dx_TransitionFadeBL(tolua_S); - lua_register_cocos2dx_TargetedAction(tolua_S); - lua_register_cocos2dx_DrawNode(tolua_S); - lua_register_cocos2dx_TransitionTurnOffTiles(tolua_S); - lua_register_cocos2dx_RotateTo(tolua_S); - lua_register_cocos2dx_TransitionSplitRows(tolua_S); - lua_register_cocos2dx_Device(tolua_S); - lua_register_cocos2dx_TransitionProgressRadialCCW(tolua_S); - lua_register_cocos2dx_EventListenerFocus(tolua_S); - lua_register_cocos2dx_TransitionPageTurn(tolua_S); - lua_register_cocos2dx_BezierBy(tolua_S); - lua_register_cocos2dx_BezierTo(tolua_S); - lua_register_cocos2dx_Menu(tolua_S); - lua_register_cocos2dx_SpriteFrame(tolua_S); - lua_register_cocos2dx_ActionManager(tolua_S); - lua_register_cocos2dx_UserDefault(tolua_S); - lua_register_cocos2dx_TransitionZoomFlipX(tolua_S); - lua_register_cocos2dx_EventFocus(tolua_S); - lua_register_cocos2dx_EaseQuinticActionInOut(tolua_S); - lua_register_cocos2dx_SpriteFrameCache(tolua_S); - lua_register_cocos2dx_PointLight(tolua_S); - lua_register_cocos2dx_TransitionCrossFade(tolua_S); - lua_register_cocos2dx_Ripple3D(tolua_S); - lua_register_cocos2dx_Lens3D(tolua_S); - lua_register_cocos2dx_ScaleTo(tolua_S); - lua_register_cocos2dx_Spawn(tolua_S); - lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S); - lua_register_cocos2dx_ShakyTiles3D(tolua_S); - lua_register_cocos2dx_PageTurn3D(tolua_S); - lua_register_cocos2dx_TransitionSlideInL(tolua_S); - lua_register_cocos2dx_TransitionSlideInT(tolua_S); - lua_register_cocos2dx_Grid3D(tolua_S); - lua_register_cocos2dx_EaseCircleActionOut(tolua_S); - lua_register_cocos2dx_TransitionProgressInOut(tolua_S); - lua_register_cocos2dx_EaseCubicActionInOut(tolua_S); - lua_register_cocos2dx_EaseBackIn(tolua_S); - lua_register_cocos2dx_SplitRows(tolua_S); - lua_register_cocos2dx_Follow(tolua_S); - lua_register_cocos2dx_Animate(tolua_S); - lua_register_cocos2dx_ShuffleTiles(tolua_S); - lua_register_cocos2dx_ProgressTimer(tolua_S); - lua_register_cocos2dx_ParticleMeteor(tolua_S); - lua_register_cocos2dx_EaseQuarticActionIn(tolua_S); - lua_register_cocos2dx_EaseInOut(tolua_S); - lua_register_cocos2dx_TransitionZoomFlipY(tolua_S); - lua_register_cocos2dx_ScaleBy(tolua_S); - lua_register_cocos2dx_EventTouch(tolua_S); - lua_register_cocos2dx_Animation(tolua_S); - lua_register_cocos2dx_TMXMapInfo(tolua_S); - lua_register_cocos2dx_EaseExponentialIn(tolua_S); - lua_register_cocos2dx_ReuseGrid(tolua_S); - lua_register_cocos2dx_EaseQuinticActionOut(tolua_S); - lua_register_cocos2dx_EventDispatcher(tolua_S); - lua_register_cocos2dx_MenuItemAtlasFont(tolua_S); - lua_register_cocos2dx_Liquid(tolua_S); - lua_register_cocos2dx_OrbitCamera(tolua_S); - lua_register_cocos2dx_ParallaxNode(tolua_S); - lua_register_cocos2dx_ClippingRectangleNode(tolua_S); - lua_register_cocos2dx_EventCustom(tolua_S); - lua_register_cocos2dx_TransitionFade(tolua_S); - lua_register_cocos2dx_Component(tolua_S); - lua_register_cocos2dx_EaseCubicActionOut(tolua_S); - lua_register_cocos2dx_EventListenerTouchOneByOne(tolua_S); - lua_register_cocos2dx_ParticleRain(tolua_S); - lua_register_cocos2dx_Waves(tolua_S); - lua_register_cocos2dx_EaseOut(tolua_S); - lua_register_cocos2dx_MenuItemFont(tolua_S); - lua_register_cocos2dx_TransitionFadeUp(tolua_S); - lua_register_cocos2dx_EaseSineOut(tolua_S); - lua_register_cocos2dx_JumpTiles3D(tolua_S); - lua_register_cocos2dx_MenuItemToggle(tolua_S); - lua_register_cocos2dx_RemoveSelf(tolua_S); - lua_register_cocos2dx_SplitCols(tolua_S); - lua_register_cocos2dx_ProtectedNode(tolua_S); - lua_register_cocos2dx_MotionStreak(tolua_S); - lua_register_cocos2dx_RotateBy(tolua_S); - lua_register_cocos2dx_FileUtils(tolua_S); - lua_register_cocos2dx_Sprite(tolua_S); - lua_register_cocos2dx_ProgressTo(tolua_S); - lua_register_cocos2dx_TransitionProgressOutIn(tolua_S); - lua_register_cocos2dx_CatmullRomBy(tolua_S); - lua_register_cocos2dx_Sequence(tolua_S); - lua_register_cocos2dx_Shaky3D(tolua_S); - lua_register_cocos2dx_TransitionProgressRadialCW(tolua_S); - lua_register_cocos2dx_EaseBounceInOut(tolua_S); - lua_register_cocos2dx_TransitionSlideInR(tolua_S); - lua_register_cocos2dx_AmbientLight(tolua_S); - lua_register_cocos2dx_GLProgramCache(tolua_S); - lua_register_cocos2dx_EaseQuadraticActionIn(tolua_S); - lua_register_cocos2dx_WavesTiles3D(tolua_S); - lua_register_cocos2dx_TransitionSlideInB(tolua_S); - lua_register_cocos2dx_Speed(tolua_S); - lua_register_cocos2dx_ShatteredTiles3D(tolua_S); - - tolua_endmodule(tolua_S); - return 1; + tolua_open(tolua_S); + + tolua_module(tolua_S,"cc",0); + tolua_beginmodule(tolua_S,"cc"); + + lua_register_cocos2dx_Ref(tolua_S); + lua_register_cocos2dx_Console(tolua_S); + lua_register_cocos2dx_Node(tolua_S); + lua_register_cocos2dx_Scene(tolua_S); + lua_register_cocos2dx_TransitionScene(tolua_S); + lua_register_cocos2dx_TransitionEaseScene(tolua_S); + lua_register_cocos2dx_TransitionMoveInL(tolua_S); + lua_register_cocos2dx_TransitionMoveInB(tolua_S); + lua_register_cocos2dx_AtlasNode(tolua_S); + lua_register_cocos2dx_TileMapAtlas(tolua_S); + lua_register_cocos2dx_TransitionMoveInT(tolua_S); + lua_register_cocos2dx_TMXTilesetInfo(tolua_S); + lua_register_cocos2dx_TransitionMoveInR(tolua_S); + lua_register_cocos2dx_Action(tolua_S); + lua_register_cocos2dx_FiniteTimeAction(tolua_S); + lua_register_cocos2dx_ActionInstant(tolua_S); + lua_register_cocos2dx_Hide(tolua_S); + lua_register_cocos2dx_ParticleSystem(tolua_S); + lua_register_cocos2dx_ParticleSystemQuad(tolua_S); + lua_register_cocos2dx_ParticleSpiral(tolua_S); + lua_register_cocos2dx_GridBase(tolua_S); + lua_register_cocos2dx_AnimationCache(tolua_S); + lua_register_cocos2dx_ActionInterval(tolua_S); + lua_register_cocos2dx_ActionCamera(tolua_S); + lua_register_cocos2dx_ProgressFromTo(tolua_S); + lua_register_cocos2dx_MoveBy(tolua_S); + lua_register_cocos2dx_MoveTo(tolua_S); + lua_register_cocos2dx_JumpBy(tolua_S); + lua_register_cocos2dx_EventListener(tolua_S); + lua_register_cocos2dx_EventListenerKeyboard(tolua_S); + lua_register_cocos2dx_EventListenerMouse(tolua_S); + lua_register_cocos2dx_TransitionRotoZoom(tolua_S); + lua_register_cocos2dx_Director(tolua_S); + lua_register_cocos2dx_Scheduler(tolua_S); + lua_register_cocos2dx_ActionEase(tolua_S); + lua_register_cocos2dx_EaseElastic(tolua_S); + lua_register_cocos2dx_EaseElasticOut(tolua_S); + lua_register_cocos2dx_EaseQuadraticActionInOut(tolua_S); + lua_register_cocos2dx_EaseBackOut(tolua_S); + lua_register_cocos2dx_Texture2D(tolua_S); + lua_register_cocos2dx_TransitionSceneOriented(tolua_S); + lua_register_cocos2dx_TransitionFlipX(tolua_S); + lua_register_cocos2dx_GridAction(tolua_S); + lua_register_cocos2dx_TiledGrid3DAction(tolua_S); + lua_register_cocos2dx_FadeOutTRTiles(tolua_S); + lua_register_cocos2dx_FadeOutUpTiles(tolua_S); + lua_register_cocos2dx_FadeOutDownTiles(tolua_S); + lua_register_cocos2dx_StopGrid(tolua_S); + lua_register_cocos2dx_ParticleBatchNode(tolua_S); + lua_register_cocos2dx_SkewTo(tolua_S); + lua_register_cocos2dx_SkewBy(tolua_S); + lua_register_cocos2dx_EaseQuadraticActionOut(tolua_S); + lua_register_cocos2dx_TransitionProgress(tolua_S); + lua_register_cocos2dx_TransitionProgressVertical(tolua_S); + lua_register_cocos2dx_Layer(tolua_S); + lua_register_cocos2dx_TMXTiledMap(tolua_S); + lua_register_cocos2dx_Grid3DAction(tolua_S); + lua_register_cocos2dx_BaseLight(tolua_S); + lua_register_cocos2dx_SpotLight(tolua_S); + lua_register_cocos2dx_FadeTo(tolua_S); + lua_register_cocos2dx_FadeIn(tolua_S); + lua_register_cocos2dx_DirectionLight(tolua_S); + lua_register_cocos2dx_GLProgramState(tolua_S); + lua_register_cocos2dx_EventListenerCustom(tolua_S); + lua_register_cocos2dx_FlipX3D(tolua_S); + lua_register_cocos2dx_FlipY3D(tolua_S); + lua_register_cocos2dx_EaseSineInOut(tolua_S); + lua_register_cocos2dx_TransitionFlipAngular(tolua_S); + lua_register_cocos2dx_EaseElasticInOut(tolua_S); + lua_register_cocos2dx_EaseBounce(tolua_S); + lua_register_cocos2dx_Show(tolua_S); + lua_register_cocos2dx_FadeOut(tolua_S); + lua_register_cocos2dx_CallFunc(tolua_S); + lua_register_cocos2dx_Event(tolua_S); + lua_register_cocos2dx_EventMouse(tolua_S); + lua_register_cocos2dx_GLView(tolua_S); + lua_register_cocos2dx_EaseBezierAction(tolua_S); + lua_register_cocos2dx_ParticleFireworks(tolua_S); + lua_register_cocos2dx_MenuItem(tolua_S); + lua_register_cocos2dx_MenuItemSprite(tolua_S); + lua_register_cocos2dx_MenuItemImage(tolua_S); + lua_register_cocos2dx_ParticleFire(tolua_S); + lua_register_cocos2dx_TransitionZoomFlipAngular(tolua_S); + lua_register_cocos2dx_EaseRateAction(tolua_S); + lua_register_cocos2dx_EaseIn(tolua_S); + lua_register_cocos2dx_EaseExponentialInOut(tolua_S); + lua_register_cocos2dx_EaseBackInOut(tolua_S); + lua_register_cocos2dx_Waves3D(tolua_S); + lua_register_cocos2dx_EaseExponentialOut(tolua_S); + lua_register_cocos2dx_SpriteBatchNode(tolua_S); + lua_register_cocos2dx_Label(tolua_S); + lua_register_cocos2dx_Application(tolua_S); + lua_register_cocos2dx_DelayTime(tolua_S); + lua_register_cocos2dx_LabelAtlas(tolua_S); + lua_register_cocos2dx_ParticleSnow(tolua_S); + lua_register_cocos2dx_EaseElasticIn(tolua_S); + lua_register_cocos2dx_EaseCircleActionInOut(tolua_S); + lua_register_cocos2dx_EaseQuarticActionOut(tolua_S); + lua_register_cocos2dx_EventAcceleration(tolua_S); + lua_register_cocos2dx_EaseCubicActionIn(tolua_S); + lua_register_cocos2dx_TextureCache(tolua_S); + lua_register_cocos2dx_ActionTween(tolua_S); + lua_register_cocos2dx_TransitionFadeTR(tolua_S); + lua_register_cocos2dx_TransitionFadeDown(tolua_S); + lua_register_cocos2dx_ParticleSun(tolua_S); + lua_register_cocos2dx_TransitionProgressHorizontal(tolua_S); + lua_register_cocos2dx_TMXObjectGroup(tolua_S); + lua_register_cocos2dx_TMXLayer(tolua_S); + lua_register_cocos2dx_FlipX(tolua_S); + lua_register_cocos2dx_FlipY(tolua_S); + lua_register_cocos2dx_EventKeyboard(tolua_S); + lua_register_cocos2dx_TransitionSplitCols(tolua_S); + lua_register_cocos2dx_Timer(tolua_S); + lua_register_cocos2dx_RepeatForever(tolua_S); + lua_register_cocos2dx_Place(tolua_S); + lua_register_cocos2dx_EventListenerAcceleration(tolua_S); + lua_register_cocos2dx_TiledGrid3D(tolua_S); + lua_register_cocos2dx_EaseBounceOut(tolua_S); + lua_register_cocos2dx_RenderTexture(tolua_S); + lua_register_cocos2dx_TintBy(tolua_S); + lua_register_cocos2dx_TransitionShrinkGrow(tolua_S); + lua_register_cocos2dx_ClippingNode(tolua_S); + lua_register_cocos2dx_ParticleFlower(tolua_S); + lua_register_cocos2dx_EaseCircleActionIn(tolua_S); + lua_register_cocos2dx_ParticleSmoke(tolua_S); + lua_register_cocos2dx_Image(tolua_S); + lua_register_cocos2dx_LayerMultiplex(tolua_S); + lua_register_cocos2dx_Blink(tolua_S); + lua_register_cocos2dx_JumpTo(tolua_S); + lua_register_cocos2dx_ParticleExplosion(tolua_S); + lua_register_cocos2dx_TransitionJumpZoom(tolua_S); + lua_register_cocos2dx_Touch(tolua_S); + lua_register_cocos2dx_AnimationFrame(tolua_S); + lua_register_cocos2dx_NodeGrid(tolua_S); + lua_register_cocos2dx_TMXLayerInfo(tolua_S); + lua_register_cocos2dx_EaseSineIn(tolua_S); + lua_register_cocos2dx_EaseBounceIn(tolua_S); + lua_register_cocos2dx_Camera(tolua_S); + lua_register_cocos2dx_GLProgram(tolua_S); + lua_register_cocos2dx_ParticleGalaxy(tolua_S); + lua_register_cocos2dx_Twirl(tolua_S); + lua_register_cocos2dx_MenuItemLabel(tolua_S); + lua_register_cocos2dx_EaseQuinticActionIn(tolua_S); + lua_register_cocos2dx_LayerColor(tolua_S); + lua_register_cocos2dx_FadeOutBLTiles(tolua_S); + lua_register_cocos2dx_LayerGradient(tolua_S); + lua_register_cocos2dx_EventListenerTouchAllAtOnce(tolua_S); + lua_register_cocos2dx_GLViewImpl(tolua_S); + lua_register_cocos2dx_ToggleVisibility(tolua_S); + lua_register_cocos2dx_Repeat(tolua_S); + lua_register_cocos2dx_CardinalSplineTo(tolua_S); + lua_register_cocos2dx_CardinalSplineBy(tolua_S); + lua_register_cocos2dx_TransitionFlipY(tolua_S); + lua_register_cocos2dx_TurnOffTiles(tolua_S); + lua_register_cocos2dx_TintTo(tolua_S); + lua_register_cocos2dx_CatmullRomTo(tolua_S); + lua_register_cocos2dx_TransitionFadeBL(tolua_S); + lua_register_cocos2dx_TargetedAction(tolua_S); + lua_register_cocos2dx_DrawNode(tolua_S); + lua_register_cocos2dx_TransitionTurnOffTiles(tolua_S); + lua_register_cocos2dx_RotateTo(tolua_S); + lua_register_cocos2dx_TransitionSplitRows(tolua_S); + lua_register_cocos2dx_Device(tolua_S); + lua_register_cocos2dx_TransitionProgressRadialCCW(tolua_S); + lua_register_cocos2dx_EventListenerFocus(tolua_S); + lua_register_cocos2dx_TransitionPageTurn(tolua_S); + lua_register_cocos2dx_BezierBy(tolua_S); + lua_register_cocos2dx_BezierTo(tolua_S); + lua_register_cocos2dx_Menu(tolua_S); + lua_register_cocos2dx_SpriteFrame(tolua_S); + lua_register_cocos2dx_ActionManager(tolua_S); + lua_register_cocos2dx_UserDefault(tolua_S); + lua_register_cocos2dx_TransitionZoomFlipX(tolua_S); + lua_register_cocos2dx_EventFocus(tolua_S); + lua_register_cocos2dx_EaseQuinticActionInOut(tolua_S); + lua_register_cocos2dx_SpriteFrameCache(tolua_S); + lua_register_cocos2dx_PointLight(tolua_S); + lua_register_cocos2dx_TransitionCrossFade(tolua_S); + lua_register_cocos2dx_Ripple3D(tolua_S); + lua_register_cocos2dx_Lens3D(tolua_S); + lua_register_cocos2dx_ScaleTo(tolua_S); + lua_register_cocos2dx_Spawn(tolua_S); + lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S); + lua_register_cocos2dx_ShakyTiles3D(tolua_S); + lua_register_cocos2dx_PageTurn3D(tolua_S); + lua_register_cocos2dx_TransitionSlideInL(tolua_S); + lua_register_cocos2dx_TransitionSlideInT(tolua_S); + lua_register_cocos2dx_Grid3D(tolua_S); + lua_register_cocos2dx_EaseCircleActionOut(tolua_S); + lua_register_cocos2dx_TransitionProgressInOut(tolua_S); + lua_register_cocos2dx_EaseCubicActionInOut(tolua_S); + lua_register_cocos2dx_EaseBackIn(tolua_S); + lua_register_cocos2dx_SplitRows(tolua_S); + lua_register_cocos2dx_Follow(tolua_S); + lua_register_cocos2dx_Animate(tolua_S); + lua_register_cocos2dx_ShuffleTiles(tolua_S); + lua_register_cocos2dx_ProgressTimer(tolua_S); + lua_register_cocos2dx_ParticleMeteor(tolua_S); + lua_register_cocos2dx_EaseQuarticActionIn(tolua_S); + lua_register_cocos2dx_EaseInOut(tolua_S); + lua_register_cocos2dx_TransitionZoomFlipY(tolua_S); + lua_register_cocos2dx_ScaleBy(tolua_S); + lua_register_cocos2dx_EventTouch(tolua_S); + lua_register_cocos2dx_Animation(tolua_S); + lua_register_cocos2dx_TMXMapInfo(tolua_S); + lua_register_cocos2dx_EaseExponentialIn(tolua_S); + lua_register_cocos2dx_ReuseGrid(tolua_S); + lua_register_cocos2dx_EaseQuinticActionOut(tolua_S); + lua_register_cocos2dx_EventDispatcher(tolua_S); + lua_register_cocos2dx_MenuItemAtlasFont(tolua_S); + lua_register_cocos2dx_Liquid(tolua_S); + lua_register_cocos2dx_OrbitCamera(tolua_S); + lua_register_cocos2dx_ParallaxNode(tolua_S); + lua_register_cocos2dx_ClippingRectangleNode(tolua_S); + lua_register_cocos2dx_EventCustom(tolua_S); + lua_register_cocos2dx_TransitionFade(tolua_S); + lua_register_cocos2dx_Component(tolua_S); + lua_register_cocos2dx_EaseCubicActionOut(tolua_S); + lua_register_cocos2dx_EventListenerTouchOneByOne(tolua_S); + lua_register_cocos2dx_ParticleRain(tolua_S); + lua_register_cocos2dx_Waves(tolua_S); + lua_register_cocos2dx_EaseOut(tolua_S); + lua_register_cocos2dx_MenuItemFont(tolua_S); + lua_register_cocos2dx_TransitionFadeUp(tolua_S); + lua_register_cocos2dx_EaseSineOut(tolua_S); + lua_register_cocos2dx_JumpTiles3D(tolua_S); + lua_register_cocos2dx_MenuItemToggle(tolua_S); + lua_register_cocos2dx_RemoveSelf(tolua_S); + lua_register_cocos2dx_SplitCols(tolua_S); + lua_register_cocos2dx_ProtectedNode(tolua_S); + lua_register_cocos2dx_MotionStreak(tolua_S); + lua_register_cocos2dx_RotateBy(tolua_S); + lua_register_cocos2dx_FileUtils(tolua_S); + lua_register_cocos2dx_Sprite(tolua_S); + lua_register_cocos2dx_ProgressTo(tolua_S); + lua_register_cocos2dx_TransitionProgressOutIn(tolua_S); + lua_register_cocos2dx_CatmullRomBy(tolua_S); + lua_register_cocos2dx_Sequence(tolua_S); + lua_register_cocos2dx_Shaky3D(tolua_S); + lua_register_cocos2dx_TransitionProgressRadialCW(tolua_S); + lua_register_cocos2dx_EaseBounceInOut(tolua_S); + lua_register_cocos2dx_TransitionSlideInR(tolua_S); + lua_register_cocos2dx_AmbientLight(tolua_S); + lua_register_cocos2dx_GLProgramCache(tolua_S); + lua_register_cocos2dx_EaseQuadraticActionIn(tolua_S); + lua_register_cocos2dx_WavesTiles3D(tolua_S); + lua_register_cocos2dx_TransitionSlideInB(tolua_S); + lua_register_cocos2dx_Speed(tolua_S); + lua_register_cocos2dx_ShatteredTiles3D(tolua_S); + + tolua_endmodule(tolua_S); + return 1; } - From 75d2deb2c896e85a8f13e0966c83b231d6120af8 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 25 Dec 2014 15:25:19 +0800 Subject: [PATCH 17/21] revert --- .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 31705 ++++++++-------- 1 file changed, 15853 insertions(+), 15852 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index a748f61dd7..57d1ad2560 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -11,28 +11,28 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_release'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44,12 +44,12 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:release",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_release'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ref_retain(lua_State* tolua_S) @@ -57,28 +57,28 @@ int lua_cocos2dx_Ref_retain(lua_State* tolua_S) int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_retain'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -90,12 +90,12 @@ int lua_cocos2dx_Ref_retain(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:retain",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_retain'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) @@ -103,28 +103,28 @@ int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_getReferenceCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -137,12 +137,12 @@ int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:getReferenceCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_getReferenceCount'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Ref_finalize(lua_State* tolua_S) @@ -155,11 +155,11 @@ int lua_register_cocos2dx_Ref(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ref"); tolua_cclass(tolua_S,"Ref","cc.Ref","",nullptr); - + tolua_beginmodule(tolua_S,"Ref"); - tolua_function(tolua_S,"release",lua_cocos2dx_Ref_release); - tolua_function(tolua_S,"retain",lua_cocos2dx_Ref_retain); - tolua_function(tolua_S,"getReferenceCount",lua_cocos2dx_Ref_getReferenceCount); + tolua_function(tolua_S,"release",lua_cocos2dx_Ref_release); + tolua_function(tolua_S,"retain",lua_cocos2dx_Ref_retain); + tolua_function(tolua_S,"getReferenceCount",lua_cocos2dx_Ref_getReferenceCount); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Ref).name(); g_luaType[typeName] = "cc.Ref"; @@ -172,28 +172,28 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_stop'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -205,12 +205,12 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:stop",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_stop'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) @@ -218,31 +218,31 @@ int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_listenOnTCP'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Console:listenOnTCP"); if(!ok) { @@ -255,12 +255,12 @@ int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:listenOnTCP",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_listenOnTCP'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) @@ -268,31 +268,31 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_listenOnFileDescriptor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Console:listenOnFileDescriptor"); if(!ok) { @@ -305,12 +305,12 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:listenOnFileDescriptor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_listenOnFileDescriptor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Console_log(lua_State* tolua_S) @@ -318,31 +318,31 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_log'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { const char* arg0; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Console:log"); arg0 = arg0_tmp.c_str(); if(!ok) { @@ -354,12 +354,12 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:log",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_log'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Console_finalize(lua_State* tolua_S) @@ -372,12 +372,12 @@ int lua_register_cocos2dx_Console(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Console"); tolua_cclass(tolua_S,"Console","cc.Console","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Console"); - tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); - tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); - tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); - tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); + tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); + tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); + tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); + tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Console).name(); g_luaType[typeName] = "cc.Console"; @@ -390,28 +390,28 @@ int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getMaxT'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -424,12 +424,12 @@ int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getMaxT",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getMaxT'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) @@ -437,28 +437,28 @@ int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getStringForFormat'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -471,12 +471,12 @@ int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getStringForFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getStringForFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) @@ -487,7 +487,7 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif @@ -504,11 +504,11 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) if (argc == 2) { cocos2d::Image* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0); - + if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Texture2D:initWithImage"); - + if (!ok) { break; } bool ret = cobj->initWithImage(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -520,7 +520,7 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) if (argc == 1) { cocos2d::Image* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0); - + if (!ok) { break; } bool ret = cobj->initWithImage(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -530,12 +530,12 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:initWithImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) @@ -543,28 +543,28 @@ int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getMaxS'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -577,12 +577,12 @@ int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getMaxS",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getMaxS'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) @@ -590,28 +590,28 @@ int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_releaseGLTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -623,12 +623,12 @@ int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:releaseGLTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_releaseGLTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) @@ -636,28 +636,28 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -670,12 +670,12 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:hasPremultipliedAlpha",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) @@ -683,28 +683,28 @@ int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelsHigh'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -717,12 +717,12 @@ int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelsHigh",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelsHigh'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) @@ -733,7 +733,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif @@ -750,7 +750,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) if (argc == 1) { cocos2d::Texture2D::PixelFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Texture2D:getBitsPerPixelForFormat"); - + if (!ok) { break; } unsigned int ret = cobj->getBitsPerPixelForFormat(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -768,12 +768,12 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getBitsPerPixelForFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getBitsPerPixelForFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) @@ -781,28 +781,28 @@ int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -815,12 +815,12 @@ int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) @@ -831,7 +831,7 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif @@ -848,11 +848,11 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } cocos2d::FontDefinition arg1; ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -864,15 +864,15 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -884,19 +884,19 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 4) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -908,23 +908,23 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 5) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); @@ -936,27 +936,27 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) if (argc == 6) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); - + if (!ok) { break; } cocos2d::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); @@ -966,12 +966,12 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:initWithString",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) @@ -979,31 +979,31 @@ int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setMaxT'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Texture2D:setMaxT"); if(!ok) { @@ -1015,12 +1015,12 @@ int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setMaxT",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setMaxT'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) @@ -1028,31 +1028,31 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_drawInRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Texture2D:drawInRect"); if(!ok) { @@ -1064,12 +1064,12 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:drawInRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_drawInRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) @@ -1077,28 +1077,28 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getContentSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1111,12 +1111,12 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getContentSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getContentSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) @@ -1124,28 +1124,28 @@ int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1157,12 +1157,12 @@ int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAliasTexParameters",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) @@ -1170,28 +1170,28 @@ int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1203,12 +1203,12 @@ int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAntiAliasTexParameters",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) @@ -1216,28 +1216,28 @@ int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_generateMipmap'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1249,12 +1249,12 @@ int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:generateMipmap",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_generateMipmap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) @@ -1262,28 +1262,28 @@ int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getDescription'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1296,12 +1296,12 @@ int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getDescription",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getDescription'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) @@ -1309,28 +1309,28 @@ int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelFormat'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1343,12 +1343,12 @@ int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) @@ -1356,31 +1356,31 @@ int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgram* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); if(!ok) { @@ -1392,12 +1392,12 @@ int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) @@ -1405,28 +1405,28 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1439,12 +1439,12 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getContentSizeInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) @@ -1452,28 +1452,28 @@ int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelsWide'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1486,12 +1486,12 @@ int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelsWide",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelsWide'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) @@ -1499,31 +1499,31 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_drawAtPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Texture2D:drawAtPoint"); if(!ok) { @@ -1535,12 +1535,12 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:drawAtPoint",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_drawAtPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) @@ -1548,28 +1548,28 @@ int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1582,12 +1582,12 @@ int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getGLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) @@ -1595,28 +1595,28 @@ int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_hasMipmaps'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1629,12 +1629,12 @@ int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:hasMipmaps",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_hasMipmaps'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) @@ -1642,31 +1642,31 @@ int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setMaxS'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Texture2D:setMaxS"); if(!ok) { @@ -1678,29 +1678,29 @@ int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setMaxS",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setMaxS'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Texture2D::PixelFormat arg0; @@ -1716,7 +1716,7 @@ int lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Texture2D:setDefaultAlphaPixelFormat",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat'.",&tolua_err); #endif return 0; @@ -1725,17 +1725,17 @@ int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -1750,7 +1750,7 @@ int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Texture2D:getDefaultAlphaPixelFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat'.",&tolua_err); #endif return 0; @@ -1760,15 +1760,15 @@ int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1784,11 +1784,11 @@ int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:Texture2D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_constructor'.",&tolua_err); #endif - + return 0; } @@ -1802,36 +1802,36 @@ int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Texture2D"); tolua_cclass(tolua_S,"Texture2D","cc.Texture2D","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Texture2D"); - tolua_function(tolua_S,"new",lua_cocos2dx_Texture2D_constructor); - tolua_function(tolua_S,"getMaxT",lua_cocos2dx_Texture2D_getMaxT); - tolua_function(tolua_S,"getStringForFormat",lua_cocos2dx_Texture2D_getStringForFormat); - tolua_function(tolua_S,"initWithImage",lua_cocos2dx_Texture2D_initWithImage); - tolua_function(tolua_S,"getMaxS",lua_cocos2dx_Texture2D_getMaxS); - tolua_function(tolua_S,"releaseGLTexture",lua_cocos2dx_Texture2D_releaseGLTexture); - tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Texture2D_hasPremultipliedAlpha); - tolua_function(tolua_S,"getPixelsHigh",lua_cocos2dx_Texture2D_getPixelsHigh); - tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_cocos2dx_Texture2D_getBitsPerPixelForFormat); - tolua_function(tolua_S,"getName",lua_cocos2dx_Texture2D_getName); - tolua_function(tolua_S,"initWithString",lua_cocos2dx_Texture2D_initWithString); - tolua_function(tolua_S,"setMaxT",lua_cocos2dx_Texture2D_setMaxT); - tolua_function(tolua_S,"drawInRect",lua_cocos2dx_Texture2D_drawInRect); - tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Texture2D_getContentSize); - tolua_function(tolua_S,"setAliasTexParameters",lua_cocos2dx_Texture2D_setAliasTexParameters); - tolua_function(tolua_S,"setAntiAliasTexParameters",lua_cocos2dx_Texture2D_setAntiAliasTexParameters); - tolua_function(tolua_S,"generateMipmap",lua_cocos2dx_Texture2D_generateMipmap); - tolua_function(tolua_S,"getDescription",lua_cocos2dx_Texture2D_getDescription); - tolua_function(tolua_S,"getPixelFormat",lua_cocos2dx_Texture2D_getPixelFormat); - tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Texture2D_setGLProgram); - tolua_function(tolua_S,"getContentSizeInPixels",lua_cocos2dx_Texture2D_getContentSizeInPixels); - tolua_function(tolua_S,"getPixelsWide",lua_cocos2dx_Texture2D_getPixelsWide); - tolua_function(tolua_S,"drawAtPoint",lua_cocos2dx_Texture2D_drawAtPoint); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Texture2D_getGLProgram); - tolua_function(tolua_S,"hasMipmaps",lua_cocos2dx_Texture2D_hasMipmaps); - tolua_function(tolua_S,"setMaxS",lua_cocos2dx_Texture2D_setMaxS); - tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat); - tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat); + tolua_function(tolua_S,"new",lua_cocos2dx_Texture2D_constructor); + tolua_function(tolua_S,"getMaxT",lua_cocos2dx_Texture2D_getMaxT); + tolua_function(tolua_S,"getStringForFormat",lua_cocos2dx_Texture2D_getStringForFormat); + tolua_function(tolua_S,"initWithImage",lua_cocos2dx_Texture2D_initWithImage); + tolua_function(tolua_S,"getMaxS",lua_cocos2dx_Texture2D_getMaxS); + tolua_function(tolua_S,"releaseGLTexture",lua_cocos2dx_Texture2D_releaseGLTexture); + tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Texture2D_hasPremultipliedAlpha); + tolua_function(tolua_S,"getPixelsHigh",lua_cocos2dx_Texture2D_getPixelsHigh); + tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_cocos2dx_Texture2D_getBitsPerPixelForFormat); + tolua_function(tolua_S,"getName",lua_cocos2dx_Texture2D_getName); + tolua_function(tolua_S,"initWithString",lua_cocos2dx_Texture2D_initWithString); + tolua_function(tolua_S,"setMaxT",lua_cocos2dx_Texture2D_setMaxT); + tolua_function(tolua_S,"drawInRect",lua_cocos2dx_Texture2D_drawInRect); + tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Texture2D_getContentSize); + tolua_function(tolua_S,"setAliasTexParameters",lua_cocos2dx_Texture2D_setAliasTexParameters); + tolua_function(tolua_S,"setAntiAliasTexParameters",lua_cocos2dx_Texture2D_setAntiAliasTexParameters); + tolua_function(tolua_S,"generateMipmap",lua_cocos2dx_Texture2D_generateMipmap); + tolua_function(tolua_S,"getDescription",lua_cocos2dx_Texture2D_getDescription); + tolua_function(tolua_S,"getPixelFormat",lua_cocos2dx_Texture2D_getPixelFormat); + tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Texture2D_setGLProgram); + tolua_function(tolua_S,"getContentSizeInPixels",lua_cocos2dx_Texture2D_getContentSizeInPixels); + tolua_function(tolua_S,"getPixelsWide",lua_cocos2dx_Texture2D_getPixelsWide); + tolua_function(tolua_S,"drawAtPoint",lua_cocos2dx_Texture2D_drawAtPoint); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Texture2D_getGLProgram); + tolua_function(tolua_S,"hasMipmaps",lua_cocos2dx_Texture2D_hasMipmaps); + tolua_function(tolua_S,"setMaxS",lua_cocos2dx_Texture2D_setMaxS); + tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat); + tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Texture2D).name(); g_luaType[typeName] = "cc.Texture2D"; @@ -1844,28 +1844,28 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getPreviousLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1878,12 +1878,12 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getPreviousLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getPreviousLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) @@ -1891,28 +1891,28 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1925,12 +1925,12 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) @@ -1938,28 +1938,28 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getDelta'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -1972,12 +1972,12 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getDelta",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getDelta'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) @@ -1985,28 +1985,28 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getStartLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2019,12 +2019,12 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getStartLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getStartLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) @@ -2032,28 +2032,28 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getStartLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2066,12 +2066,12 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getStartLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getStartLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getID(lua_State* tolua_S) @@ -2079,28 +2079,28 @@ int lua_cocos2dx_Touch_getID(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2113,12 +2113,12 @@ int lua_cocos2dx_Touch_getID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getID",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) @@ -2126,37 +2126,37 @@ int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_setTouchInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { int arg0; double arg1; double arg2; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Touch:setTouchInfo"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Touch:setTouchInfo"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Touch:setTouchInfo"); if(!ok) { @@ -2168,12 +2168,12 @@ int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:setTouchInfo",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_setTouchInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) @@ -2181,28 +2181,28 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2215,12 +2215,12 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) @@ -2228,28 +2228,28 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getPreviousLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2262,12 +2262,12 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getPreviousLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getPreviousLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) @@ -2275,15 +2275,15 @@ int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2299,11 +2299,11 @@ int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:Touch",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_constructor'.",&tolua_err); #endif - + return 0; } @@ -2317,18 +2317,18 @@ int lua_register_cocos2dx_Touch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Touch"); tolua_cclass(tolua_S,"Touch","cc.Touch","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Touch"); - tolua_function(tolua_S,"new",lua_cocos2dx_Touch_constructor); - tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_Touch_getPreviousLocationInView); - tolua_function(tolua_S,"getLocation",lua_cocos2dx_Touch_getLocation); - tolua_function(tolua_S,"getDelta",lua_cocos2dx_Touch_getDelta); - tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_Touch_getStartLocationInView); - tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_Touch_getStartLocation); - tolua_function(tolua_S,"getId",lua_cocos2dx_Touch_getID); - tolua_function(tolua_S,"setTouchInfo",lua_cocos2dx_Touch_setTouchInfo); - tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_Touch_getLocationInView); - tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_Touch_getPreviousLocation); + tolua_function(tolua_S,"new",lua_cocos2dx_Touch_constructor); + tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_Touch_getPreviousLocationInView); + tolua_function(tolua_S,"getLocation",lua_cocos2dx_Touch_getLocation); + tolua_function(tolua_S,"getDelta",lua_cocos2dx_Touch_getDelta); + tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_Touch_getStartLocationInView); + tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_Touch_getStartLocation); + tolua_function(tolua_S,"getId",lua_cocos2dx_Touch_getID); + tolua_function(tolua_S,"setTouchInfo",lua_cocos2dx_Touch_setTouchInfo); + tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_Touch_getLocationInView); + tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_Touch_getPreviousLocation); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Touch).name(); g_luaType[typeName] = "cc.Touch"; @@ -2341,28 +2341,28 @@ int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_isStopped'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2375,12 +2375,12 @@ int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:isStopped",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_isStopped'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Event_getType(lua_State* tolua_S) @@ -2388,28 +2388,28 @@ int lua_cocos2dx_Event_getType(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_getType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2422,12 +2422,12 @@ int lua_cocos2dx_Event_getType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_getType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) @@ -2435,28 +2435,28 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_getCurrentTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2469,12 +2469,12 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getCurrentTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_getCurrentTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) @@ -2482,28 +2482,28 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_stopPropagation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2515,12 +2515,12 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:stopPropagation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_stopPropagation'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Event_finalize(lua_State* tolua_S) @@ -2533,12 +2533,12 @@ int lua_register_cocos2dx_Event(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Event"); tolua_cclass(tolua_S,"Event","cc.Event","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Event"); - tolua_function(tolua_S,"isStopped",lua_cocos2dx_Event_isStopped); - tolua_function(tolua_S,"getType",lua_cocos2dx_Event_getType); - tolua_function(tolua_S,"getCurrentTarget",lua_cocos2dx_Event_getCurrentTarget); - tolua_function(tolua_S,"stopPropagation",lua_cocos2dx_Event_stopPropagation); + tolua_function(tolua_S,"isStopped",lua_cocos2dx_Event_isStopped); + tolua_function(tolua_S,"getType",lua_cocos2dx_Event_getType); + tolua_function(tolua_S,"getCurrentTarget",lua_cocos2dx_Event_getCurrentTarget); + tolua_function(tolua_S,"stopPropagation",lua_cocos2dx_Event_stopPropagation); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Event).name(); g_luaType[typeName] = "cc.Event"; @@ -2551,28 +2551,28 @@ int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventTouch_getEventCode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2585,12 +2585,12 @@ int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:getEventCode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_getEventCode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) @@ -2598,31 +2598,31 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventTouch_setEventCode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventTouch::EventCode arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventTouch:setEventCode"); if(!ok) { @@ -2634,12 +2634,12 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:setEventCode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_setEventCode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) @@ -2647,15 +2647,15 @@ int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -2671,11 +2671,11 @@ int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:EventTouch",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_constructor'.",&tolua_err); #endif - + return 0; } @@ -2689,11 +2689,11 @@ int lua_register_cocos2dx_EventTouch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventTouch"); tolua_cclass(tolua_S,"EventTouch","cc.EventTouch","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventTouch"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventTouch_constructor); - tolua_function(tolua_S,"getEventCode",lua_cocos2dx_EventTouch_getEventCode); - tolua_function(tolua_S,"setEventCode",lua_cocos2dx_EventTouch_setEventCode); + tolua_function(tolua_S,"new",lua_cocos2dx_EventTouch_constructor); + tolua_function(tolua_S,"getEventCode",lua_cocos2dx_EventTouch_getEventCode); + tolua_function(tolua_S,"setEventCode",lua_cocos2dx_EventTouch_setEventCode); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventTouch).name(); g_luaType[typeName] = "cc.EventTouch"; @@ -2706,21 +2706,21 @@ int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventKeyboard* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventKeyboard::KeyCode arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventKeyboard:EventKeyboard"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventKeyboard:EventKeyboard"); if(!ok) { @@ -2736,11 +2736,11 @@ int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventKeyboard:EventKeyboard",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventKeyboard_constructor'.",&tolua_err); #endif - + return 0; } @@ -2754,9 +2754,9 @@ int lua_register_cocos2dx_EventKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventKeyboard"); tolua_cclass(tolua_S,"EventKeyboard","cc.EventKeyboard","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventKeyboard"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); + tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventKeyboard).name(); g_luaType[typeName] = "cc.EventKeyboard"; @@ -2772,7 +2772,7 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -2789,11 +2789,11 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); - + if (!ok) { break; } cobj->addChild(arg0, arg1); return 0; @@ -2804,7 +2804,7 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } cobj->addChild(arg0); return 0; @@ -2815,15 +2815,15 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Node:addChild"); - + if (!ok) { break; } cobj->addChild(arg0, arg1, arg2); return 0; @@ -2834,15 +2834,15 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); - + if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.Node:addChild"); - + if (!ok) { break; } cobj->addChild(arg0, arg1, arg2); return 0; @@ -2851,12 +2851,12 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:addChild",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_addChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) @@ -2867,7 +2867,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -2884,7 +2884,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) if (argc == 1) { cocos2d::Component* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0); - + if (!ok) { break; } bool ret = cobj->removeComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -2896,7 +2896,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeComponent"); - + if (!ok) { break; } bool ret = cobj->removeComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -2906,12 +2906,12 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeComponent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeComponent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) @@ -2919,31 +2919,31 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::PhysicsBody* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0); if(!ok) { @@ -2955,12 +2955,12 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPhysicsBody",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPhysicsBody'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) @@ -2968,28 +2968,28 @@ int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDescription'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3002,12 +3002,12 @@ int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDescription",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDescription'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) @@ -3015,31 +3015,31 @@ int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotationSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotationSkewY"); if(!ok) { @@ -3051,12 +3051,12 @@ int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotationSkewY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotationSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) @@ -3064,31 +3064,31 @@ int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setOpacityModifyRGB"); if(!ok) { @@ -3100,12 +3100,12 @@ int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOpacityModifyRGB",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) @@ -3113,31 +3113,31 @@ int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setCascadeOpacityEnabled"); if(!ok) { @@ -3149,12 +3149,12 @@ int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCascadeOpacityEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) @@ -3165,7 +3165,7 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -3196,12 +3196,12 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) @@ -3209,36 +3209,36 @@ int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOnExitCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOnExitCallback'", nullptr); @@ -3249,12 +3249,12 @@ int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOnExitCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOnExitCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_pause(lua_State* tolua_S) @@ -3262,28 +3262,28 @@ int lua_cocos2dx_Node_pause(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_pause'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3295,12 +3295,12 @@ int lua_cocos2dx_Node_pause(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:pause",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_pause'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) @@ -3308,31 +3308,31 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpaceAR"); if(!ok) { @@ -3345,12 +3345,12 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToWorldSpaceAR",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) @@ -3358,28 +3358,28 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3392,12 +3392,12 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isIgnoreAnchorPointForPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) @@ -3405,31 +3405,31 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:getChildByName"); if(!ok) { @@ -3442,12 +3442,12 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) @@ -3455,31 +3455,31 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateDisplayedOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.Node:updateDisplayedOpacity"); if(!ok) { @@ -3491,12 +3491,12 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateDisplayedOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateDisplayedOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) @@ -3504,28 +3504,28 @@ int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getCameraMask'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3538,12 +3538,12 @@ int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getCameraMask",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getCameraMask'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) @@ -3551,31 +3551,31 @@ int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotation"); if(!ok) { @@ -3587,12 +3587,12 @@ int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) @@ -3600,31 +3600,31 @@ int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleZ"); if(!ok) { @@ -3636,12 +3636,12 @@ int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleZ",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) @@ -3649,31 +3649,31 @@ int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleY"); if(!ok) { @@ -3685,12 +3685,12 @@ int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) @@ -3698,31 +3698,31 @@ int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleX"); if(!ok) { @@ -3734,12 +3734,12 @@ int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) @@ -3747,31 +3747,31 @@ int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotationSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotationSkewX"); if(!ok) { @@ -3783,12 +3783,12 @@ int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotationSkewX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotationSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) @@ -3796,36 +3796,36 @@ int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'", nullptr); @@ -3836,12 +3836,12 @@ int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setonEnterTransitionDidFinishCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S) @@ -3849,28 +3849,28 @@ int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeFromPhysicsWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3882,12 +3882,12 @@ int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeFromPhysicsWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeFromPhysicsWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) @@ -3895,28 +3895,28 @@ int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeAllComponents'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3928,12 +3928,12 @@ int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeAllComponents",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeAllComponents'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) @@ -3941,28 +3941,28 @@ int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -3975,12 +3975,12 @@ int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) @@ -3988,31 +3988,31 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCameraMask'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned short arg0; - + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.Node:setCameraMask"); if(!ok) { @@ -4022,13 +4022,13 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) cobj->setCameraMask(arg0); return 0; } - if (argc == 2) + if (argc == 2) { unsigned short arg0; bool arg1; - + ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.Node:setCameraMask"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:setCameraMask"); if(!ok) { @@ -4040,12 +4040,12 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCameraMask",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCameraMask'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getTag(lua_State* tolua_S) @@ -4053,28 +4053,28 @@ int lua_cocos2dx_Node_getTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4087,12 +4087,12 @@ int lua_cocos2dx_Node_getTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getTag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) @@ -4100,28 +4100,28 @@ int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4134,12 +4134,12 @@ int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) @@ -4147,28 +4147,28 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToWorldTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4181,12 +4181,12 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToWorldTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToWorldTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) @@ -4194,28 +4194,28 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPosition3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4228,12 +4228,12 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPosition3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPosition3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) @@ -4241,31 +4241,31 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -4275,13 +4275,13 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) cobj->removeChild(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChild"); if(!ok) { @@ -4293,12 +4293,12 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) @@ -4306,31 +4306,31 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToWorldSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpace"); if(!ok) { @@ -4343,12 +4343,12 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToWorldSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToWorldSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScene(lua_State* tolua_S) @@ -4356,28 +4356,28 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4390,12 +4390,12 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) @@ -4403,28 +4403,28 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4437,12 +4437,12 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getEventDispatcher",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) @@ -4450,31 +4450,31 @@ int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setSkewX"); if(!ok) { @@ -4486,12 +4486,12 @@ int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setSkewX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) @@ -4499,31 +4499,31 @@ int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGLProgramState'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgramState* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgramState",&arg0); if(!ok) { @@ -4535,12 +4535,12 @@ int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGLProgramState",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGLProgramState'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) @@ -4548,36 +4548,36 @@ int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOnEnterCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOnEnterCallback'", nullptr); @@ -4588,12 +4588,12 @@ int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOnEnterCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOnEnterCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) @@ -4601,31 +4601,31 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setNormalizedPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setNormalizedPosition"); if(!ok) { @@ -4637,12 +4637,12 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setNormalizedPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setNormalizedPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) @@ -4650,36 +4650,36 @@ int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::function arg0; - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'", nullptr); @@ -4690,12 +4690,12 @@ int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setonExitTransitionDidStartCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) @@ -4703,31 +4703,31 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Touch* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); if(!ok) { @@ -4740,12 +4740,12 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertTouchToNodeSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -4756,7 +4756,7 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -4773,7 +4773,7 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:removeAllChildrenWithCleanup"); - + if (!ok) { break; } cobj->removeAllChildrenWithCleanup(arg0); return 0; @@ -4789,12 +4789,12 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeAllChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) @@ -4802,28 +4802,28 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToParentAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4836,12 +4836,12 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToParentAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToParentAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) @@ -4849,28 +4849,28 @@ int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4883,12 +4883,12 @@ int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isCascadeOpacityEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setParent(lua_State* tolua_S) @@ -4896,31 +4896,31 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setParent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -4932,12 +4932,12 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setParent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setParent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getName(lua_State* tolua_S) @@ -4945,28 +4945,28 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -4979,12 +4979,12 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_resume(lua_State* tolua_S) @@ -4992,28 +4992,28 @@ int lua_cocos2dx_Node_resume(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_resume'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5025,12 +5025,12 @@ int lua_cocos2dx_Node_resume(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:resume",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_resume'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) @@ -5038,28 +5038,28 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotation3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5072,12 +5072,12 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotation3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotation3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) @@ -5085,28 +5085,28 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToParentTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5119,12 +5119,12 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToParentTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToParentTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) @@ -5132,31 +5132,31 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Touch* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); if(!ok) { @@ -5169,12 +5169,12 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertTouchToNodeSpaceAR",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) @@ -5182,31 +5182,31 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToNodeSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpace"); if(!ok) { @@ -5219,12 +5219,12 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToNodeSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToNodeSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) @@ -5232,28 +5232,28 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPhysicsBody'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5266,12 +5266,12 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPhysicsBody",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPhysicsBody'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) @@ -5282,7 +5282,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -5299,11 +5299,11 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPosition"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Node:setPosition"); - + if (!ok) { break; } cobj->setPosition(arg0, arg1); return 0; @@ -5314,7 +5314,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setPosition"); - + if (!ok) { break; } cobj->setPosition(arg0); return 0; @@ -5323,12 +5323,12 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) @@ -5336,31 +5336,31 @@ int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:stopActionByTag"); if(!ok) { @@ -5372,12 +5372,12 @@ int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopActionByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) @@ -5385,34 +5385,34 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_reorderChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:reorderChild"); if(!ok) { @@ -5424,12 +5424,12 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:reorderChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_reorderChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_ignoreAnchorPointForPosition(lua_State* tolua_S) @@ -5437,31 +5437,31 @@ int lua_cocos2dx_Node_ignoreAnchorPointForPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_ignoreAnchorPointForPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:ignoreAnchorPointForPosition"); if(!ok) { @@ -5473,12 +5473,12 @@ int lua_cocos2dx_Node_ignoreAnchorPointForPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:ignoreAnchorPointForPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_ignoreAnchorPointForPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) @@ -5486,31 +5486,31 @@ int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setSkewY"); if(!ok) { @@ -5522,12 +5522,12 @@ int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setSkewY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) @@ -5535,31 +5535,31 @@ int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionZ"); if(!ok) { @@ -5571,12 +5571,12 @@ int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionZ",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) @@ -5584,31 +5584,31 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotation3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setRotation3D"); if(!ok) { @@ -5620,12 +5620,12 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotation3D",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotation3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) @@ -5633,31 +5633,31 @@ int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionX"); if(!ok) { @@ -5669,12 +5669,12 @@ int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) @@ -5682,31 +5682,31 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setNodeToParentTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Mat4 arg0; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Node:setNodeToParentTransform"); if(!ok) { @@ -5718,12 +5718,12 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setNodeToParentTransform",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setNodeToParentTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) @@ -5731,28 +5731,28 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getAnchorPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5765,12 +5765,12 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getAnchorPoint",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getAnchorPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) @@ -5778,28 +5778,28 @@ int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNumberOfRunningActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5812,12 +5812,12 @@ int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNumberOfRunningActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNumberOfRunningActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) @@ -5825,28 +5825,28 @@ int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5858,12 +5858,12 @@ int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) @@ -5871,28 +5871,28 @@ int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isVisible'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5905,12 +5905,12 @@ int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isVisible",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isVisible'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) @@ -5918,28 +5918,28 @@ int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildrenCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -5952,12 +5952,12 @@ int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildrenCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildrenCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) @@ -5965,31 +5965,31 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpaceAR"); if(!ok) { @@ -6002,12 +6002,12 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToNodeSpaceAR",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) @@ -6015,31 +6015,31 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_addComponent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Component* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0); if(!ok) { @@ -6052,12 +6052,12 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:addComponent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_addComponent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_runAction(lua_State* tolua_S) @@ -6065,31 +6065,31 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_runAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Action* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); if(!ok) { @@ -6102,12 +6102,12 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:runAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_runAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) @@ -6115,28 +6115,28 @@ int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6149,12 +6149,12 @@ int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isOpacityModifyRGB",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) @@ -6162,28 +6162,28 @@ int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6196,12 +6196,12 @@ int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) @@ -6209,28 +6209,28 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getAnchorPointInPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6243,12 +6243,12 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getAnchorPointInPoints",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getAnchorPointInPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_visit(lua_State* tolua_S) @@ -6259,7 +6259,7 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -6283,15 +6283,15 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) if (argc == 3) { cocos2d::Renderer* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:visit"); - + if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Node:visit"); - + if (!ok) { break; } cobj->visit(arg0, arg1, arg2); return 0; @@ -6300,12 +6300,12 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:visit",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_visit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) @@ -6313,31 +6313,31 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChildByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeChildByName"); if(!ok) { @@ -6347,13 +6347,13 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) cobj->removeChildByName(arg0); return 0; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeChildByName"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChildByName"); if(!ok) { @@ -6365,12 +6365,12 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChildByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChildByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) @@ -6378,28 +6378,28 @@ int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGLProgramState'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6412,12 +6412,12 @@ int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGLProgramState",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGLProgramState'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) @@ -6425,31 +6425,31 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScheduler'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scheduler* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0); if(!ok) { @@ -6461,12 +6461,12 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScheduler",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) @@ -6474,28 +6474,28 @@ int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAllActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6507,12 +6507,12 @@ int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAllActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAllActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) @@ -6520,28 +6520,28 @@ int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6554,12 +6554,12 @@ int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getSkewX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) @@ -6567,28 +6567,28 @@ int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6601,12 +6601,12 @@ int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getSkewY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) @@ -6614,28 +6614,28 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDisplayedColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6648,12 +6648,12 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDisplayedColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDisplayedColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) @@ -6661,31 +6661,31 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:getActionByTag"); if(!ok) { @@ -6698,12 +6698,12 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setName(lua_State* tolua_S) @@ -6711,31 +6711,31 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:setName"); if(!ok) { @@ -6747,12 +6747,12 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) @@ -6760,28 +6760,28 @@ int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDisplayedOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6794,12 +6794,12 @@ int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDisplayedOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDisplayedOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) @@ -6807,28 +6807,28 @@ int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getLocalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6841,12 +6841,12 @@ int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getLocalZOrder",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getLocalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) @@ -6857,7 +6857,7 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -6888,12 +6888,12 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScheduler",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) @@ -6901,28 +6901,28 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6935,12 +6935,12 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParentToNodeAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getOrderOfArrival(lua_State* tolua_S) @@ -6948,28 +6948,28 @@ int lua_cocos2dx_Node_getOrderOfArrival(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getOrderOfArrival'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -6982,12 +6982,12 @@ int lua_cocos2dx_Node_getOrderOfArrival(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getOrderOfArrival",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getOrderOfArrival'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) @@ -6995,31 +6995,31 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setActionManager'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionManager* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0); if(!ok) { @@ -7031,12 +7031,12 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setActionManager",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setColor(lua_State* tolua_S) @@ -7044,31 +7044,31 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:setColor"); if(!ok) { @@ -7080,12 +7080,12 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) @@ -7093,28 +7093,28 @@ int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isRunning'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7127,12 +7127,12 @@ int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isRunning",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isRunning'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getParent(lua_State* tolua_S) @@ -7143,7 +7143,7 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -7174,12 +7174,12 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) @@ -7187,28 +7187,28 @@ int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7221,12 +7221,12 @@ int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionZ",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) @@ -7234,28 +7234,28 @@ int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7268,12 +7268,12 @@ int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) @@ -7281,28 +7281,28 @@ int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7315,12 +7315,12 @@ int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) @@ -7328,31 +7328,31 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:removeChildByTag"); if(!ok) { @@ -7362,13 +7362,13 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) cobj->removeChildByTag(arg0); return 0; } - if (argc == 2) + if (argc == 2) { int arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:removeChildByTag"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChildByTag"); if(!ok) { @@ -7380,12 +7380,12 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) @@ -7393,31 +7393,31 @@ int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionY"); if(!ok) { @@ -7429,12 +7429,12 @@ int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) @@ -7442,28 +7442,28 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7476,12 +7476,12 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToWorldAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) @@ -7489,31 +7489,31 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateDisplayedColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:updateDisplayedColor"); if(!ok) { @@ -7525,12 +7525,12 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateDisplayedColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateDisplayedColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) @@ -7538,31 +7538,31 @@ int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setVisible'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setVisible"); if(!ok) { @@ -7574,12 +7574,12 @@ int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setVisible",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setVisible'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) @@ -7587,28 +7587,28 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParentToNodeTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7621,12 +7621,12 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParentToNodeTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParentToNodeTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) @@ -7634,31 +7634,31 @@ int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isScheduled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:isScheduled"); if(!ok) { @@ -7671,12 +7671,12 @@ int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isScheduled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isScheduled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) @@ -7684,31 +7684,31 @@ int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGlobalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setGlobalZOrder"); if(!ok) { @@ -7720,12 +7720,12 @@ int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGlobalZOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGlobalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setScale(lua_State* tolua_S) @@ -7736,7 +7736,7 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -7753,11 +7753,11 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScale"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Node:setScale"); - + if (!ok) { break; } cobj->setScale(arg0, arg1); return 0; @@ -7768,7 +7768,7 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScale"); - + if (!ok) { break; } cobj->setScale(arg0); return 0; @@ -7777,12 +7777,12 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScale",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) @@ -7790,31 +7790,31 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:getChildByTag"); if(!ok) { @@ -7827,12 +7827,12 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOrderOfArrival(lua_State* tolua_S) @@ -7840,31 +7840,31 @@ int lua_cocos2dx_Node_setOrderOfArrival(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOrderOfArrival'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setOrderOfArrival"); if(!ok) { @@ -7876,12 +7876,12 @@ int lua_cocos2dx_Node_setOrderOfArrival(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOrderOfArrival",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOrderOfArrival'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) @@ -7889,28 +7889,28 @@ int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleZ'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7923,12 +7923,12 @@ int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleZ",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleZ'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) @@ -7936,28 +7936,28 @@ int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -7970,12 +7970,12 @@ int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) @@ -7983,28 +7983,28 @@ int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8017,12 +8017,12 @@ int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) @@ -8030,31 +8030,31 @@ int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setLocalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setLocalZOrder"); if(!ok) { @@ -8066,12 +8066,12 @@ int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setLocalZOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setLocalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) @@ -8079,28 +8079,28 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8113,12 +8113,12 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getWorldToNodeAffineTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) @@ -8126,31 +8126,31 @@ int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCascadeColorEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setCascadeColorEnabled"); if(!ok) { @@ -8162,12 +8162,12 @@ int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCascadeColorEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCascadeColorEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) @@ -8175,31 +8175,31 @@ int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.Node:setOpacity"); if(!ok) { @@ -8211,12 +8211,12 @@ int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) @@ -8224,28 +8224,28 @@ int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_cleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8257,12 +8257,12 @@ int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:cleanup",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_cleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) @@ -8270,31 +8270,31 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getComponent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:getComponent"); if(!ok) { @@ -8307,12 +8307,12 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getComponent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getComponent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) @@ -8320,28 +8320,28 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getContentSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8354,12 +8354,12 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getContentSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getContentSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) @@ -8367,31 +8367,31 @@ int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAllActionsByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:stopAllActionsByTag"); if(!ok) { @@ -8403,12 +8403,12 @@ int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAllActionsByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAllActionsByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getColor(lua_State* tolua_S) @@ -8416,28 +8416,28 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8450,12 +8450,12 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) @@ -8463,28 +8463,28 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getBoundingBox'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8497,12 +8497,12 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getBoundingBox",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getBoundingBox'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) @@ -8510,31 +8510,31 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventDispatcher* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0); if(!ok) { @@ -8546,12 +8546,12 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setEventDispatcher",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) @@ -8559,28 +8559,28 @@ int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGlobalZOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8593,12 +8593,12 @@ int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGlobalZOrder",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGlobalZOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_draw(lua_State* tolua_S) @@ -8609,7 +8609,7 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -8633,15 +8633,15 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) if (argc == 3) { cocos2d::Renderer* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:draw"); - + if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Node:draw"); - + if (!ok) { break; } cobj->draw(arg0, arg1, arg2); return 0; @@ -8650,12 +8650,12 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:draw",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_draw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) @@ -8663,31 +8663,31 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setUserObject'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Ref* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Ref",&arg0); if(!ok) { @@ -8699,12 +8699,12 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setUserObject",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setUserObject'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) @@ -8715,7 +8715,7 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -8732,7 +8732,7 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:removeFromParentAndCleanup"); - + if (!ok) { break; } cobj->removeFromParentAndCleanup(arg0); return 0; @@ -8748,12 +8748,12 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeFromParent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeFromParentAndCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) @@ -8761,31 +8761,31 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPosition3D'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setPosition3D"); if(!ok) { @@ -8797,12 +8797,12 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPosition3D",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPosition3D'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_update(lua_State* tolua_S) @@ -8810,31 +8810,31 @@ int lua_cocos2dx_Node_update(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:update"); if(!ok) { @@ -8846,12 +8846,12 @@ int lua_cocos2dx_Node_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) @@ -8859,28 +8859,28 @@ int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_sortAllChildren'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8892,12 +8892,12 @@ int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:sortAllChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_sortAllChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) @@ -8905,28 +8905,28 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getWorldToNodeTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -8939,12 +8939,12 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getWorldToNodeTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getWorldToNodeTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) @@ -8952,31 +8952,31 @@ int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgram* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); if(!ok) { @@ -8988,12 +8988,12 @@ int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getScale(lua_State* tolua_S) @@ -9001,28 +9001,28 @@ int lua_cocos2dx_Node_getScale(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9035,12 +9035,12 @@ int lua_cocos2dx_Node_getScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScale",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) @@ -9048,28 +9048,28 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNormalizedPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9082,12 +9082,12 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNormalizedPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNormalizedPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) @@ -9095,28 +9095,28 @@ int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotationSkewX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9129,12 +9129,12 @@ int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotationSkewX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotationSkewX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) @@ -9142,28 +9142,28 @@ int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotationSkewY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9176,12 +9176,12 @@ int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotationSkewY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotationSkewY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_setTag(lua_State* tolua_S) @@ -9189,31 +9189,31 @@ int lua_cocos2dx_Node_setTag(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setTag"); if(!ok) { @@ -9225,12 +9225,12 @@ int lua_cocos2dx_Node_setTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) @@ -9238,28 +9238,28 @@ int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isCascadeColorEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9272,12 +9272,12 @@ int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isCascadeColorEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isCascadeColorEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) @@ -9285,31 +9285,31 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Action* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); if(!ok) { @@ -9321,12 +9321,12 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) @@ -9337,7 +9337,7 @@ int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif @@ -9368,29 +9368,29 @@ int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionManager",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Node_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -9405,7 +9405,7 @@ int lua_cocos2dx_Node_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Node:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_create'.",&tolua_err); #endif return 0; @@ -9420,143 +9420,143 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Node"); tolua_cclass(tolua_S,"Node","cc.Node","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Node"); - tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); - tolua_function(tolua_S,"removeComponent",lua_cocos2dx_Node_removeComponent); - tolua_function(tolua_S,"setPhysicsBody",lua_cocos2dx_Node_setPhysicsBody); - tolua_function(tolua_S,"getDescription",lua_cocos2dx_Node_getDescription); - tolua_function(tolua_S,"setRotationSkewY",lua_cocos2dx_Node_setRotationSkewY); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_Node_setOpacityModifyRGB); - tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_cocos2dx_Node_setCascadeOpacityEnabled); - tolua_function(tolua_S,"getChildren",lua_cocos2dx_Node_getChildren); - tolua_function(tolua_S,"setOnExitCallback",lua_cocos2dx_Node_setOnExitCallback); - tolua_function(tolua_S,"pause",lua_cocos2dx_Node_pause); - tolua_function(tolua_S,"convertToWorldSpaceAR",lua_cocos2dx_Node_convertToWorldSpaceAR); - tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_cocos2dx_Node_isIgnoreAnchorPointForPosition); - tolua_function(tolua_S,"getChildByName",lua_cocos2dx_Node_getChildByName); - tolua_function(tolua_S,"updateDisplayedOpacity",lua_cocos2dx_Node_updateDisplayedOpacity); - tolua_function(tolua_S,"getCameraMask",lua_cocos2dx_Node_getCameraMask); - tolua_function(tolua_S,"setRotation",lua_cocos2dx_Node_setRotation); - tolua_function(tolua_S,"setScaleZ",lua_cocos2dx_Node_setScaleZ); - tolua_function(tolua_S,"setScaleY",lua_cocos2dx_Node_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_cocos2dx_Node_setScaleX); - tolua_function(tolua_S,"setRotationSkewX",lua_cocos2dx_Node_setRotationSkewX); - tolua_function(tolua_S,"setonEnterTransitionDidFinishCallback",lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback); - tolua_function(tolua_S,"removeFromPhysicsWorld",lua_cocos2dx_Node_removeFromPhysicsWorld); - tolua_function(tolua_S,"removeAllComponents",lua_cocos2dx_Node_removeAllComponents); - tolua_function(tolua_S,"getOpacity",lua_cocos2dx_Node_getOpacity); - tolua_function(tolua_S,"setCameraMask",lua_cocos2dx_Node_setCameraMask); - tolua_function(tolua_S,"getTag",lua_cocos2dx_Node_getTag); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Node_getGLProgram); - tolua_function(tolua_S,"getNodeToWorldTransform",lua_cocos2dx_Node_getNodeToWorldTransform); - tolua_function(tolua_S,"getPosition3D",lua_cocos2dx_Node_getPosition3D); - tolua_function(tolua_S,"removeChild",lua_cocos2dx_Node_removeChild); - tolua_function(tolua_S,"convertToWorldSpace",lua_cocos2dx_Node_convertToWorldSpace); - tolua_function(tolua_S,"getScene",lua_cocos2dx_Node_getScene); - tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Node_getEventDispatcher); - tolua_function(tolua_S,"setSkewX",lua_cocos2dx_Node_setSkewX); - tolua_function(tolua_S,"setGLProgramState",lua_cocos2dx_Node_setGLProgramState); - tolua_function(tolua_S,"setOnEnterCallback",lua_cocos2dx_Node_setOnEnterCallback); - tolua_function(tolua_S,"setNormalizedPosition",lua_cocos2dx_Node_setNormalizedPosition); - tolua_function(tolua_S,"setonExitTransitionDidStartCallback",lua_cocos2dx_Node_setonExitTransitionDidStartCallback); - tolua_function(tolua_S,"convertTouchToNodeSpace",lua_cocos2dx_Node_convertTouchToNodeSpace); - tolua_function(tolua_S,"removeAllChildren",lua_cocos2dx_Node_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_cocos2dx_Node_getNodeToParentAffineTransform); - tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled); - tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent); - tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName); - tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume); - tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D); - tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform); - tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR); - tolua_function(tolua_S,"convertToNodeSpace",lua_cocos2dx_Node_convertToNodeSpace); - tolua_function(tolua_S,"getPhysicsBody",lua_cocos2dx_Node_getPhysicsBody); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Node_setPosition); - tolua_function(tolua_S,"stopActionByTag",lua_cocos2dx_Node_stopActionByTag); - tolua_function(tolua_S,"reorderChild",lua_cocos2dx_Node_reorderChild); - tolua_function(tolua_S,"ignoreAnchorPointForPosition",lua_cocos2dx_Node_ignoreAnchorPointForPosition); - tolua_function(tolua_S,"setSkewY",lua_cocos2dx_Node_setSkewY); - tolua_function(tolua_S,"setPositionZ",lua_cocos2dx_Node_setPositionZ); - tolua_function(tolua_S,"setRotation3D",lua_cocos2dx_Node_setRotation3D); - tolua_function(tolua_S,"setPositionX",lua_cocos2dx_Node_setPositionX); - tolua_function(tolua_S,"setNodeToParentTransform",lua_cocos2dx_Node_setNodeToParentTransform); - tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_Node_getAnchorPoint); - tolua_function(tolua_S,"getNumberOfRunningActions",lua_cocos2dx_Node_getNumberOfRunningActions); - tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Node_updateTransform); - tolua_function(tolua_S,"isVisible",lua_cocos2dx_Node_isVisible); - tolua_function(tolua_S,"getChildrenCount",lua_cocos2dx_Node_getChildrenCount); - tolua_function(tolua_S,"convertToNodeSpaceAR",lua_cocos2dx_Node_convertToNodeSpaceAR); - tolua_function(tolua_S,"addComponent",lua_cocos2dx_Node_addComponent); - tolua_function(tolua_S,"runAction",lua_cocos2dx_Node_runAction); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_Node_isOpacityModifyRGB); - tolua_function(tolua_S,"getRotation",lua_cocos2dx_Node_getRotation); - tolua_function(tolua_S,"getAnchorPointInPoints",lua_cocos2dx_Node_getAnchorPointInPoints); - tolua_function(tolua_S,"visit",lua_cocos2dx_Node_visit); - tolua_function(tolua_S,"removeChildByName",lua_cocos2dx_Node_removeChildByName); - tolua_function(tolua_S,"getGLProgramState",lua_cocos2dx_Node_getGLProgramState); - tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Node_setScheduler); - tolua_function(tolua_S,"stopAllActions",lua_cocos2dx_Node_stopAllActions); - tolua_function(tolua_S,"getSkewX",lua_cocos2dx_Node_getSkewX); - tolua_function(tolua_S,"getSkewY",lua_cocos2dx_Node_getSkewY); - tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor); - tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag); - tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName); - tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity); - tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder); - tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Node_getScheduler); - tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_cocos2dx_Node_getParentToNodeAffineTransform); - tolua_function(tolua_S,"getOrderOfArrival",lua_cocos2dx_Node_getOrderOfArrival); - tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Node_setActionManager); - tolua_function(tolua_S,"setColor",lua_cocos2dx_Node_setColor); - tolua_function(tolua_S,"isRunning",lua_cocos2dx_Node_isRunning); - tolua_function(tolua_S,"getParent",lua_cocos2dx_Node_getParent); - tolua_function(tolua_S,"getPositionZ",lua_cocos2dx_Node_getPositionZ); - tolua_function(tolua_S,"getPositionY",lua_cocos2dx_Node_getPositionY); - tolua_function(tolua_S,"getPositionX",lua_cocos2dx_Node_getPositionX); - tolua_function(tolua_S,"removeChildByTag",lua_cocos2dx_Node_removeChildByTag); - tolua_function(tolua_S,"setPositionY",lua_cocos2dx_Node_setPositionY); - tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_cocos2dx_Node_getNodeToWorldAffineTransform); - tolua_function(tolua_S,"updateDisplayedColor",lua_cocos2dx_Node_updateDisplayedColor); - tolua_function(tolua_S,"setVisible",lua_cocos2dx_Node_setVisible); - tolua_function(tolua_S,"getParentToNodeTransform",lua_cocos2dx_Node_getParentToNodeTransform); - tolua_function(tolua_S,"isScheduled",lua_cocos2dx_Node_isScheduled); - tolua_function(tolua_S,"setGlobalZOrder",lua_cocos2dx_Node_setGlobalZOrder); - tolua_function(tolua_S,"setScale",lua_cocos2dx_Node_setScale); - tolua_function(tolua_S,"getChildByTag",lua_cocos2dx_Node_getChildByTag); - tolua_function(tolua_S,"setOrderOfArrival",lua_cocos2dx_Node_setOrderOfArrival); - tolua_function(tolua_S,"getScaleZ",lua_cocos2dx_Node_getScaleZ); - tolua_function(tolua_S,"getScaleY",lua_cocos2dx_Node_getScaleY); - tolua_function(tolua_S,"getScaleX",lua_cocos2dx_Node_getScaleX); - tolua_function(tolua_S,"setLocalZOrder",lua_cocos2dx_Node_setLocalZOrder); - tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_cocos2dx_Node_getWorldToNodeAffineTransform); - tolua_function(tolua_S,"setCascadeColorEnabled",lua_cocos2dx_Node_setCascadeColorEnabled); - tolua_function(tolua_S,"setOpacity",lua_cocos2dx_Node_setOpacity); - tolua_function(tolua_S,"cleanup",lua_cocos2dx_Node_cleanup); - tolua_function(tolua_S,"getComponent",lua_cocos2dx_Node_getComponent); - tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Node_getContentSize); - tolua_function(tolua_S,"stopAllActionsByTag",lua_cocos2dx_Node_stopAllActionsByTag); - tolua_function(tolua_S,"getColor",lua_cocos2dx_Node_getColor); - tolua_function(tolua_S,"getBoundingBox",lua_cocos2dx_Node_getBoundingBox); - tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Node_setEventDispatcher); - tolua_function(tolua_S,"getGlobalZOrder",lua_cocos2dx_Node_getGlobalZOrder); - tolua_function(tolua_S,"draw",lua_cocos2dx_Node_draw); - tolua_function(tolua_S,"setUserObject",lua_cocos2dx_Node_setUserObject); - tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_Node_removeFromParentAndCleanup); - tolua_function(tolua_S,"setPosition3D",lua_cocos2dx_Node_setPosition3D); - tolua_function(tolua_S,"update",lua_cocos2dx_Node_update); - tolua_function(tolua_S,"sortAllChildren",lua_cocos2dx_Node_sortAllChildren); - tolua_function(tolua_S,"getWorldToNodeTransform",lua_cocos2dx_Node_getWorldToNodeTransform); - tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Node_setGLProgram); - tolua_function(tolua_S,"getScale",lua_cocos2dx_Node_getScale); - tolua_function(tolua_S,"getNormalizedPosition",lua_cocos2dx_Node_getNormalizedPosition); - tolua_function(tolua_S,"getRotationSkewX",lua_cocos2dx_Node_getRotationSkewX); - tolua_function(tolua_S,"getRotationSkewY",lua_cocos2dx_Node_getRotationSkewY); - tolua_function(tolua_S,"setTag",lua_cocos2dx_Node_setTag); - tolua_function(tolua_S,"isCascadeColorEnabled",lua_cocos2dx_Node_isCascadeColorEnabled); - tolua_function(tolua_S,"stopAction",lua_cocos2dx_Node_stopAction); - tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Node_getActionManager); - tolua_function(tolua_S,"create", lua_cocos2dx_Node_create); + tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); + tolua_function(tolua_S,"removeComponent",lua_cocos2dx_Node_removeComponent); + tolua_function(tolua_S,"setPhysicsBody",lua_cocos2dx_Node_setPhysicsBody); + tolua_function(tolua_S,"getDescription",lua_cocos2dx_Node_getDescription); + tolua_function(tolua_S,"setRotationSkewY",lua_cocos2dx_Node_setRotationSkewY); + tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_Node_setOpacityModifyRGB); + tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_cocos2dx_Node_setCascadeOpacityEnabled); + tolua_function(tolua_S,"getChildren",lua_cocos2dx_Node_getChildren); + tolua_function(tolua_S,"setOnExitCallback",lua_cocos2dx_Node_setOnExitCallback); + tolua_function(tolua_S,"pause",lua_cocos2dx_Node_pause); + tolua_function(tolua_S,"convertToWorldSpaceAR",lua_cocos2dx_Node_convertToWorldSpaceAR); + tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_cocos2dx_Node_isIgnoreAnchorPointForPosition); + tolua_function(tolua_S,"getChildByName",lua_cocos2dx_Node_getChildByName); + tolua_function(tolua_S,"updateDisplayedOpacity",lua_cocos2dx_Node_updateDisplayedOpacity); + tolua_function(tolua_S,"getCameraMask",lua_cocos2dx_Node_getCameraMask); + tolua_function(tolua_S,"setRotation",lua_cocos2dx_Node_setRotation); + tolua_function(tolua_S,"setScaleZ",lua_cocos2dx_Node_setScaleZ); + tolua_function(tolua_S,"setScaleY",lua_cocos2dx_Node_setScaleY); + tolua_function(tolua_S,"setScaleX",lua_cocos2dx_Node_setScaleX); + tolua_function(tolua_S,"setRotationSkewX",lua_cocos2dx_Node_setRotationSkewX); + tolua_function(tolua_S,"setonEnterTransitionDidFinishCallback",lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback); + tolua_function(tolua_S,"removeFromPhysicsWorld",lua_cocos2dx_Node_removeFromPhysicsWorld); + tolua_function(tolua_S,"removeAllComponents",lua_cocos2dx_Node_removeAllComponents); + tolua_function(tolua_S,"getOpacity",lua_cocos2dx_Node_getOpacity); + tolua_function(tolua_S,"setCameraMask",lua_cocos2dx_Node_setCameraMask); + tolua_function(tolua_S,"getTag",lua_cocos2dx_Node_getTag); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Node_getGLProgram); + tolua_function(tolua_S,"getNodeToWorldTransform",lua_cocos2dx_Node_getNodeToWorldTransform); + tolua_function(tolua_S,"getPosition3D",lua_cocos2dx_Node_getPosition3D); + tolua_function(tolua_S,"removeChild",lua_cocos2dx_Node_removeChild); + tolua_function(tolua_S,"convertToWorldSpace",lua_cocos2dx_Node_convertToWorldSpace); + tolua_function(tolua_S,"getScene",lua_cocos2dx_Node_getScene); + tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Node_getEventDispatcher); + tolua_function(tolua_S,"setSkewX",lua_cocos2dx_Node_setSkewX); + tolua_function(tolua_S,"setGLProgramState",lua_cocos2dx_Node_setGLProgramState); + tolua_function(tolua_S,"setOnEnterCallback",lua_cocos2dx_Node_setOnEnterCallback); + tolua_function(tolua_S,"setNormalizedPosition",lua_cocos2dx_Node_setNormalizedPosition); + tolua_function(tolua_S,"setonExitTransitionDidStartCallback",lua_cocos2dx_Node_setonExitTransitionDidStartCallback); + tolua_function(tolua_S,"convertTouchToNodeSpace",lua_cocos2dx_Node_convertTouchToNodeSpace); + tolua_function(tolua_S,"removeAllChildren",lua_cocos2dx_Node_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_cocos2dx_Node_getNodeToParentAffineTransform); + tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled); + tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent); + tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName); + tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume); + tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D); + tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform); + tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR); + tolua_function(tolua_S,"convertToNodeSpace",lua_cocos2dx_Node_convertToNodeSpace); + tolua_function(tolua_S,"getPhysicsBody",lua_cocos2dx_Node_getPhysicsBody); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Node_setPosition); + tolua_function(tolua_S,"stopActionByTag",lua_cocos2dx_Node_stopActionByTag); + tolua_function(tolua_S,"reorderChild",lua_cocos2dx_Node_reorderChild); + tolua_function(tolua_S,"ignoreAnchorPointForPosition",lua_cocos2dx_Node_ignoreAnchorPointForPosition); + tolua_function(tolua_S,"setSkewY",lua_cocos2dx_Node_setSkewY); + tolua_function(tolua_S,"setPositionZ",lua_cocos2dx_Node_setPositionZ); + tolua_function(tolua_S,"setRotation3D",lua_cocos2dx_Node_setRotation3D); + tolua_function(tolua_S,"setPositionX",lua_cocos2dx_Node_setPositionX); + tolua_function(tolua_S,"setNodeToParentTransform",lua_cocos2dx_Node_setNodeToParentTransform); + tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_Node_getAnchorPoint); + tolua_function(tolua_S,"getNumberOfRunningActions",lua_cocos2dx_Node_getNumberOfRunningActions); + tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Node_updateTransform); + tolua_function(tolua_S,"isVisible",lua_cocos2dx_Node_isVisible); + tolua_function(tolua_S,"getChildrenCount",lua_cocos2dx_Node_getChildrenCount); + tolua_function(tolua_S,"convertToNodeSpaceAR",lua_cocos2dx_Node_convertToNodeSpaceAR); + tolua_function(tolua_S,"addComponent",lua_cocos2dx_Node_addComponent); + tolua_function(tolua_S,"runAction",lua_cocos2dx_Node_runAction); + tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_Node_isOpacityModifyRGB); + tolua_function(tolua_S,"getRotation",lua_cocos2dx_Node_getRotation); + tolua_function(tolua_S,"getAnchorPointInPoints",lua_cocos2dx_Node_getAnchorPointInPoints); + tolua_function(tolua_S,"visit",lua_cocos2dx_Node_visit); + tolua_function(tolua_S,"removeChildByName",lua_cocos2dx_Node_removeChildByName); + tolua_function(tolua_S,"getGLProgramState",lua_cocos2dx_Node_getGLProgramState); + tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Node_setScheduler); + tolua_function(tolua_S,"stopAllActions",lua_cocos2dx_Node_stopAllActions); + tolua_function(tolua_S,"getSkewX",lua_cocos2dx_Node_getSkewX); + tolua_function(tolua_S,"getSkewY",lua_cocos2dx_Node_getSkewY); + tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor); + tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag); + tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName); + tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity); + tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder); + tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Node_getScheduler); + tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_cocos2dx_Node_getParentToNodeAffineTransform); + tolua_function(tolua_S,"getOrderOfArrival",lua_cocos2dx_Node_getOrderOfArrival); + tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Node_setActionManager); + tolua_function(tolua_S,"setColor",lua_cocos2dx_Node_setColor); + tolua_function(tolua_S,"isRunning",lua_cocos2dx_Node_isRunning); + tolua_function(tolua_S,"getParent",lua_cocos2dx_Node_getParent); + tolua_function(tolua_S,"getPositionZ",lua_cocos2dx_Node_getPositionZ); + tolua_function(tolua_S,"getPositionY",lua_cocos2dx_Node_getPositionY); + tolua_function(tolua_S,"getPositionX",lua_cocos2dx_Node_getPositionX); + tolua_function(tolua_S,"removeChildByTag",lua_cocos2dx_Node_removeChildByTag); + tolua_function(tolua_S,"setPositionY",lua_cocos2dx_Node_setPositionY); + tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_cocos2dx_Node_getNodeToWorldAffineTransform); + tolua_function(tolua_S,"updateDisplayedColor",lua_cocos2dx_Node_updateDisplayedColor); + tolua_function(tolua_S,"setVisible",lua_cocos2dx_Node_setVisible); + tolua_function(tolua_S,"getParentToNodeTransform",lua_cocos2dx_Node_getParentToNodeTransform); + tolua_function(tolua_S,"isScheduled",lua_cocos2dx_Node_isScheduled); + tolua_function(tolua_S,"setGlobalZOrder",lua_cocos2dx_Node_setGlobalZOrder); + tolua_function(tolua_S,"setScale",lua_cocos2dx_Node_setScale); + tolua_function(tolua_S,"getChildByTag",lua_cocos2dx_Node_getChildByTag); + tolua_function(tolua_S,"setOrderOfArrival",lua_cocos2dx_Node_setOrderOfArrival); + tolua_function(tolua_S,"getScaleZ",lua_cocos2dx_Node_getScaleZ); + tolua_function(tolua_S,"getScaleY",lua_cocos2dx_Node_getScaleY); + tolua_function(tolua_S,"getScaleX",lua_cocos2dx_Node_getScaleX); + tolua_function(tolua_S,"setLocalZOrder",lua_cocos2dx_Node_setLocalZOrder); + tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_cocos2dx_Node_getWorldToNodeAffineTransform); + tolua_function(tolua_S,"setCascadeColorEnabled",lua_cocos2dx_Node_setCascadeColorEnabled); + tolua_function(tolua_S,"setOpacity",lua_cocos2dx_Node_setOpacity); + tolua_function(tolua_S,"cleanup",lua_cocos2dx_Node_cleanup); + tolua_function(tolua_S,"getComponent",lua_cocos2dx_Node_getComponent); + tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Node_getContentSize); + tolua_function(tolua_S,"stopAllActionsByTag",lua_cocos2dx_Node_stopAllActionsByTag); + tolua_function(tolua_S,"getColor",lua_cocos2dx_Node_getColor); + tolua_function(tolua_S,"getBoundingBox",lua_cocos2dx_Node_getBoundingBox); + tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Node_setEventDispatcher); + tolua_function(tolua_S,"getGlobalZOrder",lua_cocos2dx_Node_getGlobalZOrder); + tolua_function(tolua_S,"draw",lua_cocos2dx_Node_draw); + tolua_function(tolua_S,"setUserObject",lua_cocos2dx_Node_setUserObject); + tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_Node_removeFromParentAndCleanup); + tolua_function(tolua_S,"setPosition3D",lua_cocos2dx_Node_setPosition3D); + tolua_function(tolua_S,"update",lua_cocos2dx_Node_update); + tolua_function(tolua_S,"sortAllChildren",lua_cocos2dx_Node_sortAllChildren); + tolua_function(tolua_S,"getWorldToNodeTransform",lua_cocos2dx_Node_getWorldToNodeTransform); + tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Node_setGLProgram); + tolua_function(tolua_S,"getScale",lua_cocos2dx_Node_getScale); + tolua_function(tolua_S,"getNormalizedPosition",lua_cocos2dx_Node_getNormalizedPosition); + tolua_function(tolua_S,"getRotationSkewX",lua_cocos2dx_Node_getRotationSkewX); + tolua_function(tolua_S,"getRotationSkewY",lua_cocos2dx_Node_getRotationSkewY); + tolua_function(tolua_S,"setTag",lua_cocos2dx_Node_setTag); + tolua_function(tolua_S,"isCascadeColorEnabled",lua_cocos2dx_Node_isCascadeColorEnabled); + tolua_function(tolua_S,"stopAction",lua_cocos2dx_Node_stopAction); + tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Node_getActionManager); + tolua_function(tolua_S,"create", lua_cocos2dx_Node_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Node).name(); g_luaType[typeName] = "cc.Node"; @@ -9569,28 +9569,28 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9603,12 +9603,12 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getPhysicsWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_getPhysicsWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scene_render(lua_State* tolua_S) @@ -9616,31 +9616,31 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_render'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Renderer* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); if(!ok) { @@ -9652,29 +9652,29 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:render",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_render'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Size arg0; @@ -9691,7 +9691,7 @@ int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithSize'.",&tolua_err); #endif return 0; @@ -9700,17 +9700,17 @@ int lua_cocos2dx_Scene_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -9725,7 +9725,7 @@ int lua_cocos2dx_Scene_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_create'.",&tolua_err); #endif return 0; @@ -9734,17 +9734,17 @@ int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -9759,7 +9759,7 @@ int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithPhysics",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithPhysics'.",&tolua_err); #endif return 0; @@ -9774,13 +9774,13 @@ int lua_register_cocos2dx_Scene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scene"); tolua_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Scene"); - tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld); - tolua_function(tolua_S,"render",lua_cocos2dx_Scene_render); - tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize); - tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); - tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics); + tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld); + tolua_function(tolua_S,"render",lua_cocos2dx_Scene_render); + tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize); + tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); + tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Scene).name(); g_luaType[typeName] = "cc.Scene"; @@ -9793,34 +9793,34 @@ int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setFrameSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setFrameSize"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setFrameSize"); if(!ok) { @@ -9832,12 +9832,12 @@ int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setFrameSize",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setFrameSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) @@ -9845,28 +9845,28 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getViewPortRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9879,12 +9879,12 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getViewPortRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getViewPortRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) @@ -9892,31 +9892,31 @@ int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setContentScaleFactor"); if(!ok) { @@ -9929,12 +9929,12 @@ int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setContentScaleFactor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) @@ -9942,28 +9942,28 @@ int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -9976,12 +9976,12 @@ int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getContentScaleFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) @@ -9989,31 +9989,31 @@ int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setIMEKeyboardState'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLView:setIMEKeyboardState"); if(!ok) { @@ -10025,12 +10025,12 @@ int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setIMEKeyboardState",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setIMEKeyboardState'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) @@ -10038,40 +10038,40 @@ int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setScissorInPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setScissorInPoints"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setScissorInPoints"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLView:setScissorInPoints"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.GLView:setScissorInPoints"); if(!ok) { @@ -10083,12 +10083,12 @@ int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setScissorInPoints",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setScissorInPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) @@ -10096,28 +10096,28 @@ int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getViewName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10130,12 +10130,12 @@ int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getViewName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getViewName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) @@ -10143,28 +10143,28 @@ int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isOpenGLReady'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10177,12 +10177,12 @@ int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isOpenGLReady",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isOpenGLReady'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_end(lua_State* tolua_S) @@ -10190,28 +10190,28 @@ int lua_cocos2dx_GLView_end(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_end'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10223,12 +10223,12 @@ int lua_cocos2dx_GLView_end(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:end",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_end'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) @@ -10236,28 +10236,28 @@ int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10270,12 +10270,12 @@ int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScaleY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) @@ -10283,28 +10283,28 @@ int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10317,12 +10317,12 @@ int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScaleX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) @@ -10330,28 +10330,28 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleOrigin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10364,12 +10364,12 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleOrigin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleOrigin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) @@ -10377,28 +10377,28 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getFrameSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10411,12 +10411,12 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getFrameSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getFrameSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) @@ -10424,31 +10424,31 @@ int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setFrameZoomFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setFrameZoomFactor"); if(!ok) { @@ -10460,12 +10460,12 @@ int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setFrameZoomFactor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setFrameZoomFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) @@ -10473,28 +10473,28 @@ int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getFrameZoomFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10507,12 +10507,12 @@ int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getFrameZoomFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getFrameZoomFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) @@ -10520,28 +10520,28 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getDesignResolutionSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10554,12 +10554,12 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getDesignResolutionSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getDesignResolutionSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) @@ -10567,28 +10567,28 @@ int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_windowShouldClose'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10601,12 +10601,12 @@ int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:windowShouldClose",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_windowShouldClose'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) @@ -10614,28 +10614,28 @@ int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_swapBuffers'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10647,12 +10647,12 @@ int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:swapBuffers",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_swapBuffers'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) @@ -10660,37 +10660,37 @@ int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setDesignResolutionSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; double arg1; ResolutionPolicy arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setDesignResolutionSize"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setDesignResolutionSize"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.GLView:setDesignResolutionSize"); if(!ok) { @@ -10702,12 +10702,12 @@ int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setDesignResolutionSize",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setDesignResolutionSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) @@ -10715,28 +10715,28 @@ int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getResolutionPolicy'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10749,12 +10749,12 @@ int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getResolutionPolicy",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getResolutionPolicy'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) @@ -10762,28 +10762,28 @@ int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isRetinaDisplay'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10796,12 +10796,12 @@ int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isRetinaDisplay",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isRetinaDisplay'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) @@ -10809,40 +10809,40 @@ int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setViewPortInPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setViewPortInPoints"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setViewPortInPoints"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLView:setViewPortInPoints"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.GLView:setViewPortInPoints"); if(!ok) { @@ -10854,12 +10854,12 @@ int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setViewPortInPoints",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setViewPortInPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) @@ -10867,28 +10867,28 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScissorRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10901,12 +10901,12 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScissorRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScissorRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) @@ -10914,28 +10914,28 @@ int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getRetinaFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -10948,12 +10948,12 @@ int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getRetinaFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getRetinaFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) @@ -10961,31 +10961,31 @@ int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setViewName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLView:setViewName"); if(!ok) { @@ -10997,12 +10997,12 @@ int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setViewName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setViewName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) @@ -11010,28 +11010,28 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11044,12 +11044,12 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) @@ -11057,28 +11057,28 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11091,12 +11091,12 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) @@ -11104,28 +11104,28 @@ int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isScissorEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11138,12 +11138,12 @@ int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isScissorEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isScissorEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) @@ -11151,28 +11151,28 @@ int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_pollEvents'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11184,34 +11184,34 @@ int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:pollEvents",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_pollEvents'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLView_setGLContextAttrs(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { GLContextAttrs arg0; -#pragma warning NO CONVERSION TO NATIVE FOR GLContextAttrs - ok = false; + #pragma warning NO CONVERSION TO NATIVE FOR GLContextAttrs + ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setGLContextAttrs'", nullptr); @@ -11223,7 +11223,7 @@ int lua_cocos2dx_GLView_setGLContextAttrs(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLView:setGLContextAttrs",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setGLContextAttrs'.",&tolua_err); #endif return 0; @@ -11232,17 +11232,17 @@ int lua_cocos2dx_GLView_getGLContextAttrs(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -11251,13 +11251,13 @@ int lua_cocos2dx_GLView_getGLContextAttrs(lua_State* tolua_S) return 0; } GLContextAttrs ret = cocos2d::GLView::getGLContextAttrs(); -#pragma warning NO CONVERSION FROM NATIVE FOR GLContextAttrs; + #pragma warning NO CONVERSION FROM NATIVE FOR GLContextAttrs; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLView:getGLContextAttrs",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getGLContextAttrs'.",&tolua_err); #endif return 0; @@ -11272,39 +11272,39 @@ int lua_register_cocos2dx_GLView(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLView"); tolua_cclass(tolua_S,"GLView","cc.GLView","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLView"); - tolua_function(tolua_S,"setFrameSize",lua_cocos2dx_GLView_setFrameSize); - tolua_function(tolua_S,"getViewPortRect",lua_cocos2dx_GLView_getViewPortRect); - tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_GLView_setContentScaleFactor); - tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_GLView_getContentScaleFactor); - tolua_function(tolua_S,"setIMEKeyboardState",lua_cocos2dx_GLView_setIMEKeyboardState); - tolua_function(tolua_S,"setScissorInPoints",lua_cocos2dx_GLView_setScissorInPoints); - tolua_function(tolua_S,"getViewName",lua_cocos2dx_GLView_getViewName); - tolua_function(tolua_S,"isOpenGLReady",lua_cocos2dx_GLView_isOpenGLReady); - tolua_function(tolua_S,"end",lua_cocos2dx_GLView_end); - tolua_function(tolua_S,"getScaleY",lua_cocos2dx_GLView_getScaleY); - tolua_function(tolua_S,"getScaleX",lua_cocos2dx_GLView_getScaleX); - tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_GLView_getVisibleOrigin); - tolua_function(tolua_S,"getFrameSize",lua_cocos2dx_GLView_getFrameSize); - tolua_function(tolua_S,"setFrameZoomFactor",lua_cocos2dx_GLView_setFrameZoomFactor); - tolua_function(tolua_S,"getFrameZoomFactor",lua_cocos2dx_GLView_getFrameZoomFactor); - tolua_function(tolua_S,"getDesignResolutionSize",lua_cocos2dx_GLView_getDesignResolutionSize); - tolua_function(tolua_S,"windowShouldClose",lua_cocos2dx_GLView_windowShouldClose); - tolua_function(tolua_S,"swapBuffers",lua_cocos2dx_GLView_swapBuffers); - tolua_function(tolua_S,"setDesignResolutionSize",lua_cocos2dx_GLView_setDesignResolutionSize); - tolua_function(tolua_S,"getResolutionPolicy",lua_cocos2dx_GLView_getResolutionPolicy); - tolua_function(tolua_S,"isRetinaDisplay",lua_cocos2dx_GLView_isRetinaDisplay); - tolua_function(tolua_S,"setViewPortInPoints",lua_cocos2dx_GLView_setViewPortInPoints); - tolua_function(tolua_S,"getScissorRect",lua_cocos2dx_GLView_getScissorRect); - tolua_function(tolua_S,"getRetinaFactor",lua_cocos2dx_GLView_getRetinaFactor); - tolua_function(tolua_S,"setViewName",lua_cocos2dx_GLView_setViewName); - tolua_function(tolua_S,"getVisibleRect",lua_cocos2dx_GLView_getVisibleRect); - tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_GLView_getVisibleSize); - tolua_function(tolua_S,"isScissorEnabled",lua_cocos2dx_GLView_isScissorEnabled); - tolua_function(tolua_S,"pollEvents",lua_cocos2dx_GLView_pollEvents); - tolua_function(tolua_S,"setGLContextAttrs", lua_cocos2dx_GLView_setGLContextAttrs); - tolua_function(tolua_S,"getGLContextAttrs", lua_cocos2dx_GLView_getGLContextAttrs); + tolua_function(tolua_S,"setFrameSize",lua_cocos2dx_GLView_setFrameSize); + tolua_function(tolua_S,"getViewPortRect",lua_cocos2dx_GLView_getViewPortRect); + tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_GLView_setContentScaleFactor); + tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_GLView_getContentScaleFactor); + tolua_function(tolua_S,"setIMEKeyboardState",lua_cocos2dx_GLView_setIMEKeyboardState); + tolua_function(tolua_S,"setScissorInPoints",lua_cocos2dx_GLView_setScissorInPoints); + tolua_function(tolua_S,"getViewName",lua_cocos2dx_GLView_getViewName); + tolua_function(tolua_S,"isOpenGLReady",lua_cocos2dx_GLView_isOpenGLReady); + tolua_function(tolua_S,"end",lua_cocos2dx_GLView_end); + tolua_function(tolua_S,"getScaleY",lua_cocos2dx_GLView_getScaleY); + tolua_function(tolua_S,"getScaleX",lua_cocos2dx_GLView_getScaleX); + tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_GLView_getVisibleOrigin); + tolua_function(tolua_S,"getFrameSize",lua_cocos2dx_GLView_getFrameSize); + tolua_function(tolua_S,"setFrameZoomFactor",lua_cocos2dx_GLView_setFrameZoomFactor); + tolua_function(tolua_S,"getFrameZoomFactor",lua_cocos2dx_GLView_getFrameZoomFactor); + tolua_function(tolua_S,"getDesignResolutionSize",lua_cocos2dx_GLView_getDesignResolutionSize); + tolua_function(tolua_S,"windowShouldClose",lua_cocos2dx_GLView_windowShouldClose); + tolua_function(tolua_S,"swapBuffers",lua_cocos2dx_GLView_swapBuffers); + tolua_function(tolua_S,"setDesignResolutionSize",lua_cocos2dx_GLView_setDesignResolutionSize); + tolua_function(tolua_S,"getResolutionPolicy",lua_cocos2dx_GLView_getResolutionPolicy); + tolua_function(tolua_S,"isRetinaDisplay",lua_cocos2dx_GLView_isRetinaDisplay); + tolua_function(tolua_S,"setViewPortInPoints",lua_cocos2dx_GLView_setViewPortInPoints); + tolua_function(tolua_S,"getScissorRect",lua_cocos2dx_GLView_getScissorRect); + tolua_function(tolua_S,"getRetinaFactor",lua_cocos2dx_GLView_getRetinaFactor); + tolua_function(tolua_S,"setViewName",lua_cocos2dx_GLView_setViewName); + tolua_function(tolua_S,"getVisibleRect",lua_cocos2dx_GLView_getVisibleRect); + tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_GLView_getVisibleSize); + tolua_function(tolua_S,"isScissorEnabled",lua_cocos2dx_GLView_isScissorEnabled); + tolua_function(tolua_S,"pollEvents",lua_cocos2dx_GLView_pollEvents); + tolua_function(tolua_S,"setGLContextAttrs", lua_cocos2dx_GLView_setGLContextAttrs); + tolua_function(tolua_S,"getGLContextAttrs", lua_cocos2dx_GLView_getGLContextAttrs); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLView).name(); g_luaType[typeName] = "cc.GLView"; @@ -11317,28 +11317,28 @@ int lua_cocos2dx_Director_pause(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pause'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11350,12 +11350,12 @@ int lua_cocos2dx_Director_pause(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pause",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pause'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) @@ -11363,31 +11363,31 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventDispatcher* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0); if(!ok) { @@ -11399,12 +11399,12 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setEventDispatcher",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) @@ -11412,31 +11412,31 @@ int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Director:setContentScaleFactor"); if(!ok) { @@ -11448,12 +11448,12 @@ int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setContentScaleFactor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) @@ -11461,28 +11461,28 @@ int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getContentScaleFactor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11495,12 +11495,12 @@ int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getContentScaleFactor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getContentScaleFactor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) @@ -11508,28 +11508,28 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getWinSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11542,12 +11542,12 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getWinSizeInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getWinSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) @@ -11555,28 +11555,28 @@ int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getDeltaTime'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11589,12 +11589,12 @@ int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getDeltaTime",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getDeltaTime'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) @@ -11602,28 +11602,28 @@ int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setGLDefaultValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11635,12 +11635,12 @@ int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setGLDefaultValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setGLDefaultValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) @@ -11648,31 +11648,31 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setActionManager'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionManager* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0); if(!ok) { @@ -11684,12 +11684,12 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setActionManager",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) @@ -11697,31 +11697,31 @@ int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setAlphaBlending'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setAlphaBlending"); if(!ok) { @@ -11733,12 +11733,12 @@ int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setAlphaBlending",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setAlphaBlending'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) @@ -11746,28 +11746,28 @@ int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popToRootScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11779,12 +11779,12 @@ int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popToRootScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popToRootScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) @@ -11792,34 +11792,34 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_loadMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::MATRIX_STACK_TYPE arg0; cocos2d::Mat4 arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadMatrix"); - + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Director:loadMatrix"); if(!ok) { @@ -11831,12 +11831,12 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:loadMatrix",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_loadMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) @@ -11844,28 +11844,28 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getNotificationNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11878,12 +11878,12 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getNotificationNode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getNotificationNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) @@ -11891,28 +11891,28 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getWinSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11925,12 +11925,12 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getWinSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getWinSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) @@ -11938,28 +11938,28 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getTextureCache'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -11972,12 +11972,12 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTextureCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getTextureCache'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) @@ -11985,28 +11985,28 @@ int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isSendCleanupToScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12019,12 +12019,12 @@ int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isSendCleanupToScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isSendCleanupToScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) @@ -12032,28 +12032,28 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getVisibleOrigin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12066,12 +12066,12 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getVisibleOrigin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getVisibleOrigin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) @@ -12079,28 +12079,28 @@ int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_mainLoop'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12112,12 +12112,12 @@ int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:mainLoop",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_mainLoop'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) @@ -12125,31 +12125,31 @@ int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDepthTest'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setDepthTest"); if(!ok) { @@ -12161,12 +12161,12 @@ int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDepthTest",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDepthTest'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) @@ -12174,28 +12174,28 @@ int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getFrameRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12208,12 +12208,12 @@ int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getFrameRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getFrameRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) @@ -12221,28 +12221,28 @@ int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getSecondsPerFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12255,12 +12255,12 @@ int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getSecondsPerFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getSecondsPerFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) @@ -12268,28 +12268,28 @@ int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_resetMatrixStack'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12301,12 +12301,12 @@ int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:resetMatrixStack",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_resetMatrixStack'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) @@ -12314,31 +12314,31 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_convertToUI'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToUI"); if(!ok) { @@ -12351,12 +12351,12 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:convertToUI",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_convertToUI'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) @@ -12364,31 +12364,31 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pushMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:pushMatrix"); if(!ok) { @@ -12400,12 +12400,12 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pushMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pushMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) @@ -12413,28 +12413,28 @@ int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDefaultValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12446,12 +12446,12 @@ int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDefaultValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDefaultValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_init(lua_State* tolua_S) @@ -12459,28 +12459,28 @@ int lua_cocos2dx_Director_init(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_init'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12493,12 +12493,12 @@ int lua_cocos2dx_Director_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) @@ -12506,31 +12506,31 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setScheduler'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scheduler* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0); if(!ok) { @@ -12542,12 +12542,12 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setScheduler",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) @@ -12555,28 +12555,28 @@ int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_startAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12588,12 +12588,12 @@ int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:startAnimation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_startAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) @@ -12601,28 +12601,28 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getOpenGLView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12635,12 +12635,12 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getOpenGLView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getOpenGLView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) @@ -12648,28 +12648,28 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getRunningScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12682,12 +12682,12 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getRunningScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getRunningScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) @@ -12695,28 +12695,28 @@ int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setViewport'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12728,12 +12728,12 @@ int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setViewport",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setViewport'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) @@ -12741,28 +12741,28 @@ int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_stopAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12774,12 +12774,12 @@ int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:stopAnimation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_stopAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) @@ -12787,31 +12787,31 @@ int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popToSceneStackLevel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popToSceneStackLevel"); if(!ok) { @@ -12823,12 +12823,12 @@ int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popToSceneStackLevel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popToSceneStackLevel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_resume(lua_State* tolua_S) @@ -12836,28 +12836,28 @@ int lua_cocos2dx_Director_resume(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_resume'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12869,12 +12869,12 @@ int lua_cocos2dx_Director_resume(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:resume",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_resume'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) @@ -12882,28 +12882,28 @@ int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12916,12 +12916,12 @@ int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isNextDeltaTimeZero",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_end(lua_State* tolua_S) @@ -12929,28 +12929,28 @@ int lua_cocos2dx_Director_end(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_end'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -12962,12 +12962,12 @@ int lua_cocos2dx_Director_end(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:end",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_end'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) @@ -12975,31 +12975,31 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setOpenGLView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLView* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLView",&arg0); if(!ok) { @@ -13011,12 +13011,12 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setOpenGLView",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setOpenGLView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) @@ -13024,31 +13024,31 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_convertToGL'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToGL"); if(!ok) { @@ -13061,12 +13061,12 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:convertToGL",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_convertToGL'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) @@ -13074,28 +13074,28 @@ int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_purgeCachedData'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13107,12 +13107,12 @@ int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:purgeCachedData",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_purgeCachedData'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) @@ -13120,28 +13120,28 @@ int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getTotalFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13154,12 +13154,12 @@ int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTotalFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getTotalFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) @@ -13167,31 +13167,31 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_runWithScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scene* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); if(!ok) { @@ -13203,12 +13203,12 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:runWithScene",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_runWithScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) @@ -13216,31 +13216,31 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setNotificationNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -13252,12 +13252,12 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setNotificationNode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setNotificationNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) @@ -13265,28 +13265,28 @@ int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_drawScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13298,12 +13298,12 @@ int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:drawScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_drawScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) @@ -13311,31 +13311,31 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:getMatrix"); if(!ok) { @@ -13348,12 +13348,12 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popScene(lua_State* tolua_S) @@ -13361,28 +13361,28 @@ int lua_cocos2dx_Director_popScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13394,12 +13394,12 @@ int lua_cocos2dx_Director_popScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popScene",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) @@ -13407,31 +13407,31 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_loadIdentityMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadIdentityMatrix"); if(!ok) { @@ -13443,12 +13443,12 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:loadIdentityMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_loadIdentityMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) @@ -13456,28 +13456,28 @@ int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isDisplayStats'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13490,12 +13490,12 @@ int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isDisplayStats",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isDisplayStats'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) @@ -13503,31 +13503,31 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setProjection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Director::Projection arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:setProjection"); if(!ok) { @@ -13539,12 +13539,12 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setProjection",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setProjection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) @@ -13552,28 +13552,28 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getConsole'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13586,12 +13586,12 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getConsole",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getConsole'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) @@ -13599,34 +13599,34 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_multiplyMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::MATRIX_STACK_TYPE arg0; cocos2d::Mat4 arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:multiplyMatrix"); - + ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Director:multiplyMatrix"); if(!ok) { @@ -13638,12 +13638,12 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:multiplyMatrix",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_multiplyMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) @@ -13651,28 +13651,28 @@ int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getZEye'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13685,12 +13685,12 @@ int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getZEye",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getZEye'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) @@ -13698,31 +13698,31 @@ int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setNextDeltaTimeZero"); if(!ok) { @@ -13734,12 +13734,12 @@ int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setNextDeltaTimeZero",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) @@ -13747,31 +13747,31 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popMatrix"); if(!ok) { @@ -13783,12 +13783,12 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) @@ -13796,28 +13796,28 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getVisibleSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13830,12 +13830,12 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getVisibleSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getVisibleSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) @@ -13843,28 +13843,28 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getScheduler'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13877,12 +13877,12 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getScheduler",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getScheduler'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) @@ -13890,31 +13890,31 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pushScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scene* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); if(!ok) { @@ -13926,12 +13926,12 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pushScene",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pushScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) @@ -13939,28 +13939,28 @@ int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getAnimationInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -13973,12 +13973,12 @@ int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getAnimationInterval",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getAnimationInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) @@ -13986,28 +13986,28 @@ int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isPaused'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14020,12 +14020,12 @@ int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isPaused",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isPaused'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) @@ -14033,31 +14033,31 @@ int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDisplayStats'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setDisplayStats"); if(!ok) { @@ -14069,12 +14069,12 @@ int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDisplayStats",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDisplayStats'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) @@ -14082,28 +14082,28 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getEventDispatcher'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14116,12 +14116,12 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getEventDispatcher",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getEventDispatcher'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) @@ -14129,31 +14129,31 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_replaceScene'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Scene* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); if(!ok) { @@ -14165,12 +14165,12 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:replaceScene",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_replaceScene'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) @@ -14178,31 +14178,31 @@ int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setAnimationInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Director:setAnimationInterval"); if(!ok) { @@ -14214,12 +14214,12 @@ int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setAnimationInterval",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setAnimationInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) @@ -14227,28 +14227,28 @@ int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getActionManager'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14261,29 +14261,29 @@ int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getActionManager",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getActionManager'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Director_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -14298,7 +14298,7 @@ int lua_cocos2dx_Director_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Director:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getInstance'.",&tolua_err); #endif return 0; @@ -14313,71 +14313,71 @@ int lua_register_cocos2dx_Director(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Director"); tolua_cclass(tolua_S,"Director","cc.Director","",nullptr); - + tolua_beginmodule(tolua_S,"Director"); - tolua_function(tolua_S,"pause",lua_cocos2dx_Director_pause); - tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Director_setEventDispatcher); - tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_Director_setContentScaleFactor); - tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_Director_getContentScaleFactor); - tolua_function(tolua_S,"getWinSizeInPixels",lua_cocos2dx_Director_getWinSizeInPixels); - tolua_function(tolua_S,"getDeltaTime",lua_cocos2dx_Director_getDeltaTime); - tolua_function(tolua_S,"setGLDefaultValues",lua_cocos2dx_Director_setGLDefaultValues); - tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Director_setActionManager); - tolua_function(tolua_S,"setAlphaBlending",lua_cocos2dx_Director_setAlphaBlending); - tolua_function(tolua_S,"popToRootScene",lua_cocos2dx_Director_popToRootScene); - tolua_function(tolua_S,"loadMatrix",lua_cocos2dx_Director_loadMatrix); - tolua_function(tolua_S,"getNotificationNode",lua_cocos2dx_Director_getNotificationNode); - tolua_function(tolua_S,"getWinSize",lua_cocos2dx_Director_getWinSize); - tolua_function(tolua_S,"getTextureCache",lua_cocos2dx_Director_getTextureCache); - tolua_function(tolua_S,"isSendCleanupToScene",lua_cocos2dx_Director_isSendCleanupToScene); - tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_Director_getVisibleOrigin); - tolua_function(tolua_S,"mainLoop",lua_cocos2dx_Director_mainLoop); - tolua_function(tolua_S,"setDepthTest",lua_cocos2dx_Director_setDepthTest); - tolua_function(tolua_S,"getFrameRate",lua_cocos2dx_Director_getFrameRate); - tolua_function(tolua_S,"getSecondsPerFrame",lua_cocos2dx_Director_getSecondsPerFrame); - tolua_function(tolua_S,"resetMatrixStack",lua_cocos2dx_Director_resetMatrixStack); - tolua_function(tolua_S,"convertToUI",lua_cocos2dx_Director_convertToUI); - tolua_function(tolua_S,"pushMatrix",lua_cocos2dx_Director_pushMatrix); - tolua_function(tolua_S,"setDefaultValues",lua_cocos2dx_Director_setDefaultValues); - tolua_function(tolua_S,"init",lua_cocos2dx_Director_init); - tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Director_setScheduler); - tolua_function(tolua_S,"startAnimation",lua_cocos2dx_Director_startAnimation); - tolua_function(tolua_S,"getOpenGLView",lua_cocos2dx_Director_getOpenGLView); - tolua_function(tolua_S,"getRunningScene",lua_cocos2dx_Director_getRunningScene); - tolua_function(tolua_S,"setViewport",lua_cocos2dx_Director_setViewport); - tolua_function(tolua_S,"stopAnimation",lua_cocos2dx_Director_stopAnimation); - tolua_function(tolua_S,"popToSceneStackLevel",lua_cocos2dx_Director_popToSceneStackLevel); - tolua_function(tolua_S,"resume",lua_cocos2dx_Director_resume); - tolua_function(tolua_S,"isNextDeltaTimeZero",lua_cocos2dx_Director_isNextDeltaTimeZero); - tolua_function(tolua_S,"endToLua",lua_cocos2dx_Director_end); - tolua_function(tolua_S,"setOpenGLView",lua_cocos2dx_Director_setOpenGLView); - tolua_function(tolua_S,"convertToGL",lua_cocos2dx_Director_convertToGL); - tolua_function(tolua_S,"purgeCachedData",lua_cocos2dx_Director_purgeCachedData); - tolua_function(tolua_S,"getTotalFrames",lua_cocos2dx_Director_getTotalFrames); - tolua_function(tolua_S,"runWithScene",lua_cocos2dx_Director_runWithScene); - tolua_function(tolua_S,"setNotificationNode",lua_cocos2dx_Director_setNotificationNode); - tolua_function(tolua_S,"drawScene",lua_cocos2dx_Director_drawScene); - tolua_function(tolua_S,"getMatrix",lua_cocos2dx_Director_getMatrix); - tolua_function(tolua_S,"popScene",lua_cocos2dx_Director_popScene); - tolua_function(tolua_S,"loadIdentityMatrix",lua_cocos2dx_Director_loadIdentityMatrix); - tolua_function(tolua_S,"isDisplayStats",lua_cocos2dx_Director_isDisplayStats); - tolua_function(tolua_S,"setProjection",lua_cocos2dx_Director_setProjection); - tolua_function(tolua_S,"getConsole",lua_cocos2dx_Director_getConsole); - tolua_function(tolua_S,"multiplyMatrix",lua_cocos2dx_Director_multiplyMatrix); - tolua_function(tolua_S,"getZEye",lua_cocos2dx_Director_getZEye); - tolua_function(tolua_S,"setNextDeltaTimeZero",lua_cocos2dx_Director_setNextDeltaTimeZero); - tolua_function(tolua_S,"popMatrix",lua_cocos2dx_Director_popMatrix); - tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_Director_getVisibleSize); - tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Director_getScheduler); - tolua_function(tolua_S,"pushScene",lua_cocos2dx_Director_pushScene); - tolua_function(tolua_S,"getAnimationInterval",lua_cocos2dx_Director_getAnimationInterval); - tolua_function(tolua_S,"isPaused",lua_cocos2dx_Director_isPaused); - tolua_function(tolua_S,"setDisplayStats",lua_cocos2dx_Director_setDisplayStats); - tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Director_getEventDispatcher); - tolua_function(tolua_S,"replaceScene",lua_cocos2dx_Director_replaceScene); - tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Director_setAnimationInterval); - tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Director_getActionManager); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_Director_getInstance); + tolua_function(tolua_S,"pause",lua_cocos2dx_Director_pause); + tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Director_setEventDispatcher); + tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_Director_setContentScaleFactor); + tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_Director_getContentScaleFactor); + tolua_function(tolua_S,"getWinSizeInPixels",lua_cocos2dx_Director_getWinSizeInPixels); + tolua_function(tolua_S,"getDeltaTime",lua_cocos2dx_Director_getDeltaTime); + tolua_function(tolua_S,"setGLDefaultValues",lua_cocos2dx_Director_setGLDefaultValues); + tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Director_setActionManager); + tolua_function(tolua_S,"setAlphaBlending",lua_cocos2dx_Director_setAlphaBlending); + tolua_function(tolua_S,"popToRootScene",lua_cocos2dx_Director_popToRootScene); + tolua_function(tolua_S,"loadMatrix",lua_cocos2dx_Director_loadMatrix); + tolua_function(tolua_S,"getNotificationNode",lua_cocos2dx_Director_getNotificationNode); + tolua_function(tolua_S,"getWinSize",lua_cocos2dx_Director_getWinSize); + tolua_function(tolua_S,"getTextureCache",lua_cocos2dx_Director_getTextureCache); + tolua_function(tolua_S,"isSendCleanupToScene",lua_cocos2dx_Director_isSendCleanupToScene); + tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_Director_getVisibleOrigin); + tolua_function(tolua_S,"mainLoop",lua_cocos2dx_Director_mainLoop); + tolua_function(tolua_S,"setDepthTest",lua_cocos2dx_Director_setDepthTest); + tolua_function(tolua_S,"getFrameRate",lua_cocos2dx_Director_getFrameRate); + tolua_function(tolua_S,"getSecondsPerFrame",lua_cocos2dx_Director_getSecondsPerFrame); + tolua_function(tolua_S,"resetMatrixStack",lua_cocos2dx_Director_resetMatrixStack); + tolua_function(tolua_S,"convertToUI",lua_cocos2dx_Director_convertToUI); + tolua_function(tolua_S,"pushMatrix",lua_cocos2dx_Director_pushMatrix); + tolua_function(tolua_S,"setDefaultValues",lua_cocos2dx_Director_setDefaultValues); + tolua_function(tolua_S,"init",lua_cocos2dx_Director_init); + tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Director_setScheduler); + tolua_function(tolua_S,"startAnimation",lua_cocos2dx_Director_startAnimation); + tolua_function(tolua_S,"getOpenGLView",lua_cocos2dx_Director_getOpenGLView); + tolua_function(tolua_S,"getRunningScene",lua_cocos2dx_Director_getRunningScene); + tolua_function(tolua_S,"setViewport",lua_cocos2dx_Director_setViewport); + tolua_function(tolua_S,"stopAnimation",lua_cocos2dx_Director_stopAnimation); + tolua_function(tolua_S,"popToSceneStackLevel",lua_cocos2dx_Director_popToSceneStackLevel); + tolua_function(tolua_S,"resume",lua_cocos2dx_Director_resume); + tolua_function(tolua_S,"isNextDeltaTimeZero",lua_cocos2dx_Director_isNextDeltaTimeZero); + tolua_function(tolua_S,"endToLua",lua_cocos2dx_Director_end); + tolua_function(tolua_S,"setOpenGLView",lua_cocos2dx_Director_setOpenGLView); + tolua_function(tolua_S,"convertToGL",lua_cocos2dx_Director_convertToGL); + tolua_function(tolua_S,"purgeCachedData",lua_cocos2dx_Director_purgeCachedData); + tolua_function(tolua_S,"getTotalFrames",lua_cocos2dx_Director_getTotalFrames); + tolua_function(tolua_S,"runWithScene",lua_cocos2dx_Director_runWithScene); + tolua_function(tolua_S,"setNotificationNode",lua_cocos2dx_Director_setNotificationNode); + tolua_function(tolua_S,"drawScene",lua_cocos2dx_Director_drawScene); + tolua_function(tolua_S,"getMatrix",lua_cocos2dx_Director_getMatrix); + tolua_function(tolua_S,"popScene",lua_cocos2dx_Director_popScene); + tolua_function(tolua_S,"loadIdentityMatrix",lua_cocos2dx_Director_loadIdentityMatrix); + tolua_function(tolua_S,"isDisplayStats",lua_cocos2dx_Director_isDisplayStats); + tolua_function(tolua_S,"setProjection",lua_cocos2dx_Director_setProjection); + tolua_function(tolua_S,"getConsole",lua_cocos2dx_Director_getConsole); + tolua_function(tolua_S,"multiplyMatrix",lua_cocos2dx_Director_multiplyMatrix); + tolua_function(tolua_S,"getZEye",lua_cocos2dx_Director_getZEye); + tolua_function(tolua_S,"setNextDeltaTimeZero",lua_cocos2dx_Director_setNextDeltaTimeZero); + tolua_function(tolua_S,"popMatrix",lua_cocos2dx_Director_popMatrix); + tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_Director_getVisibleSize); + tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Director_getScheduler); + tolua_function(tolua_S,"pushScene",lua_cocos2dx_Director_pushScene); + tolua_function(tolua_S,"getAnimationInterval",lua_cocos2dx_Director_getAnimationInterval); + tolua_function(tolua_S,"isPaused",lua_cocos2dx_Director_isPaused); + tolua_function(tolua_S,"setDisplayStats",lua_cocos2dx_Director_setDisplayStats); + tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Director_getEventDispatcher); + tolua_function(tolua_S,"replaceScene",lua_cocos2dx_Director_replaceScene); + tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Director_setAnimationInterval); + tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Director_getActionManager); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_Director_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Director).name(); g_luaType[typeName] = "cc.Director"; @@ -14390,28 +14390,28 @@ int lua_cocos2dx_Timer_getInterval(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_getInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14424,12 +14424,12 @@ int lua_cocos2dx_Timer_getInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:getInterval",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_getInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) @@ -14437,37 +14437,37 @@ int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_setupTimerWithInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; unsigned int arg1; double arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:setupTimerWithInterval"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Timer:setupTimerWithInterval"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Timer:setupTimerWithInterval"); if(!ok) { @@ -14479,12 +14479,12 @@ int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:setupTimerWithInterval",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_setupTimerWithInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) @@ -14492,31 +14492,31 @@ int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_setInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:setInterval"); if(!ok) { @@ -14528,12 +14528,12 @@ int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:setInterval",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_setInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_update(lua_State* tolua_S) @@ -14541,31 +14541,31 @@ int lua_cocos2dx_Timer_update(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:update"); if(!ok) { @@ -14577,12 +14577,12 @@ int lua_cocos2dx_Timer_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) @@ -14590,28 +14590,28 @@ int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_trigger'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14623,12 +14623,12 @@ int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:trigger",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_trigger'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) @@ -14636,28 +14636,28 @@ int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_cancel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14669,12 +14669,12 @@ int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:cancel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_cancel'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Timer_finalize(lua_State* tolua_S) @@ -14687,14 +14687,14 @@ int lua_register_cocos2dx_Timer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Timer"); tolua_cclass(tolua_S,"Timer","cc.Timer","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Timer"); - tolua_function(tolua_S,"getInterval",lua_cocos2dx_Timer_getInterval); - tolua_function(tolua_S,"setupTimerWithInterval",lua_cocos2dx_Timer_setupTimerWithInterval); - tolua_function(tolua_S,"setInterval",lua_cocos2dx_Timer_setInterval); - tolua_function(tolua_S,"update",lua_cocos2dx_Timer_update); - tolua_function(tolua_S,"trigger",lua_cocos2dx_Timer_trigger); - tolua_function(tolua_S,"cancel",lua_cocos2dx_Timer_cancel); + tolua_function(tolua_S,"getInterval",lua_cocos2dx_Timer_getInterval); + tolua_function(tolua_S,"setupTimerWithInterval",lua_cocos2dx_Timer_setupTimerWithInterval); + tolua_function(tolua_S,"setInterval",lua_cocos2dx_Timer_setInterval); + tolua_function(tolua_S,"update",lua_cocos2dx_Timer_update); + tolua_function(tolua_S,"trigger",lua_cocos2dx_Timer_trigger); + tolua_function(tolua_S,"cancel",lua_cocos2dx_Timer_cancel); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Timer).name(); g_luaType[typeName] = "cc.Timer"; @@ -14707,31 +14707,31 @@ int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scheduler_setTimeScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Scheduler:setTimeScale"); if(!ok) { @@ -14743,12 +14743,12 @@ int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:setTimeScale",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_setTimeScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) @@ -14756,28 +14756,28 @@ int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scheduler_getTimeScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14790,12 +14790,12 @@ int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:getTimeScale",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_getTimeScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) @@ -14803,15 +14803,15 @@ int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -14827,11 +14827,11 @@ int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:Scheduler",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_constructor'.",&tolua_err); #endif - + return 0; } @@ -14845,11 +14845,11 @@ int lua_register_cocos2dx_Scheduler(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scheduler"); tolua_cclass(tolua_S,"Scheduler","cc.Scheduler","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Scheduler"); - tolua_function(tolua_S,"new",lua_cocos2dx_Scheduler_constructor); - tolua_function(tolua_S,"setTimeScale",lua_cocos2dx_Scheduler_setTimeScale); - tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_Scheduler_getTimeScale); + tolua_function(tolua_S,"new",lua_cocos2dx_Scheduler_constructor); + tolua_function(tolua_S,"setTimeScale",lua_cocos2dx_Scheduler_setTimeScale); + tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_Scheduler_getTimeScale); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Scheduler).name(); g_luaType[typeName] = "cc.Scheduler"; @@ -14862,31 +14862,31 @@ int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_fullPathForFilename'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:fullPathForFilename"); if(!ok) { @@ -14899,12 +14899,12 @@ int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:fullPathForFilename",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_fullPathForFilename'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) @@ -14912,31 +14912,31 @@ int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getStringFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getStringFromFile"); if(!ok) { @@ -14949,12 +14949,12 @@ int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getStringFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getStringFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) @@ -14962,31 +14962,31 @@ int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:setFilenameLookupDictionary"); if(!ok) { @@ -14998,12 +14998,12 @@ int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setFilenameLookupDictionary",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) @@ -15011,31 +15011,31 @@ int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_removeFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:removeFile"); if(!ok) { @@ -15048,12 +15048,12 @@ int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:removeFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_removeFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) @@ -15061,31 +15061,31 @@ int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isAbsolutePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isAbsolutePath"); if(!ok) { @@ -15098,12 +15098,12 @@ int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isAbsolutePath",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isAbsolutePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) @@ -15111,37 +15111,37 @@ int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_renameFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { std::string arg0; std::string arg1; std::string arg2; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:renameFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:renameFile"); - + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.FileUtils:renameFile"); if(!ok) { @@ -15154,12 +15154,12 @@ int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:renameFile",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_renameFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua_S) @@ -15167,31 +15167,31 @@ int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:loadFilenameLookupDictionaryFromFile"); if(!ok) { @@ -15203,12 +15203,12 @@ int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:loadFilenameLookupDictionaryFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) @@ -15216,28 +15216,28 @@ int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isPopupNotify'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -15250,12 +15250,12 @@ int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isPopupNotify",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isPopupNotify'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) @@ -15263,31 +15263,31 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getValueVectorFromFile"); if(!ok) { @@ -15300,12 +15300,12 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueVectorFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) @@ -15313,28 +15313,28 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSearchPaths'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -15347,12 +15347,12 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSearchPaths",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSearchPaths'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) @@ -15360,34 +15360,34 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_writeToFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeToFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:writeToFile"); if(!ok) { @@ -15400,12 +15400,12 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:writeToFile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_writeToFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) @@ -15413,31 +15413,31 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getValueMapFromFile"); if(!ok) { @@ -15450,12 +15450,12 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueMapFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) @@ -15463,34 +15463,34 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueMapFromData'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; int arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.FileUtils:getValueMapFromData"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.FileUtils:getValueMapFromData"); if(!ok) { @@ -15503,12 +15503,12 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueMapFromData",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueMapFromData'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) @@ -15516,31 +15516,31 @@ int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_removeDirectory'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:removeDirectory"); if(!ok) { @@ -15553,12 +15553,12 @@ int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:removeDirectory",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_removeDirectory'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) @@ -15566,31 +15566,31 @@ int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setSearchPaths'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::vector arg0; - + ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "cc.FileUtils:setSearchPaths"); if(!ok) { @@ -15602,12 +15602,12 @@ int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setSearchPaths",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setSearchPaths'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) @@ -15615,31 +15615,31 @@ int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getFileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getFileSize"); if(!ok) { @@ -15652,12 +15652,12 @@ int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getFileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getFileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) @@ -15665,31 +15665,31 @@ int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::vector arg0; - + ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "cc.FileUtils:setSearchResolutionsOrder"); if(!ok) { @@ -15701,12 +15701,12 @@ int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setSearchResolutionsOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) @@ -15714,31 +15714,31 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchResolutionsOrder"); if(!ok) { @@ -15748,13 +15748,13 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) cobj->addSearchResolutionsOrder(arg0); return 0; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchResolutionsOrder"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.FileUtils:addSearchResolutionsOrder"); if(!ok) { @@ -15766,12 +15766,12 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:addSearchResolutionsOrder",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) @@ -15779,31 +15779,31 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_addSearchPath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchPath"); if(!ok) { @@ -15813,13 +15813,13 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) cobj->addSearchPath(arg0); return 0; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchPath"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.FileUtils:addSearchPath"); if(!ok) { @@ -15831,12 +15831,12 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:addSearchPath",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_addSearchPath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) @@ -15844,31 +15844,31 @@ int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isFileExist'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isFileExist"); if(!ok) { @@ -15881,12 +15881,12 @@ int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isFileExist",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isFileExist'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) @@ -15894,28 +15894,28 @@ int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -15927,12 +15927,12 @@ int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:purgeCachedEntries",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) @@ -15940,34 +15940,34 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::string arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:fullPathFromRelativeFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:fullPathFromRelativeFile"); if(!ok) { @@ -15980,12 +15980,12 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:fullPathFromRelativeFile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) @@ -15993,31 +15993,31 @@ int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setPopupNotify'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FileUtils:setPopupNotify"); if(!ok) { @@ -16029,12 +16029,12 @@ int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setPopupNotify",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setPopupNotify'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) @@ -16042,31 +16042,31 @@ int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isDirectoryExist'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isDirectoryExist"); if(!ok) { @@ -16079,12 +16079,12 @@ int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isDirectoryExist",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isDirectoryExist'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) @@ -16092,28 +16092,28 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -16126,12 +16126,12 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSearchResolutionsOrder",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) @@ -16139,31 +16139,31 @@ int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_createDirectory'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:createDirectory"); if(!ok) { @@ -16176,12 +16176,12 @@ int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:createDirectory",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_createDirectory'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) @@ -16189,28 +16189,28 @@ int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getWritablePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -16223,29 +16223,29 @@ int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getWritablePath",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getWritablePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FileUtils_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -16259,7 +16259,7 @@ int lua_cocos2dx_FileUtils_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_destroyInstance'.",&tolua_err); #endif return 0; @@ -16268,17 +16268,17 @@ int lua_cocos2dx_FileUtils_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -16293,7 +16293,7 @@ int lua_cocos2dx_FileUtils_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getInstance'.",&tolua_err); #endif return 0; @@ -16308,37 +16308,37 @@ int lua_register_cocos2dx_FileUtils(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FileUtils"); tolua_cclass(tolua_S,"FileUtils","cc.FileUtils","",nullptr); - + tolua_beginmodule(tolua_S,"FileUtils"); - tolua_function(tolua_S,"fullPathForFilename",lua_cocos2dx_FileUtils_fullPathForFilename); - tolua_function(tolua_S,"getStringFromFile",lua_cocos2dx_FileUtils_getStringFromFile); - tolua_function(tolua_S,"setFilenameLookupDictionary",lua_cocos2dx_FileUtils_setFilenameLookupDictionary); - tolua_function(tolua_S,"removeFile",lua_cocos2dx_FileUtils_removeFile); - tolua_function(tolua_S,"isAbsolutePath",lua_cocos2dx_FileUtils_isAbsolutePath); - tolua_function(tolua_S,"renameFile",lua_cocos2dx_FileUtils_renameFile); - tolua_function(tolua_S,"loadFilenameLookup",lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile); - tolua_function(tolua_S,"isPopupNotify",lua_cocos2dx_FileUtils_isPopupNotify); - tolua_function(tolua_S,"getValueVectorFromFile",lua_cocos2dx_FileUtils_getValueVectorFromFile); - tolua_function(tolua_S,"getSearchPaths",lua_cocos2dx_FileUtils_getSearchPaths); - tolua_function(tolua_S,"writeToFile",lua_cocos2dx_FileUtils_writeToFile); - tolua_function(tolua_S,"getValueMapFromFile",lua_cocos2dx_FileUtils_getValueMapFromFile); - tolua_function(tolua_S,"getValueMapFromData",lua_cocos2dx_FileUtils_getValueMapFromData); - tolua_function(tolua_S,"removeDirectory",lua_cocos2dx_FileUtils_removeDirectory); - tolua_function(tolua_S,"setSearchPaths",lua_cocos2dx_FileUtils_setSearchPaths); - tolua_function(tolua_S,"getFileSize",lua_cocos2dx_FileUtils_getFileSize); - tolua_function(tolua_S,"setSearchResolutionsOrder",lua_cocos2dx_FileUtils_setSearchResolutionsOrder); - tolua_function(tolua_S,"addSearchResolutionsOrder",lua_cocos2dx_FileUtils_addSearchResolutionsOrder); - tolua_function(tolua_S,"addSearchPath",lua_cocos2dx_FileUtils_addSearchPath); - tolua_function(tolua_S,"isFileExist",lua_cocos2dx_FileUtils_isFileExist); - tolua_function(tolua_S,"purgeCachedEntries",lua_cocos2dx_FileUtils_purgeCachedEntries); - tolua_function(tolua_S,"fullPathFromRelativeFile",lua_cocos2dx_FileUtils_fullPathFromRelativeFile); - tolua_function(tolua_S,"setPopupNotify",lua_cocos2dx_FileUtils_setPopupNotify); - tolua_function(tolua_S,"isDirectoryExist",lua_cocos2dx_FileUtils_isDirectoryExist); - tolua_function(tolua_S,"getSearchResolutionsOrder",lua_cocos2dx_FileUtils_getSearchResolutionsOrder); - tolua_function(tolua_S,"createDirectory",lua_cocos2dx_FileUtils_createDirectory); - tolua_function(tolua_S,"getWritablePath",lua_cocos2dx_FileUtils_getWritablePath); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_FileUtils_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_FileUtils_getInstance); + tolua_function(tolua_S,"fullPathForFilename",lua_cocos2dx_FileUtils_fullPathForFilename); + tolua_function(tolua_S,"getStringFromFile",lua_cocos2dx_FileUtils_getStringFromFile); + tolua_function(tolua_S,"setFilenameLookupDictionary",lua_cocos2dx_FileUtils_setFilenameLookupDictionary); + tolua_function(tolua_S,"removeFile",lua_cocos2dx_FileUtils_removeFile); + tolua_function(tolua_S,"isAbsolutePath",lua_cocos2dx_FileUtils_isAbsolutePath); + tolua_function(tolua_S,"renameFile",lua_cocos2dx_FileUtils_renameFile); + tolua_function(tolua_S,"loadFilenameLookup",lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile); + tolua_function(tolua_S,"isPopupNotify",lua_cocos2dx_FileUtils_isPopupNotify); + tolua_function(tolua_S,"getValueVectorFromFile",lua_cocos2dx_FileUtils_getValueVectorFromFile); + tolua_function(tolua_S,"getSearchPaths",lua_cocos2dx_FileUtils_getSearchPaths); + tolua_function(tolua_S,"writeToFile",lua_cocos2dx_FileUtils_writeToFile); + tolua_function(tolua_S,"getValueMapFromFile",lua_cocos2dx_FileUtils_getValueMapFromFile); + tolua_function(tolua_S,"getValueMapFromData",lua_cocos2dx_FileUtils_getValueMapFromData); + tolua_function(tolua_S,"removeDirectory",lua_cocos2dx_FileUtils_removeDirectory); + tolua_function(tolua_S,"setSearchPaths",lua_cocos2dx_FileUtils_setSearchPaths); + tolua_function(tolua_S,"getFileSize",lua_cocos2dx_FileUtils_getFileSize); + tolua_function(tolua_S,"setSearchResolutionsOrder",lua_cocos2dx_FileUtils_setSearchResolutionsOrder); + tolua_function(tolua_S,"addSearchResolutionsOrder",lua_cocos2dx_FileUtils_addSearchResolutionsOrder); + tolua_function(tolua_S,"addSearchPath",lua_cocos2dx_FileUtils_addSearchPath); + tolua_function(tolua_S,"isFileExist",lua_cocos2dx_FileUtils_isFileExist); + tolua_function(tolua_S,"purgeCachedEntries",lua_cocos2dx_FileUtils_purgeCachedEntries); + tolua_function(tolua_S,"fullPathFromRelativeFile",lua_cocos2dx_FileUtils_fullPathFromRelativeFile); + tolua_function(tolua_S,"setPopupNotify",lua_cocos2dx_FileUtils_setPopupNotify); + tolua_function(tolua_S,"isDirectoryExist",lua_cocos2dx_FileUtils_isDirectoryExist); + tolua_function(tolua_S,"getSearchResolutionsOrder",lua_cocos2dx_FileUtils_getSearchResolutionsOrder); + tolua_function(tolua_S,"createDirectory",lua_cocos2dx_FileUtils_createDirectory); + tolua_function(tolua_S,"getWritablePath",lua_cocos2dx_FileUtils_getWritablePath); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_FileUtils_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_FileUtils_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FileUtils).name(); g_luaType[typeName] = "cc.FileUtils"; @@ -16351,34 +16351,34 @@ int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setIntegerForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; int arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setIntegerForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.UserDefault:setIntegerForKey"); if(!ok) { @@ -16390,12 +16390,12 @@ int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setIntegerForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setIntegerForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) @@ -16406,7 +16406,7 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16423,11 +16423,11 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:getFloatForKey"); - + if (!ok) { break; } double ret = cobj->getFloatForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16439,7 +16439,7 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double ret = cobj->getFloatForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16449,12 +16449,12 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getFloatForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getFloatForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) @@ -16465,7 +16465,7 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16482,11 +16482,11 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.UserDefault:getBoolForKey"); - + if (!ok) { break; } bool ret = cobj->getBoolForKey(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -16498,7 +16498,7 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } bool ret = cobj->getBoolForKey(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -16508,12 +16508,12 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getBoolForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getBoolForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) @@ -16521,34 +16521,34 @@ int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setDoubleForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; double arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setDoubleForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:setDoubleForKey"); if(!ok) { @@ -16560,12 +16560,12 @@ int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setDoubleForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setDoubleForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) @@ -16573,34 +16573,34 @@ int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setFloatForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; double arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setFloatForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:setFloatForKey"); if(!ok) { @@ -16612,12 +16612,12 @@ int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setFloatForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setFloatForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) @@ -16628,7 +16628,7 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16645,11 +16645,11 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.UserDefault:getStringForKey"); - + if (!ok) { break; } std::string ret = cobj->getStringForKey(arg0, arg1); tolua_pushcppstring(tolua_S,ret); @@ -16661,7 +16661,7 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } std::string ret = cobj->getStringForKey(arg0); tolua_pushcppstring(tolua_S,ret); @@ -16671,12 +16671,12 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getStringForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getStringForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) @@ -16684,34 +16684,34 @@ int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setStringForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; std::string arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setStringForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.UserDefault:setStringForKey"); if(!ok) { @@ -16723,12 +16723,12 @@ int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setStringForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setStringForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) @@ -16736,28 +16736,28 @@ int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_flush'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -16769,12 +16769,12 @@ int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:flush",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_flush'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) @@ -16785,7 +16785,7 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16802,11 +16802,11 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.UserDefault:getIntegerForKey"); - + if (!ok) { break; } int ret = cobj->getIntegerForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16818,7 +16818,7 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } int ret = cobj->getIntegerForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16828,12 +16828,12 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getIntegerForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getIntegerForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) @@ -16844,7 +16844,7 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif @@ -16861,11 +16861,11 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:getDoubleForKey"); - + if (!ok) { break; } double ret = cobj->getDoubleForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16877,7 +16877,7 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); - + if (!ok) { break; } double ret = cobj->getDoubleForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); @@ -16887,12 +16887,12 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getDoubleForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getDoubleForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) @@ -16900,34 +16900,34 @@ int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setBoolForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; bool arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setBoolForKey"); arg0 = arg0_tmp.c_str(); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.UserDefault:setBoolForKey"); if(!ok) { @@ -16939,29 +16939,29 @@ int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setBoolForKey",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setBoolForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_UserDefault_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -16975,7 +16975,7 @@ int lua_cocos2dx_UserDefault_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_destroyInstance'.",&tolua_err); #endif return 0; @@ -16984,17 +16984,17 @@ int lua_cocos2dx_UserDefault_getXMLFilePath(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -17009,7 +17009,7 @@ int lua_cocos2dx_UserDefault_getXMLFilePath(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:getXMLFilePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getXMLFilePath'.",&tolua_err); #endif return 0; @@ -17018,17 +17018,17 @@ int lua_cocos2dx_UserDefault_isXMLFileExist(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -17043,7 +17043,7 @@ int lua_cocos2dx_UserDefault_isXMLFileExist(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:isXMLFileExist",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_isXMLFileExist'.",&tolua_err); #endif return 0; @@ -17058,22 +17058,22 @@ int lua_register_cocos2dx_UserDefault(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.UserDefault"); tolua_cclass(tolua_S,"UserDefault","cc.UserDefault","",nullptr); - + tolua_beginmodule(tolua_S,"UserDefault"); - tolua_function(tolua_S,"setIntegerForKey",lua_cocos2dx_UserDefault_setIntegerForKey); - tolua_function(tolua_S,"getFloatForKey",lua_cocos2dx_UserDefault_getFloatForKey); - tolua_function(tolua_S,"getBoolForKey",lua_cocos2dx_UserDefault_getBoolForKey); - tolua_function(tolua_S,"setDoubleForKey",lua_cocos2dx_UserDefault_setDoubleForKey); - tolua_function(tolua_S,"setFloatForKey",lua_cocos2dx_UserDefault_setFloatForKey); - tolua_function(tolua_S,"getStringForKey",lua_cocos2dx_UserDefault_getStringForKey); - tolua_function(tolua_S,"setStringForKey",lua_cocos2dx_UserDefault_setStringForKey); - tolua_function(tolua_S,"flush",lua_cocos2dx_UserDefault_flush); - tolua_function(tolua_S,"getIntegerForKey",lua_cocos2dx_UserDefault_getIntegerForKey); - tolua_function(tolua_S,"getDoubleForKey",lua_cocos2dx_UserDefault_getDoubleForKey); - tolua_function(tolua_S,"setBoolForKey",lua_cocos2dx_UserDefault_setBoolForKey); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_UserDefault_destroyInstance); - tolua_function(tolua_S,"getXMLFilePath", lua_cocos2dx_UserDefault_getXMLFilePath); - tolua_function(tolua_S,"isXMLFileExist", lua_cocos2dx_UserDefault_isXMLFileExist); + tolua_function(tolua_S,"setIntegerForKey",lua_cocos2dx_UserDefault_setIntegerForKey); + tolua_function(tolua_S,"getFloatForKey",lua_cocos2dx_UserDefault_getFloatForKey); + tolua_function(tolua_S,"getBoolForKey",lua_cocos2dx_UserDefault_getBoolForKey); + tolua_function(tolua_S,"setDoubleForKey",lua_cocos2dx_UserDefault_setDoubleForKey); + tolua_function(tolua_S,"setFloatForKey",lua_cocos2dx_UserDefault_setFloatForKey); + tolua_function(tolua_S,"getStringForKey",lua_cocos2dx_UserDefault_getStringForKey); + tolua_function(tolua_S,"setStringForKey",lua_cocos2dx_UserDefault_setStringForKey); + tolua_function(tolua_S,"flush",lua_cocos2dx_UserDefault_flush); + tolua_function(tolua_S,"getIntegerForKey",lua_cocos2dx_UserDefault_getIntegerForKey); + tolua_function(tolua_S,"getDoubleForKey",lua_cocos2dx_UserDefault_getDoubleForKey); + tolua_function(tolua_S,"setBoolForKey",lua_cocos2dx_UserDefault_setBoolForKey); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_UserDefault_destroyInstance); + tolua_function(tolua_S,"getXMLFilePath", lua_cocos2dx_UserDefault_getXMLFilePath); + tolua_function(tolua_S,"isXMLFileExist", lua_cocos2dx_UserDefault_isXMLFileExist); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::UserDefault).name(); g_luaType[typeName] = "cc.UserDefault"; @@ -17086,31 +17086,31 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventListener:setEnabled"); if(!ok) { @@ -17122,12 +17122,12 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) @@ -17135,28 +17135,28 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17169,12 +17169,12 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) @@ -17182,28 +17182,28 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17216,12 +17216,12 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) @@ -17229,28 +17229,28 @@ int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_checkAvailable'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17263,12 +17263,12 @@ int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:checkAvailable",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_checkAvailable'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EventListener_finalize(lua_State* tolua_S) @@ -17281,12 +17281,12 @@ int lua_register_cocos2dx_EventListener(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListener"); tolua_cclass(tolua_S,"EventListener","cc.EventListener","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"EventListener"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventListener_setEnabled); - tolua_function(tolua_S,"clone",lua_cocos2dx_EventListener_clone); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventListener_isEnabled); - tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventListener_setEnabled); + tolua_function(tolua_S,"clone",lua_cocos2dx_EventListener_clone); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventListener_isEnabled); + tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListener).name(); g_luaType[typeName] = "cc.EventListener"; @@ -17299,31 +17299,31 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -17333,13 +17333,13 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S cobj->pauseEventListenersForTarget(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:pauseEventListenersForTarget"); if(!ok) { @@ -17351,12 +17351,12 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:pauseEventListenersForTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State* tolua_S) @@ -17364,34 +17364,34 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventListener* arg0; cocos2d::Node* arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -17403,12 +17403,12 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addEventListenerWithSceneGraphPriority",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) @@ -17416,31 +17416,31 @@ int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventDispatcher:setEnabled"); if(!ok) { @@ -17452,12 +17452,12 @@ int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tolua_S) @@ -17465,34 +17465,34 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventListener* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:addEventListenerWithFixedPriority"); if(!ok) { @@ -17504,12 +17504,12 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addEventListenerWithFixedPriority",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) @@ -17517,31 +17517,31 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListener'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventListener* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); if(!ok) { @@ -17553,12 +17553,12 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListener",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListener'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_S) @@ -17566,31 +17566,31 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -17600,13 +17600,13 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ cobj->resumeEventListenersForTarget(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:resumeEventListenersForTarget"); if(!ok) { @@ -17618,12 +17618,12 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:resumeEventListenersForTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_S) @@ -17631,31 +17631,31 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -17665,13 +17665,13 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ cobj->removeEventListenersForTarget(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:removeEventListenersForTarget"); if(!ok) { @@ -17683,12 +17683,12 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListenersForTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) @@ -17696,34 +17696,34 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_setPriority'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::EventListener* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:setPriority"); if(!ok) { @@ -17735,12 +17735,12 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:setPriority",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_setPriority'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) @@ -17748,39 +17748,39 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::function arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:addCustomEventListener"); - + do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); @@ -17792,12 +17792,12 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addCustomEventListener",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) @@ -17805,31 +17805,31 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Event* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Event",&arg0); if(!ok) { @@ -17841,12 +17841,12 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:dispatchEvent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) @@ -17854,28 +17854,28 @@ int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17887,12 +17887,12 @@ int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeAllEventListeners",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) @@ -17900,31 +17900,31 @@ int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:removeCustomEventListeners"); if(!ok) { @@ -17936,12 +17936,12 @@ int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeCustomEventListeners",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) @@ -17949,28 +17949,28 @@ int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -17983,12 +17983,12 @@ int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) @@ -17996,31 +17996,31 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventListener::Type arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventDispatcher:removeEventListenersForType"); if(!ok) { @@ -18032,12 +18032,12 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListenersForType",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) @@ -18045,15 +18045,15 @@ int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18069,11 +18069,11 @@ int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:EventDispatcher",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_constructor'.",&tolua_err); #endif - + return 0; } @@ -18087,23 +18087,23 @@ int lua_register_cocos2dx_EventDispatcher(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventDispatcher"); tolua_cclass(tolua_S,"EventDispatcher","cc.EventDispatcher","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"EventDispatcher"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventDispatcher_constructor); - tolua_function(tolua_S,"pauseEventListenersForTarget",lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget); - tolua_function(tolua_S,"addEventListenerWithSceneGraphPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventDispatcher_setEnabled); - tolua_function(tolua_S,"addEventListenerWithFixedPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority); - tolua_function(tolua_S,"removeEventListener",lua_cocos2dx_EventDispatcher_removeEventListener); - tolua_function(tolua_S,"resumeEventListenersForTarget",lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget); - tolua_function(tolua_S,"removeEventListenersForTarget",lua_cocos2dx_EventDispatcher_removeEventListenersForTarget); - tolua_function(tolua_S,"setPriority",lua_cocos2dx_EventDispatcher_setPriority); - tolua_function(tolua_S,"addCustomEventListener",lua_cocos2dx_EventDispatcher_addCustomEventListener); - tolua_function(tolua_S,"dispatchEvent",lua_cocos2dx_EventDispatcher_dispatchEvent); - tolua_function(tolua_S,"removeAllEventListeners",lua_cocos2dx_EventDispatcher_removeAllEventListeners); - tolua_function(tolua_S,"removeCustomEventListeners",lua_cocos2dx_EventDispatcher_removeCustomEventListeners); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventDispatcher_isEnabled); - tolua_function(tolua_S,"removeEventListenersForType",lua_cocos2dx_EventDispatcher_removeEventListenersForType); + tolua_function(tolua_S,"new",lua_cocos2dx_EventDispatcher_constructor); + tolua_function(tolua_S,"pauseEventListenersForTarget",lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget); + tolua_function(tolua_S,"addEventListenerWithSceneGraphPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventDispatcher_setEnabled); + tolua_function(tolua_S,"addEventListenerWithFixedPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority); + tolua_function(tolua_S,"removeEventListener",lua_cocos2dx_EventDispatcher_removeEventListener); + tolua_function(tolua_S,"resumeEventListenersForTarget",lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget); + tolua_function(tolua_S,"removeEventListenersForTarget",lua_cocos2dx_EventDispatcher_removeEventListenersForTarget); + tolua_function(tolua_S,"setPriority",lua_cocos2dx_EventDispatcher_setPriority); + tolua_function(tolua_S,"addCustomEventListener",lua_cocos2dx_EventDispatcher_addCustomEventListener); + tolua_function(tolua_S,"dispatchEvent",lua_cocos2dx_EventDispatcher_dispatchEvent); + tolua_function(tolua_S,"removeAllEventListeners",lua_cocos2dx_EventDispatcher_removeAllEventListeners); + tolua_function(tolua_S,"removeCustomEventListeners",lua_cocos2dx_EventDispatcher_removeCustomEventListeners); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventDispatcher_isEnabled); + tolua_function(tolua_S,"removeEventListenersForType",lua_cocos2dx_EventDispatcher_removeEventListenersForType); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventDispatcher).name(); g_luaType[typeName] = "cc.EventDispatcher"; @@ -18116,28 +18116,28 @@ int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18150,12 +18150,12 @@ int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:isSwallowTouches",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S) @@ -18163,31 +18163,31 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventListenerTouchOneByOne:setSwallowTouches"); if(!ok) { @@ -18199,12 +18199,12 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:setSwallowTouches",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EventListenerTouchOneByOne_finalize(lua_State* tolua_S) @@ -18217,10 +18217,10 @@ int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchOneByOne"); tolua_cclass(tolua_S,"EventListenerTouchOneByOne","cc.EventListenerTouchOneByOne","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerTouchOneByOne"); - tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); - tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); + tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); + tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchOneByOne).name(); g_luaType[typeName] = "cc.EventListenerTouchOneByOne"; @@ -18238,7 +18238,7 @@ int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchAllAtOnce"); tolua_cclass(tolua_S,"EventListenerTouchAllAtOnce","cc.EventListenerTouchAllAtOnce","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerTouchAllAtOnce"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchAllAtOnce).name(); @@ -18257,7 +18257,7 @@ int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerKeyboard"); tolua_cclass(tolua_S,"EventListenerKeyboard","cc.EventListenerKeyboard","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerKeyboard"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerKeyboard).name(); @@ -18271,28 +18271,28 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18305,12 +18305,12 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getPreviousLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) @@ -18318,28 +18318,28 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18352,12 +18352,12 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) @@ -18365,28 +18365,28 @@ int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getMouseButton'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18399,12 +18399,12 @@ int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getMouseButton",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getMouseButton'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) @@ -18412,28 +18412,28 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getPreviousLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18446,12 +18446,12 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getPreviousLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getPreviousLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) @@ -18459,28 +18459,28 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getDelta'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18493,12 +18493,12 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getDelta",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getDelta'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) @@ -18506,34 +18506,34 @@ int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setScrollData'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EventMouse:setScrollData"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EventMouse:setScrollData"); if(!ok) { @@ -18545,12 +18545,12 @@ int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setScrollData",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setScrollData'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) @@ -18558,28 +18558,28 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getStartLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18592,12 +18592,12 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getStartLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getStartLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) @@ -18605,28 +18605,28 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getStartLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18639,12 +18639,12 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getStartLocation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getStartLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) @@ -18652,31 +18652,31 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setMouseButton'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:setMouseButton"); if(!ok) { @@ -18688,12 +18688,12 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setMouseButton",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setMouseButton'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) @@ -18701,28 +18701,28 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getLocationInView'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18735,12 +18735,12 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getLocationInView",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getLocationInView'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) @@ -18748,28 +18748,28 @@ int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getScrollY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18782,12 +18782,12 @@ int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getScrollY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getScrollY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) @@ -18795,28 +18795,28 @@ int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getScrollX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18829,12 +18829,12 @@ int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getScrollX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getScrollX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) @@ -18842,28 +18842,28 @@ int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getCursorX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18876,12 +18876,12 @@ int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getCursorX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getCursorX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) @@ -18889,28 +18889,28 @@ int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getCursorY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -18923,12 +18923,12 @@ int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getCursorY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getCursorY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) @@ -18936,34 +18936,34 @@ int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setCursorPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EventMouse:setCursorPosition"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EventMouse:setCursorPosition"); if(!ok) { @@ -18975,12 +18975,12 @@ int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setCursorPosition",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setCursorPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) @@ -18988,18 +18988,18 @@ int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventMouse::MouseEventType arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:EventMouse"); if(!ok) { @@ -19015,11 +19015,11 @@ int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:EventMouse",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_constructor'.",&tolua_err); #endif - + return 0; } @@ -19033,24 +19033,24 @@ int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventMouse"); tolua_cclass(tolua_S,"EventMouse","cc.EventMouse","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventMouse"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventMouse_constructor); - tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_EventMouse_getPreviousLocationInView); - tolua_function(tolua_S,"getLocation",lua_cocos2dx_EventMouse_getLocation); - tolua_function(tolua_S,"getMouseButton",lua_cocos2dx_EventMouse_getMouseButton); - tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_EventMouse_getPreviousLocation); - tolua_function(tolua_S,"getDelta",lua_cocos2dx_EventMouse_getDelta); - tolua_function(tolua_S,"setScrollData",lua_cocos2dx_EventMouse_setScrollData); - tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_EventMouse_getStartLocationInView); - tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_EventMouse_getStartLocation); - tolua_function(tolua_S,"setMouseButton",lua_cocos2dx_EventMouse_setMouseButton); - tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_EventMouse_getLocationInView); - tolua_function(tolua_S,"getScrollY",lua_cocos2dx_EventMouse_getScrollY); - tolua_function(tolua_S,"getScrollX",lua_cocos2dx_EventMouse_getScrollX); - tolua_function(tolua_S,"getCursorX",lua_cocos2dx_EventMouse_getCursorX); - tolua_function(tolua_S,"getCursorY",lua_cocos2dx_EventMouse_getCursorY); - tolua_function(tolua_S,"setCursorPosition",lua_cocos2dx_EventMouse_setCursorPosition); + tolua_function(tolua_S,"new",lua_cocos2dx_EventMouse_constructor); + tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_EventMouse_getPreviousLocationInView); + tolua_function(tolua_S,"getLocation",lua_cocos2dx_EventMouse_getLocation); + tolua_function(tolua_S,"getMouseButton",lua_cocos2dx_EventMouse_getMouseButton); + tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_EventMouse_getPreviousLocation); + tolua_function(tolua_S,"getDelta",lua_cocos2dx_EventMouse_getDelta); + tolua_function(tolua_S,"setScrollData",lua_cocos2dx_EventMouse_setScrollData); + tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_EventMouse_getStartLocationInView); + tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_EventMouse_getStartLocation); + tolua_function(tolua_S,"setMouseButton",lua_cocos2dx_EventMouse_setMouseButton); + tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_EventMouse_getLocationInView); + tolua_function(tolua_S,"getScrollY",lua_cocos2dx_EventMouse_getScrollY); + tolua_function(tolua_S,"getScrollX",lua_cocos2dx_EventMouse_getScrollX); + tolua_function(tolua_S,"getCursorX",lua_cocos2dx_EventMouse_getCursorX); + tolua_function(tolua_S,"getCursorY",lua_cocos2dx_EventMouse_getCursorY); + tolua_function(tolua_S,"setCursorPosition",lua_cocos2dx_EventMouse_setCursorPosition); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventMouse).name(); g_luaType[typeName] = "cc.EventMouse"; @@ -19068,7 +19068,7 @@ int lua_register_cocos2dx_EventListenerMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerMouse"); tolua_cclass(tolua_S,"EventListenerMouse","cc.EventListenerMouse","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerMouse"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerMouse).name(); @@ -19087,7 +19087,7 @@ int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventAcceleration"); tolua_cclass(tolua_S,"EventAcceleration","cc.EventAcceleration","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventAcceleration"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventAcceleration).name(); @@ -19106,7 +19106,7 @@ int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerAcceleration"); tolua_cclass(tolua_S,"EventListenerAcceleration","cc.EventListenerAcceleration","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerAcceleration"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerAcceleration).name(); @@ -19120,28 +19120,28 @@ int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) int argc = 0; cocos2d::EventCustom* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventCustom",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EventCustom*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventCustom_getEventName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19154,12 +19154,12 @@ int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventCustom:getEventName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventCustom_getEventName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) @@ -19167,18 +19167,18 @@ int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventCustom* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventCustom:EventCustom"); if(!ok) { @@ -19194,11 +19194,11 @@ int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventCustom:EventCustom",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventCustom_constructor'.",&tolua_err); #endif - + return 0; } @@ -19212,10 +19212,10 @@ int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventCustom"); tolua_cclass(tolua_S,"EventCustom","cc.EventCustom","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventCustom"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); - tolua_function(tolua_S,"getEventName",lua_cocos2dx_EventCustom_getEventName); + tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); + tolua_function(tolua_S,"getEventName",lua_cocos2dx_EventCustom_getEventName); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventCustom).name(); g_luaType[typeName] = "cc.EventCustom"; @@ -19233,7 +19233,7 @@ int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerCustom"); tolua_cclass(tolua_S,"EventListenerCustom","cc.EventListenerCustom","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerCustom"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerCustom).name(); @@ -19247,21 +19247,21 @@ int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) int argc = 0; cocos2d::EventFocus* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ui::Widget* arg0; cocos2d::ui::Widget* arg1; - + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1); if(!ok) { @@ -19277,11 +19277,11 @@ int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventFocus:EventFocus",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventFocus_constructor'.",&tolua_err); #endif - + return 0; } @@ -19295,9 +19295,9 @@ int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventFocus"); tolua_cclass(tolua_S,"EventFocus","cc.EventFocus","cc.Event",nullptr); - + tolua_beginmodule(tolua_S,"EventFocus"); - tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); + tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventFocus).name(); g_luaType[typeName] = "cc.EventFocus"; @@ -19315,7 +19315,7 @@ int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerFocus"); tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr); - + tolua_beginmodule(tolua_S,"EventListenerFocus"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerFocus).name(); @@ -19329,31 +19329,31 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_startWithTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -19365,12 +19365,12 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:startWithTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_startWithTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) @@ -19378,31 +19378,31 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setOriginalTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -19414,12 +19414,12 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setOriginalTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setOriginalTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_clone(lua_State* tolua_S) @@ -19427,28 +19427,28 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19461,12 +19461,12 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) @@ -19474,28 +19474,28 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getOriginalTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19508,12 +19508,12 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getOriginalTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getOriginalTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_stop(lua_State* tolua_S) @@ -19521,28 +19521,28 @@ int lua_cocos2dx_Action_stop(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_stop'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19554,12 +19554,12 @@ int lua_cocos2dx_Action_stop(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:stop",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_stop'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_update(lua_State* tolua_S) @@ -19567,31 +19567,31 @@ int lua_cocos2dx_Action_update(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Action:update"); if(!ok) { @@ -19603,12 +19603,12 @@ int lua_cocos2dx_Action_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) @@ -19616,28 +19616,28 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19650,12 +19650,12 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_step(lua_State* tolua_S) @@ -19663,31 +19663,31 @@ int lua_cocos2dx_Action_step(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_step'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Action:step"); if(!ok) { @@ -19699,12 +19699,12 @@ int lua_cocos2dx_Action_step(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:step",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_step'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_setTag(lua_State* tolua_S) @@ -19712,31 +19712,31 @@ int lua_cocos2dx_Action_setTag(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Action:setTag"); if(!ok) { @@ -19748,12 +19748,12 @@ int lua_cocos2dx_Action_setTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_getTag(lua_State* tolua_S) @@ -19761,28 +19761,28 @@ int lua_cocos2dx_Action_getTag(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19795,12 +19795,12 @@ int lua_cocos2dx_Action_getTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) @@ -19808,31 +19808,31 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -19844,12 +19844,12 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_isDone(lua_State* tolua_S) @@ -19857,28 +19857,28 @@ int lua_cocos2dx_Action_isDone(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_isDone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19891,12 +19891,12 @@ int lua_cocos2dx_Action_isDone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:isDone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_isDone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Action_reverse(lua_State* tolua_S) @@ -19904,28 +19904,28 @@ int lua_cocos2dx_Action_reverse(lua_State* tolua_S) int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_reverse'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -19938,12 +19938,12 @@ int lua_cocos2dx_Action_reverse(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:reverse",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_reverse'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Action_finalize(lua_State* tolua_S) @@ -19956,21 +19956,21 @@ int lua_register_cocos2dx_Action(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Action"); tolua_cclass(tolua_S,"Action","cc.Action","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Action"); - tolua_function(tolua_S,"startWithTarget",lua_cocos2dx_Action_startWithTarget); - tolua_function(tolua_S,"setOriginalTarget",lua_cocos2dx_Action_setOriginalTarget); - tolua_function(tolua_S,"clone",lua_cocos2dx_Action_clone); - tolua_function(tolua_S,"getOriginalTarget",lua_cocos2dx_Action_getOriginalTarget); - tolua_function(tolua_S,"stop",lua_cocos2dx_Action_stop); - tolua_function(tolua_S,"update",lua_cocos2dx_Action_update); - tolua_function(tolua_S,"getTarget",lua_cocos2dx_Action_getTarget); - tolua_function(tolua_S,"step",lua_cocos2dx_Action_step); - tolua_function(tolua_S,"setTag",lua_cocos2dx_Action_setTag); - tolua_function(tolua_S,"getTag",lua_cocos2dx_Action_getTag); - tolua_function(tolua_S,"setTarget",lua_cocos2dx_Action_setTarget); - tolua_function(tolua_S,"isDone",lua_cocos2dx_Action_isDone); - tolua_function(tolua_S,"reverse",lua_cocos2dx_Action_reverse); + tolua_function(tolua_S,"startWithTarget",lua_cocos2dx_Action_startWithTarget); + tolua_function(tolua_S,"setOriginalTarget",lua_cocos2dx_Action_setOriginalTarget); + tolua_function(tolua_S,"clone",lua_cocos2dx_Action_clone); + tolua_function(tolua_S,"getOriginalTarget",lua_cocos2dx_Action_getOriginalTarget); + tolua_function(tolua_S,"stop",lua_cocos2dx_Action_stop); + tolua_function(tolua_S,"update",lua_cocos2dx_Action_update); + tolua_function(tolua_S,"getTarget",lua_cocos2dx_Action_getTarget); + tolua_function(tolua_S,"step",lua_cocos2dx_Action_step); + tolua_function(tolua_S,"setTag",lua_cocos2dx_Action_setTag); + tolua_function(tolua_S,"getTag",lua_cocos2dx_Action_getTag); + tolua_function(tolua_S,"setTarget",lua_cocos2dx_Action_setTarget); + tolua_function(tolua_S,"isDone",lua_cocos2dx_Action_isDone); + tolua_function(tolua_S,"reverse",lua_cocos2dx_Action_reverse); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Action).name(); g_luaType[typeName] = "cc.Action"; @@ -19983,31 +19983,31 @@ int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) int argc = 0; cocos2d::FiniteTimeAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FiniteTimeAction_setDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FiniteTimeAction:setDuration"); if(!ok) { @@ -20019,12 +20019,12 @@ int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FiniteTimeAction:setDuration",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FiniteTimeAction_setDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) @@ -20032,28 +20032,28 @@ int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) int argc = 0; cocos2d::FiniteTimeAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FiniteTimeAction_getDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20066,12 +20066,12 @@ int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FiniteTimeAction:getDuration",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FiniteTimeAction_getDuration'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_FiniteTimeAction_finalize(lua_State* tolua_S) @@ -20084,10 +20084,10 @@ int lua_register_cocos2dx_FiniteTimeAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FiniteTimeAction"); tolua_cclass(tolua_S,"FiniteTimeAction","cc.FiniteTimeAction","cc.Action",nullptr); - + tolua_beginmodule(tolua_S,"FiniteTimeAction"); - tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); - tolua_function(tolua_S,"getDuration",lua_cocos2dx_FiniteTimeAction_getDuration); + tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_FiniteTimeAction_getDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FiniteTimeAction).name(); g_luaType[typeName] = "cc.FiniteTimeAction"; @@ -20100,31 +20100,31 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_setInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -20136,12 +20136,12 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:setInnerAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_setInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) @@ -20149,31 +20149,31 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_setSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Speed:setSpeed"); if(!ok) { @@ -20185,12 +20185,12 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:setSpeed",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_setSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) @@ -20198,28 +20198,28 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20232,12 +20232,12 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) @@ -20245,28 +20245,28 @@ int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_getSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20279,29 +20279,29 @@ int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getSpeed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Speed_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -20320,7 +20320,7 @@ int lua_cocos2dx_Speed_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Speed:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_create'.",&tolua_err); #endif return 0; @@ -20335,13 +20335,13 @@ int lua_register_cocos2dx_Speed(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Speed"); tolua_cclass(tolua_S,"Speed","cc.Speed","cc.Action",nullptr); - + tolua_beginmodule(tolua_S,"Speed"); - tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Speed_setInnerAction); - tolua_function(tolua_S,"setSpeed",lua_cocos2dx_Speed_setSpeed); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); - tolua_function(tolua_S,"getSpeed",lua_cocos2dx_Speed_getSpeed); - tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); + tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Speed_setInnerAction); + tolua_function(tolua_S,"setSpeed",lua_cocos2dx_Speed_setSpeed); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); + tolua_function(tolua_S,"getSpeed",lua_cocos2dx_Speed_getSpeed); + tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Speed).name(); g_luaType[typeName] = "cc.Speed"; @@ -20354,31 +20354,31 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_setBoundarySet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Follow:setBoundarySet"); if(!ok) { @@ -20390,12 +20390,12 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:setBoundarySet",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_setBoundarySet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) @@ -20403,28 +20403,28 @@ int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_isBoundarySet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20437,29 +20437,29 @@ int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:isBoundarySet",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_isBoundarySet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Follow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Node* arg0; @@ -20491,7 +20491,7 @@ int lua_cocos2dx_Follow_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Follow:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_create'.",&tolua_err); #endif return 0; @@ -20506,11 +20506,11 @@ int lua_register_cocos2dx_Follow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Follow"); tolua_cclass(tolua_S,"Follow","cc.Follow","cc.Action",nullptr); - + tolua_beginmodule(tolua_S,"Follow"); - tolua_function(tolua_S,"setBoundarySet",lua_cocos2dx_Follow_setBoundarySet); - tolua_function(tolua_S,"isBoundarySet",lua_cocos2dx_Follow_isBoundarySet); - tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); + tolua_function(tolua_S,"setBoundarySet",lua_cocos2dx_Follow_setBoundarySet); + tolua_function(tolua_S,"isBoundarySet",lua_cocos2dx_Follow_isBoundarySet); + tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Follow).name(); g_luaType[typeName] = "cc.Follow"; @@ -20523,28 +20523,28 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20557,12 +20557,12 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) @@ -20570,31 +20570,31 @@ int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRotated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteFrame:setRotated"); if(!ok) { @@ -20606,12 +20606,12 @@ int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRotated",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRotated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) @@ -20619,31 +20619,31 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -20655,12 +20655,12 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) @@ -20668,28 +20668,28 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20702,12 +20702,12 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOffset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) @@ -20715,31 +20715,31 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRectInPixels"); if(!ok) { @@ -20751,12 +20751,12 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRectInPixels",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) @@ -20764,28 +20764,28 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20798,12 +20798,12 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) @@ -20811,28 +20811,28 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20845,12 +20845,12 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) @@ -20858,31 +20858,31 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffsetInPixels"); if(!ok) { @@ -20894,12 +20894,12 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOffsetInPixels",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) @@ -20907,28 +20907,28 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -20941,12 +20941,12 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getRectInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) @@ -20954,31 +20954,31 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSize"); if(!ok) { @@ -20990,12 +20990,12 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOriginalSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) @@ -21003,28 +21003,28 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21037,12 +21037,12 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOriginalSizeInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) @@ -21050,31 +21050,31 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSizeInPixels"); if(!ok) { @@ -21086,12 +21086,12 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOriginalSizeInPixels",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) @@ -21099,31 +21099,31 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffset"); if(!ok) { @@ -21135,12 +21135,12 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOffset",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) @@ -21148,28 +21148,28 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_isRotated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21182,12 +21182,12 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:isRotated",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_isRotated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) @@ -21195,31 +21195,31 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRect"); if(!ok) { @@ -21231,12 +21231,12 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) @@ -21244,28 +21244,28 @@ int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21278,12 +21278,12 @@ int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOffsetInPixels",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) @@ -21291,28 +21291,28 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21325,12 +21325,12 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOriginalSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) @@ -21340,14 +21340,14 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -21372,7 +21372,7 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -21391,7 +21391,7 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.SpriteFrame:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_create'.",&tolua_err); #endif return 0; @@ -21403,14 +21403,14 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -21435,7 +21435,7 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -21454,7 +21454,7 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.SpriteFrame:createWithTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_createWithTexture'.",&tolua_err); #endif return 0; @@ -21469,27 +21469,27 @@ int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrame"); tolua_cclass(tolua_S,"SpriteFrame","cc.SpriteFrame","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"SpriteFrame"); - tolua_function(tolua_S,"clone",lua_cocos2dx_SpriteFrame_clone); - tolua_function(tolua_S,"setRotated",lua_cocos2dx_SpriteFrame_setRotated); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteFrame_setTexture); - tolua_function(tolua_S,"getOffset",lua_cocos2dx_SpriteFrame_getOffset); - tolua_function(tolua_S,"setRectInPixels",lua_cocos2dx_SpriteFrame_setRectInPixels); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteFrame_getTexture); - tolua_function(tolua_S,"getRect",lua_cocos2dx_SpriteFrame_getRect); - tolua_function(tolua_S,"setOffsetInPixels",lua_cocos2dx_SpriteFrame_setOffsetInPixels); - tolua_function(tolua_S,"getRectInPixels",lua_cocos2dx_SpriteFrame_getRectInPixels); - tolua_function(tolua_S,"setOriginalSize",lua_cocos2dx_SpriteFrame_setOriginalSize); - tolua_function(tolua_S,"getOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels); - tolua_function(tolua_S,"setOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels); - tolua_function(tolua_S,"setOffset",lua_cocos2dx_SpriteFrame_setOffset); - tolua_function(tolua_S,"isRotated",lua_cocos2dx_SpriteFrame_isRotated); - tolua_function(tolua_S,"setRect",lua_cocos2dx_SpriteFrame_setRect); - tolua_function(tolua_S,"getOffsetInPixels",lua_cocos2dx_SpriteFrame_getOffsetInPixels); - tolua_function(tolua_S,"getOriginalSize",lua_cocos2dx_SpriteFrame_getOriginalSize); - tolua_function(tolua_S,"create", lua_cocos2dx_SpriteFrame_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteFrame_createWithTexture); + tolua_function(tolua_S,"clone",lua_cocos2dx_SpriteFrame_clone); + tolua_function(tolua_S,"setRotated",lua_cocos2dx_SpriteFrame_setRotated); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteFrame_setTexture); + tolua_function(tolua_S,"getOffset",lua_cocos2dx_SpriteFrame_getOffset); + tolua_function(tolua_S,"setRectInPixels",lua_cocos2dx_SpriteFrame_setRectInPixels); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteFrame_getTexture); + tolua_function(tolua_S,"getRect",lua_cocos2dx_SpriteFrame_getRect); + tolua_function(tolua_S,"setOffsetInPixels",lua_cocos2dx_SpriteFrame_setOffsetInPixels); + tolua_function(tolua_S,"getRectInPixels",lua_cocos2dx_SpriteFrame_getRectInPixels); + tolua_function(tolua_S,"setOriginalSize",lua_cocos2dx_SpriteFrame_setOriginalSize); + tolua_function(tolua_S,"getOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels); + tolua_function(tolua_S,"setOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels); + tolua_function(tolua_S,"setOffset",lua_cocos2dx_SpriteFrame_setOffset); + tolua_function(tolua_S,"isRotated",lua_cocos2dx_SpriteFrame_isRotated); + tolua_function(tolua_S,"setRect",lua_cocos2dx_SpriteFrame_setRect); + tolua_function(tolua_S,"getOffsetInPixels",lua_cocos2dx_SpriteFrame_getOffsetInPixels); + tolua_function(tolua_S,"getOriginalSize",lua_cocos2dx_SpriteFrame_getOriginalSize); + tolua_function(tolua_S,"create", lua_cocos2dx_SpriteFrame_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteFrame_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteFrame).name(); g_luaType[typeName] = "cc.SpriteFrame"; @@ -21502,31 +21502,31 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -21538,12 +21538,12 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) @@ -21554,7 +21554,7 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif @@ -21585,12 +21585,12 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getUserInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getUserInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) @@ -21598,31 +21598,31 @@ int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.AnimationFrame:setDelayUnits"); if(!ok) { @@ -21634,12 +21634,12 @@ int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setDelayUnits",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) @@ -21647,28 +21647,28 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21681,12 +21681,12 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) @@ -21694,28 +21694,28 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21728,12 +21728,12 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getSpriteFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) @@ -21741,28 +21741,28 @@ int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21775,12 +21775,12 @@ int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getDelayUnits",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) @@ -21788,31 +21788,31 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setUserInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationFrame:setUserInfo"); if(!ok) { @@ -21824,29 +21824,29 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setUserInfo",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setUserInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { cocos2d::SpriteFrame* arg0; @@ -21867,7 +21867,7 @@ int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationFrame:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_create'.",&tolua_err); #endif return 0; @@ -21882,16 +21882,16 @@ int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationFrame"); tolua_cclass(tolua_S,"AnimationFrame","cc.AnimationFrame","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"AnimationFrame"); - tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_AnimationFrame_setSpriteFrame); - tolua_function(tolua_S,"getUserInfo",lua_cocos2dx_AnimationFrame_getUserInfo); - tolua_function(tolua_S,"setDelayUnits",lua_cocos2dx_AnimationFrame_setDelayUnits); - tolua_function(tolua_S,"clone",lua_cocos2dx_AnimationFrame_clone); - tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_AnimationFrame_getSpriteFrame); - tolua_function(tolua_S,"getDelayUnits",lua_cocos2dx_AnimationFrame_getDelayUnits); - tolua_function(tolua_S,"setUserInfo",lua_cocos2dx_AnimationFrame_setUserInfo); - tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); + tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_AnimationFrame_setSpriteFrame); + tolua_function(tolua_S,"getUserInfo",lua_cocos2dx_AnimationFrame_getUserInfo); + tolua_function(tolua_S,"setDelayUnits",lua_cocos2dx_AnimationFrame_setDelayUnits); + tolua_function(tolua_S,"clone",lua_cocos2dx_AnimationFrame_clone); + tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_AnimationFrame_getSpriteFrame); + tolua_function(tolua_S,"getDelayUnits",lua_cocos2dx_AnimationFrame_getDelayUnits); + tolua_function(tolua_S,"setUserInfo",lua_cocos2dx_AnimationFrame_setUserInfo); + tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationFrame).name(); g_luaType[typeName] = "cc.AnimationFrame"; @@ -21904,28 +21904,28 @@ int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getLoops'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -21938,12 +21938,12 @@ int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getLoops",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getLoops'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) @@ -21951,31 +21951,31 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -21987,12 +21987,12 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) @@ -22000,31 +22000,31 @@ int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Animation:setRestoreOriginalFrame"); if(!ok) { @@ -22036,12 +22036,12 @@ int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setRestoreOriginalFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_clone(lua_State* tolua_S) @@ -22049,28 +22049,28 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_clone'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22083,12 +22083,12 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:clone",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_clone'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) @@ -22096,28 +22096,28 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22130,12 +22130,12 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getDuration",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) @@ -22143,31 +22143,31 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:setFrames"); if(!ok) { @@ -22179,12 +22179,12 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setFrames",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) @@ -22192,28 +22192,28 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22226,12 +22226,12 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) @@ -22239,31 +22239,31 @@ int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setLoops'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Animation:setLoops"); if(!ok) { @@ -22275,12 +22275,12 @@ int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setLoops",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setLoops'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) @@ -22288,31 +22288,31 @@ int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setDelayPerUnit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Animation:setDelayPerUnit"); if(!ok) { @@ -22324,12 +22324,12 @@ int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setDelayPerUnit",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setDelayPerUnit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) @@ -22337,31 +22337,31 @@ int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Animation:addSpriteFrameWithFile"); if(!ok) { @@ -22373,12 +22373,12 @@ int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrameWithFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) @@ -22386,28 +22386,28 @@ int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getTotalDelayUnits'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22420,12 +22420,12 @@ int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getTotalDelayUnits",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getTotalDelayUnits'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) @@ -22433,28 +22433,28 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getDelayPerUnit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22467,12 +22467,12 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getDelayPerUnit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getDelayPerUnit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) @@ -22480,28 +22480,28 @@ int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22514,12 +22514,12 @@ int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getRestoreOriginalFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) @@ -22527,34 +22527,34 @@ int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Texture2D* arg0; cocos2d::Rect arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Animation:addSpriteFrameWithTexture"); if(!ok) { @@ -22566,12 +22566,12 @@ int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrameWithTexture",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animation_create(lua_State* tolua_S) @@ -22581,14 +22581,14 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -22604,7 +22604,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -22623,7 +22623,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -22636,7 +22636,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Animation:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_create'.",&tolua_err); #endif return 0; @@ -22645,17 +22645,17 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Vector arg0; @@ -22704,7 +22704,7 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animation:createWithSpriteFrames",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_createWithSpriteFrames'.",&tolua_err); #endif return 0; @@ -22719,24 +22719,24 @@ int lua_register_cocos2dx_Animation(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animation"); tolua_cclass(tolua_S,"Animation","cc.Animation","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Animation"); - tolua_function(tolua_S,"getLoops",lua_cocos2dx_Animation_getLoops); - tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_Animation_addSpriteFrame); - tolua_function(tolua_S,"setRestoreOriginalFrame",lua_cocos2dx_Animation_setRestoreOriginalFrame); - tolua_function(tolua_S,"clone",lua_cocos2dx_Animation_clone); - tolua_function(tolua_S,"getDuration",lua_cocos2dx_Animation_getDuration); - tolua_function(tolua_S,"setFrames",lua_cocos2dx_Animation_setFrames); - tolua_function(tolua_S,"getFrames",lua_cocos2dx_Animation_getFrames); - tolua_function(tolua_S,"setLoops",lua_cocos2dx_Animation_setLoops); - tolua_function(tolua_S,"setDelayPerUnit",lua_cocos2dx_Animation_setDelayPerUnit); - tolua_function(tolua_S,"addSpriteFrameWithFile",lua_cocos2dx_Animation_addSpriteFrameWithFile); - tolua_function(tolua_S,"getTotalDelayUnits",lua_cocos2dx_Animation_getTotalDelayUnits); - tolua_function(tolua_S,"getDelayPerUnit",lua_cocos2dx_Animation_getDelayPerUnit); - tolua_function(tolua_S,"getRestoreOriginalFrame",lua_cocos2dx_Animation_getRestoreOriginalFrame); - tolua_function(tolua_S,"addSpriteFrameWithTexture",lua_cocos2dx_Animation_addSpriteFrameWithTexture); - tolua_function(tolua_S,"create", lua_cocos2dx_Animation_create); - tolua_function(tolua_S,"createWithSpriteFrames", lua_cocos2dx_Animation_createWithSpriteFrames); + tolua_function(tolua_S,"getLoops",lua_cocos2dx_Animation_getLoops); + tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_Animation_addSpriteFrame); + tolua_function(tolua_S,"setRestoreOriginalFrame",lua_cocos2dx_Animation_setRestoreOriginalFrame); + tolua_function(tolua_S,"clone",lua_cocos2dx_Animation_clone); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_Animation_getDuration); + tolua_function(tolua_S,"setFrames",lua_cocos2dx_Animation_setFrames); + tolua_function(tolua_S,"getFrames",lua_cocos2dx_Animation_getFrames); + tolua_function(tolua_S,"setLoops",lua_cocos2dx_Animation_setLoops); + tolua_function(tolua_S,"setDelayPerUnit",lua_cocos2dx_Animation_setDelayPerUnit); + tolua_function(tolua_S,"addSpriteFrameWithFile",lua_cocos2dx_Animation_addSpriteFrameWithFile); + tolua_function(tolua_S,"getTotalDelayUnits",lua_cocos2dx_Animation_getTotalDelayUnits); + tolua_function(tolua_S,"getDelayPerUnit",lua_cocos2dx_Animation_getDelayPerUnit); + tolua_function(tolua_S,"getRestoreOriginalFrame",lua_cocos2dx_Animation_getRestoreOriginalFrame); + tolua_function(tolua_S,"addSpriteFrameWithTexture",lua_cocos2dx_Animation_addSpriteFrameWithTexture); + tolua_function(tolua_S,"create", lua_cocos2dx_Animation_create); + tolua_function(tolua_S,"createWithSpriteFrames", lua_cocos2dx_Animation_createWithSpriteFrames); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Animation).name(); g_luaType[typeName] = "cc.Animation"; @@ -22749,28 +22749,28 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22783,12 +22783,12 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) @@ -22796,31 +22796,31 @@ int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionInterval:setAmplitudeRate"); if(!ok) { @@ -22832,12 +22832,12 @@ int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) @@ -22845,28 +22845,28 @@ int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_getElapsed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -22879,12 +22879,12 @@ int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:getElapsed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_getElapsed'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_ActionInterval_finalize(lua_State* tolua_S) @@ -22897,11 +22897,11 @@ int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInterval"); tolua_cclass(tolua_S,"ActionInterval","cc.ActionInterval","cc.FiniteTimeAction",nullptr); - + tolua_beginmodule(tolua_S,"ActionInterval"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); - tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); + tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionInterval).name(); g_luaType[typeName] = "cc.ActionInterval"; @@ -22919,7 +22919,7 @@ int lua_register_cocos2dx_Sequence(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sequence"); tolua_cclass(tolua_S,"Sequence","cc.Sequence","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Sequence"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sequence).name(); @@ -22933,31 +22933,31 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_setInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::FiniteTimeAction* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0); if(!ok) { @@ -22969,12 +22969,12 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:setInnerAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_setInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) @@ -22982,28 +22982,28 @@ int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -23016,29 +23016,29 @@ int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_getInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Repeat_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::FiniteTimeAction* arg0; @@ -23057,7 +23057,7 @@ int lua_cocos2dx_Repeat_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Repeat:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_create'.",&tolua_err); #endif return 0; @@ -23072,11 +23072,11 @@ int lua_register_cocos2dx_Repeat(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Repeat"); tolua_cclass(tolua_S,"Repeat","cc.Repeat","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Repeat"); - tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); - tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); + tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); + tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Repeat).name(); g_luaType[typeName] = "cc.Repeat"; @@ -23089,31 +23089,31 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_setInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -23125,12 +23125,12 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:setInnerAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_setInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) @@ -23138,28 +23138,28 @@ int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -23172,29 +23172,29 @@ int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_getInnerAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -23211,7 +23211,7 @@ int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RepeatForever:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_create'.",&tolua_err); #endif return 0; @@ -23226,11 +23226,11 @@ int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RepeatForever"); tolua_cclass(tolua_S,"RepeatForever","cc.RepeatForever","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"RepeatForever"); - tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); - tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); + tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); + tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RepeatForever).name(); g_luaType[typeName] = "cc.RepeatForever"; @@ -23248,7 +23248,7 @@ int lua_register_cocos2dx_Spawn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Spawn"); tolua_cclass(tolua_S,"Spawn","cc.Spawn","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Spawn"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Spawn).name(); @@ -23264,14 +23264,14 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RotateTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -23287,7 +23287,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -23306,7 +23306,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23325,7 +23325,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RotateTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_create'.",&tolua_err); #endif return 0; @@ -23340,9 +23340,9 @@ int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateTo"); tolua_cclass(tolua_S,"RotateTo","cc.RotateTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"RotateTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateTo).name(); g_luaType[typeName] = "cc.RotateTo"; @@ -23357,14 +23357,14 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RotateBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -23383,7 +23383,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23399,7 +23399,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23418,7 +23418,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RotateBy:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_create'.",&tolua_err); #endif return 0; @@ -23433,9 +23433,9 @@ int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateBy"); tolua_cclass(tolua_S,"RotateBy","cc.RotateBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"RotateBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateBy).name(); g_luaType[typeName] = "cc.RotateBy"; @@ -23447,17 +23447,17 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MoveBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -23476,7 +23476,7 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MoveBy:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_create'.",&tolua_err); #endif return 0; @@ -23491,9 +23491,9 @@ int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveBy"); tolua_cclass(tolua_S,"MoveBy","cc.MoveBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"MoveBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveBy).name(); g_luaType[typeName] = "cc.MoveBy"; @@ -23505,17 +23505,17 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MoveTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -23534,7 +23534,7 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MoveTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_create'.",&tolua_err); #endif return 0; @@ -23549,9 +23549,9 @@ int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveTo"); tolua_cclass(tolua_S,"MoveTo","cc.MoveTo","cc.MoveBy",nullptr); - + tolua_beginmodule(tolua_S,"MoveTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveTo).name(); g_luaType[typeName] = "cc.MoveTo"; @@ -23563,17 +23563,17 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SkewTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -23594,7 +23594,7 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewTo:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_create'.",&tolua_err); #endif return 0; @@ -23609,9 +23609,9 @@ int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewTo"); tolua_cclass(tolua_S,"SkewTo","cc.SkewTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"SkewTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewTo).name(); g_luaType[typeName] = "cc.SkewTo"; @@ -23623,17 +23623,17 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SkewBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -23654,7 +23654,7 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewBy:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_create'.",&tolua_err); #endif return 0; @@ -23669,9 +23669,9 @@ int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewBy"); tolua_cclass(tolua_S,"SkewBy","cc.SkewBy","cc.SkewTo",nullptr); - + tolua_beginmodule(tolua_S,"SkewBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewBy).name(); g_luaType[typeName] = "cc.SkewBy"; @@ -23683,17 +23683,17 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -23716,7 +23716,7 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_create'.",&tolua_err); #endif return 0; @@ -23731,9 +23731,9 @@ int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpBy"); tolua_cclass(tolua_S,"JumpBy","cc.JumpBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"JumpBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpBy).name(); g_luaType[typeName] = "cc.JumpBy"; @@ -23745,17 +23745,17 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -23778,7 +23778,7 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_create'.",&tolua_err); #endif return 0; @@ -23793,9 +23793,9 @@ int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTo"); tolua_cclass(tolua_S,"JumpTo","cc.JumpTo","cc.JumpBy",nullptr); - + tolua_beginmodule(tolua_S,"JumpTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTo).name(); g_luaType[typeName] = "cc.JumpTo"; @@ -23813,7 +23813,7 @@ int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierBy"); tolua_cclass(tolua_S,"BezierBy","cc.BezierBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"BezierBy"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierBy).name(); @@ -23832,7 +23832,7 @@ int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierTo"); tolua_cclass(tolua_S,"BezierTo","cc.BezierTo","cc.BezierBy",nullptr); - + tolua_beginmodule(tolua_S,"BezierTo"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierTo).name(); @@ -23848,14 +23848,14 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ScaleTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -23874,7 +23874,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23890,7 +23890,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -23915,7 +23915,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ScaleTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_create'.",&tolua_err); #endif return 0; @@ -23930,9 +23930,9 @@ int lua_register_cocos2dx_ScaleTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleTo"); tolua_cclass(tolua_S,"ScaleTo","cc.ScaleTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ScaleTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleTo).name(); g_luaType[typeName] = "cc.ScaleTo"; @@ -23947,14 +23947,14 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ScaleBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -23973,7 +23973,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -23989,7 +23989,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -24014,7 +24014,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ScaleBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleBy_create'.",&tolua_err); #endif return 0; @@ -24029,9 +24029,9 @@ int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleBy"); tolua_cclass(tolua_S,"ScaleBy","cc.ScaleBy","cc.ScaleTo",nullptr); - + tolua_beginmodule(tolua_S,"ScaleBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleBy).name(); g_luaType[typeName] = "cc.ScaleBy"; @@ -24043,17 +24043,17 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Blink",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -24072,7 +24072,7 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Blink:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_create'.",&tolua_err); #endif return 0; @@ -24087,9 +24087,9 @@ int lua_register_cocos2dx_Blink(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Blink"); tolua_cclass(tolua_S,"Blink","cc.Blink","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Blink"); - tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Blink).name(); g_luaType[typeName] = "cc.Blink"; @@ -24101,17 +24101,17 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -24130,7 +24130,7 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_create'.",&tolua_err); #endif return 0; @@ -24145,9 +24145,9 @@ int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeTo"); tolua_cclass(tolua_S,"FadeTo","cc.FadeTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"FadeTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeTo).name(); g_luaType[typeName] = "cc.FadeTo"; @@ -24160,31 +24160,31 @@ int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) int argc = 0; cocos2d::FadeIn* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeIn*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeIn_setReverseAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::FadeTo* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0); if(!ok) { @@ -24196,29 +24196,29 @@ int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeIn:setReverseAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_setReverseAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -24235,7 +24235,7 @@ int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_create'.",&tolua_err); #endif return 0; @@ -24250,10 +24250,10 @@ int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeIn"); tolua_cclass(tolua_S,"FadeIn","cc.FadeIn","cc.FadeTo",nullptr); - + tolua_beginmodule(tolua_S,"FadeIn"); - tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); + tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeIn).name(); g_luaType[typeName] = "cc.FadeIn"; @@ -24266,31 +24266,31 @@ int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) int argc = 0; cocos2d::FadeOut* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOut*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOut_setReverseAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::FadeTo* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0); if(!ok) { @@ -24302,29 +24302,29 @@ int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOut:setReverseAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_setReverseAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -24341,7 +24341,7 @@ int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_create'.",&tolua_err); #endif return 0; @@ -24356,10 +24356,10 @@ int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOut"); tolua_cclass(tolua_S,"FadeOut","cc.FadeOut","cc.FadeTo",nullptr); - + tolua_beginmodule(tolua_S,"FadeOut"); - tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); + tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOut).name(); g_luaType[typeName] = "cc.FadeOut"; @@ -24371,17 +24371,17 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TintTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -24404,7 +24404,7 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TintTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_create'.",&tolua_err); #endif return 0; @@ -24419,9 +24419,9 @@ int lua_register_cocos2dx_TintTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintTo"); tolua_cclass(tolua_S,"TintTo","cc.TintTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"TintTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintTo).name(); g_luaType[typeName] = "cc.TintTo"; @@ -24433,17 +24433,17 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TintBy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -24466,7 +24466,7 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TintBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_create'.",&tolua_err); #endif return 0; @@ -24481,9 +24481,9 @@ int lua_register_cocos2dx_TintBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintBy"); tolua_cclass(tolua_S,"TintBy","cc.TintBy","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"TintBy"); - tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintBy).name(); g_luaType[typeName] = "cc.TintBy"; @@ -24495,17 +24495,17 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DelayTime",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -24522,7 +24522,7 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DelayTime:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DelayTime_create'.",&tolua_err); #endif return 0; @@ -24537,9 +24537,9 @@ int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DelayTime"); tolua_cclass(tolua_S,"DelayTime","cc.DelayTime","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"DelayTime"); - tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); + tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DelayTime).name(); g_luaType[typeName] = "cc.DelayTime"; @@ -24555,7 +24555,7 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif @@ -24586,12 +24586,12 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:getAnimation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_getAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) @@ -24599,31 +24599,31 @@ int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_setAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Animation* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0); if(!ok) { @@ -24635,29 +24635,29 @@ int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:setAnimation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_setAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Animate_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Animation* arg0; @@ -24674,7 +24674,7 @@ int lua_cocos2dx_Animate_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animate:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_create'.",&tolua_err); #endif return 0; @@ -24689,11 +24689,11 @@ int lua_register_cocos2dx_Animate(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animate"); tolua_cclass(tolua_S,"Animate","cc.Animate","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"Animate"); - tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); - tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); - tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); + tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); + tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); + tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Animate).name(); g_luaType[typeName] = "cc.Animate"; @@ -24709,7 +24709,7 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif @@ -24740,12 +24740,12 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:getForcedTarget",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_getForcedTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) @@ -24753,31 +24753,31 @@ int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) int argc = 0; cocos2d::TargetedAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TargetedAction_setForcedTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -24789,29 +24789,29 @@ int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:setForcedTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_setForcedTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::Node* arg0; @@ -24830,7 +24830,7 @@ int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TargetedAction:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_create'.",&tolua_err); #endif return 0; @@ -24845,11 +24845,11 @@ int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TargetedAction"); tolua_cclass(tolua_S,"TargetedAction","cc.TargetedAction","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"TargetedAction"); - tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); - tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); - tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); + tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); + tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); + tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TargetedAction).name(); g_luaType[typeName] = "cc.TargetedAction"; @@ -24865,7 +24865,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif @@ -24882,15 +24882,15 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionCamera:setEye"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ActionCamera:setEye"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionCamera:setEye"); - + if (!ok) { break; } cobj->setEye(arg0, arg1, arg2); return 0; @@ -24901,7 +24901,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setEye"); - + if (!ok) { break; } cobj->setEye(arg0); return 0; @@ -24910,12 +24910,12 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setEye",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setEye'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) @@ -24923,28 +24923,28 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getEye'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -24957,12 +24957,12 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getEye",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getEye'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) @@ -24970,31 +24970,31 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setUp'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setUp"); if(!ok) { @@ -25006,12 +25006,12 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setUp",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setUp'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) @@ -25019,28 +25019,28 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getCenter'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25053,12 +25053,12 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getCenter",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getCenter'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) @@ -25066,31 +25066,31 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setCenter'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setCenter"); if(!ok) { @@ -25102,12 +25102,12 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setCenter",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setCenter'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) @@ -25115,28 +25115,28 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getUp'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25149,12 +25149,12 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getUp",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getUp'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) @@ -25162,15 +25162,15 @@ int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25186,11 +25186,11 @@ int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:ActionCamera",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_constructor'.",&tolua_err); #endif - + return 0; } @@ -25204,15 +25204,15 @@ int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionCamera"); tolua_cclass(tolua_S,"ActionCamera","cc.ActionCamera","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ActionCamera"); - tolua_function(tolua_S,"new",lua_cocos2dx_ActionCamera_constructor); - tolua_function(tolua_S,"setEye",lua_cocos2dx_ActionCamera_setEye); - tolua_function(tolua_S,"getEye",lua_cocos2dx_ActionCamera_getEye); - tolua_function(tolua_S,"setUp",lua_cocos2dx_ActionCamera_setUp); - tolua_function(tolua_S,"getCenter",lua_cocos2dx_ActionCamera_getCenter); - tolua_function(tolua_S,"setCenter",lua_cocos2dx_ActionCamera_setCenter); - tolua_function(tolua_S,"getUp",lua_cocos2dx_ActionCamera_getUp); + tolua_function(tolua_S,"new",lua_cocos2dx_ActionCamera_constructor); + tolua_function(tolua_S,"setEye",lua_cocos2dx_ActionCamera_setEye); + tolua_function(tolua_S,"getEye",lua_cocos2dx_ActionCamera_getEye); + tolua_function(tolua_S,"setUp",lua_cocos2dx_ActionCamera_setUp); + tolua_function(tolua_S,"getCenter",lua_cocos2dx_ActionCamera_getCenter); + tolua_function(tolua_S,"setCenter",lua_cocos2dx_ActionCamera_setCenter); + tolua_function(tolua_S,"getUp",lua_cocos2dx_ActionCamera_getUp); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionCamera).name(); g_luaType[typeName] = "cc.ActionCamera"; @@ -25224,17 +25224,17 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 7) { double arg0; @@ -25263,7 +25263,7 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.OrbitCamera:create",argc, 7); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_create'.",&tolua_err); #endif return 0; @@ -25278,9 +25278,9 @@ int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.OrbitCamera"); tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); - + tolua_beginmodule(tolua_S,"OrbitCamera"); - tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); + tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::OrbitCamera).name(); g_luaType[typeName] = "cc.OrbitCamera"; @@ -25293,34 +25293,34 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_getActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; const cocos2d::Node* arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:getActionByTag"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -25333,12 +25333,12 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getActionByTag",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_getActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) @@ -25346,34 +25346,34 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeActionByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; cocos2d::Node* arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeActionByTag"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -25385,12 +25385,12 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeActionByTag",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeActionByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) @@ -25398,28 +25398,28 @@ int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25431,12 +25431,12 @@ int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) @@ -25444,37 +25444,37 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_addAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Action* arg0; cocos2d::Node* arg1; bool arg2; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); - + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.ActionManager:addAction"); if(!ok) { @@ -25486,12 +25486,12 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:addAction",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_addAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) @@ -25499,31 +25499,31 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_resumeTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25535,12 +25535,12 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:resumeTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_resumeTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) @@ -25548,31 +25548,31 @@ int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_update'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionManager:update"); if(!ok) { @@ -25584,12 +25584,12 @@ int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) @@ -25597,31 +25597,31 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_pauseTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25633,12 +25633,12 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:pauseTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_pauseTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolua_S) @@ -25646,31 +25646,31 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { const cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25683,12 +25683,12 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getNumberOfRunningActionsInTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) @@ -25696,31 +25696,31 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -25732,12 +25732,12 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActionsFromTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) @@ -25745,31 +25745,31 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_resumeTargets'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.ActionManager:resumeTargets"); if(!ok) { @@ -25781,12 +25781,12 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:resumeTargets",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_resumeTargets'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) @@ -25794,31 +25794,31 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Action* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0); if(!ok) { @@ -25830,12 +25830,12 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) @@ -25843,34 +25843,34 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; cocos2d::Node* arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeAllActionsByTag"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); if(!ok) { @@ -25882,12 +25882,12 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActionsByTag",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) @@ -25895,28 +25895,28 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25929,12 +25929,12 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:pauseAllRunningActions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) @@ -25942,15 +25942,15 @@ int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -25966,11 +25966,11 @@ int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:ActionManager",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_constructor'.",&tolua_err); #endif - + return 0; } @@ -25984,22 +25984,22 @@ int lua_register_cocos2dx_ActionManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionManager"); tolua_cclass(tolua_S,"ActionManager","cc.ActionManager","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"ActionManager"); - tolua_function(tolua_S,"new",lua_cocos2dx_ActionManager_constructor); - tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_ActionManager_getActionByTag); - tolua_function(tolua_S,"removeActionByTag",lua_cocos2dx_ActionManager_removeActionByTag); - tolua_function(tolua_S,"removeAllActions",lua_cocos2dx_ActionManager_removeAllActions); - tolua_function(tolua_S,"addAction",lua_cocos2dx_ActionManager_addAction); - tolua_function(tolua_S,"resumeTarget",lua_cocos2dx_ActionManager_resumeTarget); - tolua_function(tolua_S,"update",lua_cocos2dx_ActionManager_update); - tolua_function(tolua_S,"pauseTarget",lua_cocos2dx_ActionManager_pauseTarget); - tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget); - tolua_function(tolua_S,"removeAllActionsFromTarget",lua_cocos2dx_ActionManager_removeAllActionsFromTarget); - tolua_function(tolua_S,"resumeTargets",lua_cocos2dx_ActionManager_resumeTargets); - tolua_function(tolua_S,"removeAction",lua_cocos2dx_ActionManager_removeAction); - tolua_function(tolua_S,"removeAllActionsByTag",lua_cocos2dx_ActionManager_removeAllActionsByTag); - tolua_function(tolua_S,"pauseAllRunningActions",lua_cocos2dx_ActionManager_pauseAllRunningActions); + tolua_function(tolua_S,"new",lua_cocos2dx_ActionManager_constructor); + tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_ActionManager_getActionByTag); + tolua_function(tolua_S,"removeActionByTag",lua_cocos2dx_ActionManager_removeActionByTag); + tolua_function(tolua_S,"removeAllActions",lua_cocos2dx_ActionManager_removeAllActions); + tolua_function(tolua_S,"addAction",lua_cocos2dx_ActionManager_addAction); + tolua_function(tolua_S,"resumeTarget",lua_cocos2dx_ActionManager_resumeTarget); + tolua_function(tolua_S,"update",lua_cocos2dx_ActionManager_update); + tolua_function(tolua_S,"pauseTarget",lua_cocos2dx_ActionManager_pauseTarget); + tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget); + tolua_function(tolua_S,"removeAllActionsFromTarget",lua_cocos2dx_ActionManager_removeAllActionsFromTarget); + tolua_function(tolua_S,"resumeTargets",lua_cocos2dx_ActionManager_resumeTargets); + tolua_function(tolua_S,"removeAction",lua_cocos2dx_ActionManager_removeAction); + tolua_function(tolua_S,"removeAllActionsByTag",lua_cocos2dx_ActionManager_removeAllActionsByTag); + tolua_function(tolua_S,"pauseAllRunningActions",lua_cocos2dx_ActionManager_pauseAllRunningActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionManager).name(); g_luaType[typeName] = "cc.ActionManager"; @@ -26012,28 +26012,28 @@ int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) int argc = 0; cocos2d::ActionEase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionEase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ActionEase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionEase_getInnerAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -26046,12 +26046,12 @@ int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionEase:getInnerAction",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionEase_getInnerAction'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_ActionEase_finalize(lua_State* tolua_S) @@ -26064,9 +26064,9 @@ int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionEase"); tolua_cclass(tolua_S,"ActionEase","cc.ActionEase","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ActionEase"); - tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionEase).name(); g_luaType[typeName] = "cc.ActionEase"; @@ -26079,31 +26079,31 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_setRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseRateAction:setRate"); if(!ok) { @@ -26115,12 +26115,12 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:setRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_setRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) @@ -26128,28 +26128,28 @@ int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_getRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -26162,12 +26162,12 @@ int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:getRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_getRate'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EaseRateAction_finalize(lua_State* tolua_S) @@ -26180,10 +26180,10 @@ int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseRateAction"); tolua_cclass(tolua_S,"EaseRateAction","cc.EaseRateAction","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseRateAction"); - tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); - tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); + tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); + tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseRateAction).name(); g_luaType[typeName] = "cc.EaseRateAction"; @@ -26195,17 +26195,17 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -26224,7 +26224,7 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseIn_create'.",&tolua_err); #endif return 0; @@ -26239,9 +26239,9 @@ int lua_register_cocos2dx_EaseIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseIn"); tolua_cclass(tolua_S,"EaseIn","cc.EaseIn","cc.EaseRateAction",nullptr); - + tolua_beginmodule(tolua_S,"EaseIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseIn).name(); g_luaType[typeName] = "cc.EaseIn"; @@ -26253,17 +26253,17 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -26282,7 +26282,7 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseOut_create'.",&tolua_err); #endif return 0; @@ -26297,9 +26297,9 @@ int lua_register_cocos2dx_EaseOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseOut"); tolua_cclass(tolua_S,"EaseOut","cc.EaseOut","cc.EaseRateAction",nullptr); - + tolua_beginmodule(tolua_S,"EaseOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseOut).name(); g_luaType[typeName] = "cc.EaseOut"; @@ -26311,17 +26311,17 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::ActionInterval* arg0; @@ -26340,7 +26340,7 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseInOut_create'.",&tolua_err); #endif return 0; @@ -26355,9 +26355,9 @@ int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseInOut"); tolua_cclass(tolua_S,"EaseInOut","cc.EaseInOut","cc.EaseRateAction",nullptr); - + tolua_beginmodule(tolua_S,"EaseInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseInOut).name(); g_luaType[typeName] = "cc.EaseInOut"; @@ -26369,17 +26369,17 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26396,7 +26396,7 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialIn_create'.",&tolua_err); #endif return 0; @@ -26411,9 +26411,9 @@ int lua_register_cocos2dx_EaseExponentialIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialIn"); tolua_cclass(tolua_S,"EaseExponentialIn","cc.EaseExponentialIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseExponentialIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialIn).name(); g_luaType[typeName] = "cc.EaseExponentialIn"; @@ -26425,17 +26425,17 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26452,7 +26452,7 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialOut_create'.",&tolua_err); #endif return 0; @@ -26467,9 +26467,9 @@ int lua_register_cocos2dx_EaseExponentialOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialOut"); tolua_cclass(tolua_S,"EaseExponentialOut","cc.EaseExponentialOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseExponentialOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialOut).name(); g_luaType[typeName] = "cc.EaseExponentialOut"; @@ -26481,17 +26481,17 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26508,7 +26508,7 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialInOut_create'.",&tolua_err); #endif return 0; @@ -26523,9 +26523,9 @@ int lua_register_cocos2dx_EaseExponentialInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialInOut"); tolua_cclass(tolua_S,"EaseExponentialInOut","cc.EaseExponentialInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseExponentialInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialInOut).name(); g_luaType[typeName] = "cc.EaseExponentialInOut"; @@ -26537,17 +26537,17 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26564,7 +26564,7 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineIn_create'.",&tolua_err); #endif return 0; @@ -26579,9 +26579,9 @@ int lua_register_cocos2dx_EaseSineIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineIn"); tolua_cclass(tolua_S,"EaseSineIn","cc.EaseSineIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseSineIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineIn).name(); g_luaType[typeName] = "cc.EaseSineIn"; @@ -26593,17 +26593,17 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26620,7 +26620,7 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineOut_create'.",&tolua_err); #endif return 0; @@ -26635,9 +26635,9 @@ int lua_register_cocos2dx_EaseSineOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineOut"); tolua_cclass(tolua_S,"EaseSineOut","cc.EaseSineOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseSineOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineOut).name(); g_luaType[typeName] = "cc.EaseSineOut"; @@ -26649,17 +26649,17 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -26676,7 +26676,7 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineInOut_create'.",&tolua_err); #endif return 0; @@ -26691,9 +26691,9 @@ int lua_register_cocos2dx_EaseSineInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineInOut"); tolua_cclass(tolua_S,"EaseSineInOut","cc.EaseSineInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseSineInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineInOut).name(); g_luaType[typeName] = "cc.EaseSineInOut"; @@ -26706,31 +26706,31 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_setPeriod'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseElastic:setPeriod"); if(!ok) { @@ -26742,12 +26742,12 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:setPeriod",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_setPeriod'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) @@ -26755,28 +26755,28 @@ int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_getPeriod'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -26789,12 +26789,12 @@ int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:getPeriod",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_getPeriod'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_EaseElastic_finalize(lua_State* tolua_S) @@ -26807,10 +26807,10 @@ int lua_register_cocos2dx_EaseElastic(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElastic"); tolua_cclass(tolua_S,"EaseElastic","cc.EaseElastic","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseElastic"); - tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); - tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); + tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); + tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElastic).name(); g_luaType[typeName] = "cc.EaseElastic"; @@ -26825,14 +26825,14 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -26845,7 +26845,7 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -26864,7 +26864,7 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticIn_create'.",&tolua_err); #endif return 0; @@ -26879,9 +26879,9 @@ int lua_register_cocos2dx_EaseElasticIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticIn"); tolua_cclass(tolua_S,"EaseElasticIn","cc.EaseElasticIn","cc.EaseElastic",nullptr); - + tolua_beginmodule(tolua_S,"EaseElasticIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticIn).name(); g_luaType[typeName] = "cc.EaseElasticIn"; @@ -26896,14 +26896,14 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -26916,7 +26916,7 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -26935,7 +26935,7 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticOut_create'.",&tolua_err); #endif return 0; @@ -26950,9 +26950,9 @@ int lua_register_cocos2dx_EaseElasticOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticOut"); tolua_cclass(tolua_S,"EaseElasticOut","cc.EaseElasticOut","cc.EaseElastic",nullptr); - + tolua_beginmodule(tolua_S,"EaseElasticOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticOut).name(); g_luaType[typeName] = "cc.EaseElasticOut"; @@ -26967,14 +26967,14 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -26987,7 +26987,7 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -27006,7 +27006,7 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticInOut_create'.",&tolua_err); #endif return 0; @@ -27021,9 +27021,9 @@ int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticInOut"); tolua_cclass(tolua_S,"EaseElasticInOut","cc.EaseElasticInOut","cc.EaseElastic",nullptr); - + tolua_beginmodule(tolua_S,"EaseElasticInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticInOut).name(); g_luaType[typeName] = "cc.EaseElasticInOut"; @@ -27041,7 +27041,7 @@ int lua_register_cocos2dx_EaseBounce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounce"); tolua_cclass(tolua_S,"EaseBounce","cc.EaseBounce","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounce"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounce).name(); @@ -27054,17 +27054,17 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27081,7 +27081,7 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceIn_create'.",&tolua_err); #endif return 0; @@ -27096,9 +27096,9 @@ int lua_register_cocos2dx_EaseBounceIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceIn"); tolua_cclass(tolua_S,"EaseBounceIn","cc.EaseBounceIn","cc.EaseBounce",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounceIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceIn).name(); g_luaType[typeName] = "cc.EaseBounceIn"; @@ -27110,17 +27110,17 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27137,7 +27137,7 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceOut_create'.",&tolua_err); #endif return 0; @@ -27152,9 +27152,9 @@ int lua_register_cocos2dx_EaseBounceOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceOut"); tolua_cclass(tolua_S,"EaseBounceOut","cc.EaseBounceOut","cc.EaseBounce",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounceOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceOut).name(); g_luaType[typeName] = "cc.EaseBounceOut"; @@ -27166,17 +27166,17 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27193,7 +27193,7 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceInOut_create'.",&tolua_err); #endif return 0; @@ -27208,9 +27208,9 @@ int lua_register_cocos2dx_EaseBounceInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceInOut"); tolua_cclass(tolua_S,"EaseBounceInOut","cc.EaseBounceInOut","cc.EaseBounce",nullptr); - + tolua_beginmodule(tolua_S,"EaseBounceInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceInOut).name(); g_luaType[typeName] = "cc.EaseBounceInOut"; @@ -27222,17 +27222,17 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27249,7 +27249,7 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackIn_create'.",&tolua_err); #endif return 0; @@ -27264,9 +27264,9 @@ int lua_register_cocos2dx_EaseBackIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackIn"); tolua_cclass(tolua_S,"EaseBackIn","cc.EaseBackIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBackIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackIn).name(); g_luaType[typeName] = "cc.EaseBackIn"; @@ -27278,17 +27278,17 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27305,7 +27305,7 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackOut_create'.",&tolua_err); #endif return 0; @@ -27320,9 +27320,9 @@ int lua_register_cocos2dx_EaseBackOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackOut"); tolua_cclass(tolua_S,"EaseBackOut","cc.EaseBackOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBackOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackOut).name(); g_luaType[typeName] = "cc.EaseBackOut"; @@ -27334,17 +27334,17 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27361,7 +27361,7 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackInOut_create'.",&tolua_err); #endif return 0; @@ -27376,9 +27376,9 @@ int lua_register_cocos2dx_EaseBackInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackInOut"); tolua_cclass(tolua_S,"EaseBackInOut","cc.EaseBackInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBackInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackInOut).name(); g_luaType[typeName] = "cc.EaseBackInOut"; @@ -27391,40 +27391,40 @@ int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) int argc = 0; cocos2d::EaseBezierAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::EaseBezierAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseBezierAction:setBezierParamer"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseBezierAction:setBezierParamer"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.EaseBezierAction:setBezierParamer"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EaseBezierAction:setBezierParamer"); if(!ok) { @@ -27436,29 +27436,29 @@ int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBezierAction:setBezierParamer",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27475,7 +27475,7 @@ int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBezierAction:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_create'.",&tolua_err); #endif return 0; @@ -27490,10 +27490,10 @@ int lua_register_cocos2dx_EaseBezierAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBezierAction"); tolua_cclass(tolua_S,"EaseBezierAction","cc.EaseBezierAction","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseBezierAction"); - tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); + tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBezierAction).name(); g_luaType[typeName] = "cc.EaseBezierAction"; @@ -27505,17 +27505,17 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27532,7 +27532,7 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionIn_create'.",&tolua_err); #endif return 0; @@ -27547,9 +27547,9 @@ int lua_register_cocos2dx_EaseQuadraticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionIn"); tolua_cclass(tolua_S,"EaseQuadraticActionIn","cc.EaseQuadraticActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuadraticActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionIn).name(); g_luaType[typeName] = "cc.EaseQuadraticActionIn"; @@ -27561,17 +27561,17 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27588,7 +27588,7 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionOut_create'.",&tolua_err); #endif return 0; @@ -27603,9 +27603,9 @@ int lua_register_cocos2dx_EaseQuadraticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionOut"); tolua_cclass(tolua_S,"EaseQuadraticActionOut","cc.EaseQuadraticActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuadraticActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionOut).name(); g_luaType[typeName] = "cc.EaseQuadraticActionOut"; @@ -27617,17 +27617,17 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27644,7 +27644,7 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionInOut_create'.",&tolua_err); #endif return 0; @@ -27659,9 +27659,9 @@ int lua_register_cocos2dx_EaseQuadraticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionInOut"); tolua_cclass(tolua_S,"EaseQuadraticActionInOut","cc.EaseQuadraticActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuadraticActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuadraticActionInOut"; @@ -27673,17 +27673,17 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27700,7 +27700,7 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionIn_create'.",&tolua_err); #endif return 0; @@ -27715,9 +27715,9 @@ int lua_register_cocos2dx_EaseQuarticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionIn"); tolua_cclass(tolua_S,"EaseQuarticActionIn","cc.EaseQuarticActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuarticActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionIn).name(); g_luaType[typeName] = "cc.EaseQuarticActionIn"; @@ -27729,17 +27729,17 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27756,7 +27756,7 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionOut_create'.",&tolua_err); #endif return 0; @@ -27771,9 +27771,9 @@ int lua_register_cocos2dx_EaseQuarticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionOut"); tolua_cclass(tolua_S,"EaseQuarticActionOut","cc.EaseQuarticActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuarticActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionOut).name(); g_luaType[typeName] = "cc.EaseQuarticActionOut"; @@ -27785,17 +27785,17 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27812,7 +27812,7 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionInOut_create'.",&tolua_err); #endif return 0; @@ -27827,9 +27827,9 @@ int lua_register_cocos2dx_EaseQuarticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionInOut"); tolua_cclass(tolua_S,"EaseQuarticActionInOut","cc.EaseQuarticActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuarticActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuarticActionInOut"; @@ -27841,17 +27841,17 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27868,7 +27868,7 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionIn_create'.",&tolua_err); #endif return 0; @@ -27883,9 +27883,9 @@ int lua_register_cocos2dx_EaseQuinticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionIn"); tolua_cclass(tolua_S,"EaseQuinticActionIn","cc.EaseQuinticActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuinticActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionIn).name(); g_luaType[typeName] = "cc.EaseQuinticActionIn"; @@ -27897,17 +27897,17 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27924,7 +27924,7 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionOut_create'.",&tolua_err); #endif return 0; @@ -27939,9 +27939,9 @@ int lua_register_cocos2dx_EaseQuinticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionOut"); tolua_cclass(tolua_S,"EaseQuinticActionOut","cc.EaseQuinticActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuinticActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionOut).name(); g_luaType[typeName] = "cc.EaseQuinticActionOut"; @@ -27953,17 +27953,17 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -27980,7 +27980,7 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionInOut_create'.",&tolua_err); #endif return 0; @@ -27995,9 +27995,9 @@ int lua_register_cocos2dx_EaseQuinticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionInOut"); tolua_cclass(tolua_S,"EaseQuinticActionInOut","cc.EaseQuinticActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseQuinticActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuinticActionInOut"; @@ -28009,17 +28009,17 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28036,7 +28036,7 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionIn_create'.",&tolua_err); #endif return 0; @@ -28051,9 +28051,9 @@ int lua_register_cocos2dx_EaseCircleActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionIn"); tolua_cclass(tolua_S,"EaseCircleActionIn","cc.EaseCircleActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCircleActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionIn).name(); g_luaType[typeName] = "cc.EaseCircleActionIn"; @@ -28065,17 +28065,17 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28092,7 +28092,7 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionOut_create'.",&tolua_err); #endif return 0; @@ -28107,9 +28107,9 @@ int lua_register_cocos2dx_EaseCircleActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionOut"); tolua_cclass(tolua_S,"EaseCircleActionOut","cc.EaseCircleActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCircleActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionOut).name(); g_luaType[typeName] = "cc.EaseCircleActionOut"; @@ -28121,17 +28121,17 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28148,7 +28148,7 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionInOut_create'.",&tolua_err); #endif return 0; @@ -28163,9 +28163,9 @@ int lua_register_cocos2dx_EaseCircleActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionInOut"); tolua_cclass(tolua_S,"EaseCircleActionInOut","cc.EaseCircleActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCircleActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionInOut).name(); g_luaType[typeName] = "cc.EaseCircleActionInOut"; @@ -28177,17 +28177,17 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28204,7 +28204,7 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionIn_create'.",&tolua_err); #endif return 0; @@ -28219,9 +28219,9 @@ int lua_register_cocos2dx_EaseCubicActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionIn"); tolua_cclass(tolua_S,"EaseCubicActionIn","cc.EaseCubicActionIn","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCubicActionIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionIn).name(); g_luaType[typeName] = "cc.EaseCubicActionIn"; @@ -28233,17 +28233,17 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28260,7 +28260,7 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionOut_create'.",&tolua_err); #endif return 0; @@ -28275,9 +28275,9 @@ int lua_register_cocos2dx_EaseCubicActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionOut"); tolua_cclass(tolua_S,"EaseCubicActionOut","cc.EaseCubicActionOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCubicActionOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionOut).name(); g_luaType[typeName] = "cc.EaseCubicActionOut"; @@ -28289,17 +28289,17 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::ActionInterval* arg0; @@ -28316,7 +28316,7 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionInOut_create'.",&tolua_err); #endif return 0; @@ -28331,9 +28331,9 @@ int lua_register_cocos2dx_EaseCubicActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionInOut"); tolua_cclass(tolua_S,"EaseCubicActionInOut","cc.EaseCubicActionInOut","cc.ActionEase",nullptr); - + tolua_beginmodule(tolua_S,"EaseCubicActionInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionInOut).name(); g_luaType[typeName] = "cc.EaseCubicActionInOut"; @@ -28351,7 +28351,7 @@ int lua_register_cocos2dx_ActionInstant(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInstant"); tolua_cclass(tolua_S,"ActionInstant","cc.ActionInstant","cc.FiniteTimeAction",nullptr); - + tolua_beginmodule(tolua_S,"ActionInstant"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionInstant).name(); @@ -28364,17 +28364,17 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Show",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28389,7 +28389,7 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Show:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Show_create'.",&tolua_err); #endif return 0; @@ -28404,9 +28404,9 @@ int lua_register_cocos2dx_Show(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Show"); tolua_cclass(tolua_S,"Show","cc.Show","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"Show"); - tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Show).name(); g_luaType[typeName] = "cc.Show"; @@ -28418,17 +28418,17 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Hide",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28443,7 +28443,7 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Hide:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Hide_create'.",&tolua_err); #endif return 0; @@ -28458,9 +28458,9 @@ int lua_register_cocos2dx_Hide(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Hide"); tolua_cclass(tolua_S,"Hide","cc.Hide","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"Hide"); - tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Hide).name(); g_luaType[typeName] = "cc.Hide"; @@ -28472,17 +28472,17 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ToggleVisibility",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28497,7 +28497,7 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ToggleVisibility:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ToggleVisibility_create'.",&tolua_err); #endif return 0; @@ -28512,9 +28512,9 @@ int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ToggleVisibility"); tolua_cclass(tolua_S,"ToggleVisibility","cc.ToggleVisibility","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"ToggleVisibility"); - tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ToggleVisibility).name(); g_luaType[typeName] = "cc.ToggleVisibility"; @@ -28526,17 +28526,17 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RemoveSelf",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -28564,7 +28564,7 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RemoveSelf:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_create'.",&tolua_err); #endif return 0; @@ -28579,9 +28579,9 @@ int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RemoveSelf"); tolua_cclass(tolua_S,"RemoveSelf","cc.RemoveSelf","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"RemoveSelf"); - tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); + tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RemoveSelf).name(); g_luaType[typeName] = "cc.RemoveSelf"; @@ -28593,17 +28593,17 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipX",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -28620,7 +28620,7 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_create'.",&tolua_err); #endif return 0; @@ -28635,9 +28635,9 @@ int lua_register_cocos2dx_FlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX"); tolua_cclass(tolua_S,"FlipX","cc.FlipX","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"FlipX"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX).name(); g_luaType[typeName] = "cc.FlipX"; @@ -28649,17 +28649,17 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipY",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -28676,7 +28676,7 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_create'.",&tolua_err); #endif return 0; @@ -28691,9 +28691,9 @@ int lua_register_cocos2dx_FlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY"); tolua_cclass(tolua_S,"FlipY","cc.FlipY","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"FlipY"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY).name(); g_luaType[typeName] = "cc.FlipY"; @@ -28705,17 +28705,17 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Place",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Vec2 arg0; @@ -28732,7 +28732,7 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Place:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_create'.",&tolua_err); #endif return 0; @@ -28747,9 +28747,9 @@ int lua_register_cocos2dx_Place(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Place"); tolua_cclass(tolua_S,"Place","cc.Place","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"Place"); - tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Place).name(); g_luaType[typeName] = "cc.Place"; @@ -28762,28 +28762,28 @@ int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_execute'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -28795,12 +28795,12 @@ int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:execute",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_execute'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) @@ -28808,28 +28808,28 @@ int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_getTargetCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -28842,12 +28842,12 @@ int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:getTargetCallback",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_getTargetCallback'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) @@ -28855,31 +28855,31 @@ int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_setTargetCallback'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Ref* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Ref",&arg0); if(!ok) { @@ -28891,12 +28891,12 @@ int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:setTargetCallback",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_setTargetCallback'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_CallFunc_finalize(lua_State* tolua_S) @@ -28909,11 +28909,11 @@ int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CallFunc"); tolua_cclass(tolua_S,"CallFunc","cc.CallFunc","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"CallFunc"); - tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); - tolua_function(tolua_S,"getTargetCallback",lua_cocos2dx_CallFunc_getTargetCallback); - tolua_function(tolua_S,"setTargetCallback",lua_cocos2dx_CallFunc_setTargetCallback); + tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); + tolua_function(tolua_S,"getTargetCallback",lua_cocos2dx_CallFunc_getTargetCallback); + tolua_function(tolua_S,"setTargetCallback",lua_cocos2dx_CallFunc_setTargetCallback); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CallFunc).name(); g_luaType[typeName] = "cc.CallFunc"; @@ -28926,28 +28926,28 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::GridAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridAction_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -28960,12 +28960,12 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridAction:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridAction_getGrid'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_GridAction_finalize(lua_State* tolua_S) @@ -28978,9 +28978,9 @@ int lua_register_cocos2dx_GridAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridAction"); tolua_cclass(tolua_S,"GridAction","cc.GridAction","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"GridAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridAction).name(); g_luaType[typeName] = "cc.GridAction"; @@ -28993,28 +28993,28 @@ int lua_cocos2dx_Grid3DAction_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::Grid3DAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3DAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Grid3DAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3DAction_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29027,12 +29027,12 @@ int lua_cocos2dx_Grid3DAction_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3DAction:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3DAction_getGrid'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Grid3DAction_finalize(lua_State* tolua_S) @@ -29045,9 +29045,9 @@ int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3DAction"); tolua_cclass(tolua_S,"Grid3DAction","cc.Grid3DAction","cc.GridAction",nullptr); - + tolua_beginmodule(tolua_S,"Grid3DAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_Grid3DAction_getGrid); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_Grid3DAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3DAction).name(); g_luaType[typeName] = "cc.Grid3DAction"; @@ -29060,28 +29060,28 @@ int lua_cocos2dx_TiledGrid3DAction_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::TiledGrid3DAction* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TiledGrid3DAction",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TiledGrid3DAction*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29094,12 +29094,12 @@ int lua_cocos2dx_TiledGrid3DAction_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TiledGrid3DAction:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_TiledGrid3DAction_finalize(lua_State* tolua_S) @@ -29112,9 +29112,9 @@ int lua_register_cocos2dx_TiledGrid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3DAction"); tolua_cclass(tolua_S,"TiledGrid3DAction","cc.TiledGrid3DAction","cc.GridAction",nullptr); - + tolua_beginmodule(tolua_S,"TiledGrid3DAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_TiledGrid3DAction_getGrid); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_TiledGrid3DAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3DAction).name(); g_luaType[typeName] = "cc.TiledGrid3DAction"; @@ -29126,17 +29126,17 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.StopGrid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -29151,7 +29151,7 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.StopGrid:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_StopGrid_create'.",&tolua_err); #endif return 0; @@ -29166,9 +29166,9 @@ int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.StopGrid"); tolua_cclass(tolua_S,"StopGrid","cc.StopGrid","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"StopGrid"); - tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); + tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::StopGrid).name(); g_luaType[typeName] = "cc.StopGrid"; @@ -29180,17 +29180,17 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ReuseGrid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -29207,7 +29207,7 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ReuseGrid:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_create'.",&tolua_err); #endif return 0; @@ -29222,9 +29222,9 @@ int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ReuseGrid"); tolua_cclass(tolua_S,"ReuseGrid","cc.ReuseGrid","cc.ActionInstant",nullptr); - + tolua_beginmodule(tolua_S,"ReuseGrid"); - tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ReuseGrid).name(); g_luaType[typeName] = "cc.ReuseGrid"; @@ -29237,28 +29237,28 @@ int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29271,12 +29271,12 @@ int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) @@ -29284,31 +29284,31 @@ int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitude"); if(!ok) { @@ -29320,12 +29320,12 @@ int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) @@ -29333,31 +29333,31 @@ int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitudeRate"); if(!ok) { @@ -29369,12 +29369,12 @@ int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) @@ -29382,28 +29382,28 @@ int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29416,29 +29416,29 @@ int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -29461,7 +29461,7 @@ int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_create'.",&tolua_err); #endif return 0; @@ -29476,13 +29476,13 @@ int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves3D"); tolua_cclass(tolua_S,"Waves3D","cc.Waves3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Waves3D"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves3D_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves3D_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_Waves3D_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves3D_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves3D_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_Waves3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Waves3D).name(); g_luaType[typeName] = "cc.Waves3D"; @@ -29494,17 +29494,17 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -29521,7 +29521,7 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX3D:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_create'.",&tolua_err); #endif return 0; @@ -29536,9 +29536,9 @@ int lua_register_cocos2dx_FlipX3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX3D"); tolua_cclass(tolua_S,"FlipX3D","cc.FlipX3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"FlipX3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX3D).name(); g_luaType[typeName] = "cc.FlipX3D"; @@ -29550,17 +29550,17 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipY3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -29577,7 +29577,7 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY3D:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY3D_create'.",&tolua_err); #endif return 0; @@ -29592,9 +29592,9 @@ int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY3D"); tolua_cclass(tolua_S,"FlipY3D","cc.FlipY3D","cc.FlipX3D",nullptr); - + tolua_beginmodule(tolua_S,"FlipY3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY3D).name(); g_luaType[typeName] = "cc.FlipY3D"; @@ -29607,31 +29607,31 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Lens3D:setPosition"); if(!ok) { @@ -29643,12 +29643,12 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) @@ -29656,31 +29656,31 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setConcave'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Lens3D:setConcave"); if(!ok) { @@ -29692,12 +29692,12 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setConcave",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setConcave'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) @@ -29705,31 +29705,31 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setLensEffect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:setLensEffect"); if(!ok) { @@ -29741,12 +29741,12 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setLensEffect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setLensEffect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) @@ -29754,28 +29754,28 @@ int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29788,12 +29788,12 @@ int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:getPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) @@ -29801,28 +29801,28 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_getLensEffect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29835,29 +29835,29 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:getLensEffect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getLensEffect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -29880,7 +29880,7 @@ int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Lens3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_create'.",&tolua_err); #endif return 0; @@ -29895,14 +29895,14 @@ int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Lens3D"); tolua_cclass(tolua_S,"Lens3D","cc.Lens3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Lens3D"); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Lens3D_setPosition); - tolua_function(tolua_S,"setConcave",lua_cocos2dx_Lens3D_setConcave); - tolua_function(tolua_S,"setLensEffect",lua_cocos2dx_Lens3D_setLensEffect); - tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); - tolua_function(tolua_S,"getLensEffect",lua_cocos2dx_Lens3D_getLensEffect); - tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Lens3D_setPosition); + tolua_function(tolua_S,"setConcave",lua_cocos2dx_Lens3D_setConcave); + tolua_function(tolua_S,"setLensEffect",lua_cocos2dx_Lens3D_setLensEffect); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); + tolua_function(tolua_S,"getLensEffect",lua_cocos2dx_Lens3D_getLensEffect); + tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Lens3D).name(); g_luaType[typeName] = "cc.Lens3D"; @@ -29915,31 +29915,31 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:setAmplitudeRate"); if(!ok) { @@ -29951,12 +29951,12 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) @@ -29964,28 +29964,28 @@ int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -29998,12 +29998,12 @@ int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) @@ -30011,31 +30011,31 @@ int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:setAmplitude"); if(!ok) { @@ -30047,12 +30047,12 @@ int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) @@ -30060,28 +30060,28 @@ int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30094,12 +30094,12 @@ int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) @@ -30107,31 +30107,31 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Ripple3D:setPosition"); if(!ok) { @@ -30143,12 +30143,12 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) @@ -30156,28 +30156,28 @@ int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30190,29 +30190,29 @@ int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 6) { double arg0; @@ -30239,7 +30239,7 @@ int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Ripple3D:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_create'.",&tolua_err); #endif return 0; @@ -30254,15 +30254,15 @@ int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ripple3D"); tolua_cclass(tolua_S,"Ripple3D","cc.Ripple3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Ripple3D"); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Ripple3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Ripple3D_setAmplitude); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Ripple3D_getAmplitude); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Ripple3D_setPosition); - tolua_function(tolua_S,"getPosition",lua_cocos2dx_Ripple3D_getPosition); - tolua_function(tolua_S,"create", lua_cocos2dx_Ripple3D_create); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Ripple3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Ripple3D_setAmplitude); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Ripple3D_getAmplitude); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Ripple3D_setPosition); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Ripple3D_getPosition); + tolua_function(tolua_S,"create", lua_cocos2dx_Ripple3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Ripple3D).name(); g_luaType[typeName] = "cc.Ripple3D"; @@ -30274,17 +30274,17 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Shaky3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -30307,7 +30307,7 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Shaky3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_create'.",&tolua_err); #endif return 0; @@ -30322,9 +30322,9 @@ int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Shaky3D"); tolua_cclass(tolua_S,"Shaky3D","cc.Shaky3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Shaky3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Shaky3D).name(); g_luaType[typeName] = "cc.Shaky3D"; @@ -30337,28 +30337,28 @@ int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30371,12 +30371,12 @@ int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) @@ -30384,31 +30384,31 @@ int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitude"); if(!ok) { @@ -30420,12 +30420,12 @@ int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) @@ -30433,31 +30433,31 @@ int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitudeRate"); if(!ok) { @@ -30469,12 +30469,12 @@ int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) @@ -30482,28 +30482,28 @@ int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30516,29 +30516,29 @@ int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Liquid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -30561,7 +30561,7 @@ int lua_cocos2dx_Liquid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Liquid:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_create'.",&tolua_err); #endif return 0; @@ -30576,13 +30576,13 @@ int lua_register_cocos2dx_Liquid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Liquid"); tolua_cclass(tolua_S,"Liquid","cc.Liquid","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Liquid"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Liquid_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Liquid_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Liquid_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Liquid_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_Liquid_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Liquid_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Liquid_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Liquid_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Liquid_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_Liquid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Liquid).name(); g_luaType[typeName] = "cc.Liquid"; @@ -30595,28 +30595,28 @@ int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30629,12 +30629,12 @@ int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) @@ -30642,31 +30642,31 @@ int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitude"); if(!ok) { @@ -30678,12 +30678,12 @@ int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) @@ -30691,31 +30691,31 @@ int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitudeRate"); if(!ok) { @@ -30727,12 +30727,12 @@ int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) @@ -30740,28 +30740,28 @@ int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30774,29 +30774,29 @@ int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Waves_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 6) { double arg0; @@ -30823,7 +30823,7 @@ int lua_cocos2dx_Waves_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_create'.",&tolua_err); #endif return 0; @@ -30838,13 +30838,13 @@ int lua_register_cocos2dx_Waves(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves"); tolua_cclass(tolua_S,"Waves","cc.Waves","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Waves"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_Waves_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_Waves_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Waves).name(); g_luaType[typeName] = "cc.Waves"; @@ -30857,31 +30857,31 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:setAmplitudeRate"); if(!ok) { @@ -30893,12 +30893,12 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) @@ -30906,28 +30906,28 @@ int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -30940,12 +30940,12 @@ int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) @@ -30953,31 +30953,31 @@ int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:setAmplitude"); if(!ok) { @@ -30989,12 +30989,12 @@ int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) @@ -31002,28 +31002,28 @@ int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -31036,12 +31036,12 @@ int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) @@ -31049,31 +31049,31 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Twirl:setPosition"); if(!ok) { @@ -31085,12 +31085,12 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setPosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) @@ -31098,28 +31098,28 @@ int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -31132,29 +31132,29 @@ int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Twirl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 5) { double arg0; @@ -31179,7 +31179,7 @@ int lua_cocos2dx_Twirl_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Twirl:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_create'.",&tolua_err); #endif return 0; @@ -31194,15 +31194,15 @@ int lua_register_cocos2dx_Twirl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Twirl"); tolua_cclass(tolua_S,"Twirl","cc.Twirl","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"Twirl"); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Twirl_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Twirl_setAmplitude); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Twirl_getAmplitude); - tolua_function(tolua_S,"setPosition",lua_cocos2dx_Twirl_setPosition); - tolua_function(tolua_S,"getPosition",lua_cocos2dx_Twirl_getPosition); - tolua_function(tolua_S,"create", lua_cocos2dx_Twirl_create); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Twirl_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Twirl_setAmplitude); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Twirl_getAmplitude); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_Twirl_setPosition); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Twirl_getPosition); + tolua_function(tolua_S,"create", lua_cocos2dx_Twirl_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Twirl).name(); g_luaType[typeName] = "cc.Twirl"; @@ -31215,28 +31215,28 @@ int lua_cocos2dx_PageTurn3D_getGrid(lua_State* tolua_S) int argc = 0; cocos2d::PageTurn3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PageTurn3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::PageTurn3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PageTurn3D_getGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -31249,29 +31249,29 @@ int lua_cocos2dx_PageTurn3D_getGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PageTurn3D:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PageTurn3D_getGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.PageTurn3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31290,7 +31290,7 @@ int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PageTurn3D:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PageTurn3D_create'.",&tolua_err); #endif return 0; @@ -31305,10 +31305,10 @@ int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PageTurn3D"); tolua_cclass(tolua_S,"PageTurn3D","cc.PageTurn3D","cc.Grid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"PageTurn3D"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_PageTurn3D_getGrid); - tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_PageTurn3D_getGrid); + tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PageTurn3D).name(); g_luaType[typeName] = "cc.PageTurn3D"; @@ -31320,17 +31320,17 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31349,7 +31349,7 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_create'.",&tolua_err); #endif return 0; @@ -31364,9 +31364,9 @@ int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTo"); tolua_cclass(tolua_S,"ProgressTo","cc.ProgressTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ProgressTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTo).name(); g_luaType[typeName] = "cc.ProgressTo"; @@ -31378,17 +31378,17 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressFromTo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -31409,7 +31409,7 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressFromTo:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_create'.",&tolua_err); #endif return 0; @@ -31424,9 +31424,9 @@ int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressFromTo"); tolua_cclass(tolua_S,"ProgressFromTo","cc.ProgressFromTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ProgressFromTo"); - tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressFromTo).name(); g_luaType[typeName] = "cc.ProgressFromTo"; @@ -31438,17 +31438,17 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShakyTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -31471,7 +31471,7 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShakyTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_create'.",&tolua_err); #endif return 0; @@ -31486,9 +31486,9 @@ int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShakyTiles3D"); tolua_cclass(tolua_S,"ShakyTiles3D","cc.ShakyTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"ShakyTiles3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShakyTiles3D).name(); g_luaType[typeName] = "cc.ShakyTiles3D"; @@ -31500,17 +31500,17 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShatteredTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -31533,7 +31533,7 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShatteredTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_create'.",&tolua_err); #endif return 0; @@ -31548,9 +31548,9 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShatteredTiles3D"); tolua_cclass(tolua_S,"ShatteredTiles3D","cc.ShatteredTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"ShatteredTiles3D"); - tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShatteredTiles3D).name(); g_luaType[typeName] = "cc.ShatteredTiles3D"; @@ -31563,31 +31563,31 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) int argc = 0; cocos2d::ShuffleTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_getDelta'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.ShuffleTiles:getDelta"); if(!ok) { @@ -31600,29 +31600,29 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:getDelta",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_getDelta'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -31643,7 +31643,7 @@ int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShuffleTiles:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_create'.",&tolua_err); #endif return 0; @@ -31658,10 +31658,10 @@ int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShuffleTiles"); tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"ShuffleTiles"); - tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); - tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); + tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); + tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShuffleTiles).name(); g_luaType[typeName] = "cc.ShuffleTiles"; @@ -31674,31 +31674,31 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOnTile"); if(!ok) { @@ -31710,12 +31710,12 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:turnOnTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) @@ -31723,31 +31723,31 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOffTile"); if(!ok) { @@ -31759,12 +31759,12 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:turnOffTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) @@ -31772,34 +31772,34 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Vec2 arg0; double arg1; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:transformTile"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutTRTiles:transformTile"); if(!ok) { @@ -31811,12 +31811,12 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:transformTile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) @@ -31824,34 +31824,34 @@ int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Size arg0; double arg1; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:testFunc"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutTRTiles:testFunc"); if(!ok) { @@ -31864,29 +31864,29 @@ int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:testFunc",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31905,7 +31905,7 @@ int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutTRTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_create'.",&tolua_err); #endif return 0; @@ -31920,13 +31920,13 @@ int lua_register_cocos2dx_FadeOutTRTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutTRTiles"); tolua_cclass(tolua_S,"FadeOutTRTiles","cc.FadeOutTRTiles","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutTRTiles"); - tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_FadeOutTRTiles_turnOnTile); - tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_FadeOutTRTiles_turnOffTile); - tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutTRTiles_transformTile); - tolua_function(tolua_S,"testFunc",lua_cocos2dx_FadeOutTRTiles_testFunc); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutTRTiles_create); + tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_FadeOutTRTiles_turnOnTile); + tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_FadeOutTRTiles_turnOffTile); + tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutTRTiles_transformTile); + tolua_function(tolua_S,"testFunc",lua_cocos2dx_FadeOutTRTiles_testFunc); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutTRTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutTRTiles).name(); g_luaType[typeName] = "cc.FadeOutTRTiles"; @@ -31938,17 +31938,17 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutBLTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -31967,7 +31967,7 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutBLTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutBLTiles_create'.",&tolua_err); #endif return 0; @@ -31982,9 +31982,9 @@ int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutBLTiles"); tolua_cclass(tolua_S,"FadeOutBLTiles","cc.FadeOutBLTiles","cc.FadeOutTRTiles",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutBLTiles"); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutBLTiles).name(); g_luaType[typeName] = "cc.FadeOutBLTiles"; @@ -31997,34 +31997,34 @@ int lua_cocos2dx_FadeOutUpTiles_transformTile(lua_State* tolua_S) int argc = 0; cocos2d::FadeOutUpTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutUpTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::FadeOutUpTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Vec2 arg0; double arg1; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutUpTiles:transformTile"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutUpTiles:transformTile"); if(!ok) { @@ -32036,29 +32036,29 @@ int lua_cocos2dx_FadeOutUpTiles_transformTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutUpTiles:transformTile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutUpTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32077,7 +32077,7 @@ int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutUpTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_create'.",&tolua_err); #endif return 0; @@ -32092,10 +32092,10 @@ int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutUpTiles"); tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutUpTiles"); - tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutUpTiles_transformTile); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); + tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutUpTiles_transformTile); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutUpTiles).name(); g_luaType[typeName] = "cc.FadeOutUpTiles"; @@ -32107,17 +32107,17 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutDownTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32136,7 +32136,7 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutDownTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutDownTiles_create'.",&tolua_err); #endif return 0; @@ -32151,9 +32151,9 @@ int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutDownTiles"); tolua_cclass(tolua_S,"FadeOutDownTiles","cc.FadeOutDownTiles","cc.FadeOutUpTiles",nullptr); - + tolua_beginmodule(tolua_S,"FadeOutDownTiles"); - tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); + tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutDownTiles).name(); g_luaType[typeName] = "cc.FadeOutDownTiles"; @@ -32166,31 +32166,31 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOnTile"); if(!ok) { @@ -32202,12 +32202,12 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:turnOnTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) @@ -32215,31 +32215,31 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOffTile"); if(!ok) { @@ -32251,12 +32251,12 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:turnOffTile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) @@ -32266,14 +32266,14 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -32292,7 +32292,7 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -32311,7 +32311,7 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TurnOffTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_create'.",&tolua_err); #endif return 0; @@ -32326,11 +32326,11 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TurnOffTiles"); tolua_cclass(tolua_S,"TurnOffTiles","cc.TurnOffTiles","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"TurnOffTiles"); - tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); - tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); - tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); + tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); + tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); + tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TurnOffTiles).name(); g_luaType[typeName] = "cc.TurnOffTiles"; @@ -32343,28 +32343,28 @@ int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32377,12 +32377,12 @@ int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) @@ -32390,31 +32390,31 @@ int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitude"); if(!ok) { @@ -32426,12 +32426,12 @@ int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) @@ -32439,31 +32439,31 @@ int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitudeRate"); if(!ok) { @@ -32475,12 +32475,12 @@ int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) @@ -32488,28 +32488,28 @@ int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32522,29 +32522,29 @@ int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -32567,7 +32567,7 @@ int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.WavesTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_create'.",&tolua_err); #endif return 0; @@ -32582,13 +32582,13 @@ int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.WavesTiles3D"); tolua_cclass(tolua_S,"WavesTiles3D","cc.WavesTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"WavesTiles3D"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_WavesTiles3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_WavesTiles3D_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_WavesTiles3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_WavesTiles3D_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_WavesTiles3D_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_WavesTiles3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_WavesTiles3D_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_WavesTiles3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_WavesTiles3D_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_WavesTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::WavesTiles3D).name(); g_luaType[typeName] = "cc.WavesTiles3D"; @@ -32601,28 +32601,28 @@ int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32635,12 +32635,12 @@ int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:getAmplitudeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) @@ -32648,31 +32648,31 @@ int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitude"); if(!ok) { @@ -32684,12 +32684,12 @@ int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:setAmplitude",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) @@ -32697,31 +32697,31 @@ int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitudeRate"); if(!ok) { @@ -32733,12 +32733,12 @@ int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:setAmplitudeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) @@ -32746,28 +32746,28 @@ int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -32780,29 +32780,29 @@ int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:getAmplitude",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -32825,7 +32825,7 @@ int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_create'.",&tolua_err); #endif return 0; @@ -32840,13 +32840,13 @@ int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTiles3D"); tolua_cclass(tolua_S,"JumpTiles3D","cc.JumpTiles3D","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"JumpTiles3D"); - tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_JumpTiles3D_getAmplitudeRate); - tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_JumpTiles3D_setAmplitude); - tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_JumpTiles3D_setAmplitudeRate); - tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_JumpTiles3D_getAmplitude); - tolua_function(tolua_S,"create", lua_cocos2dx_JumpTiles3D_create); + tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_JumpTiles3D_getAmplitudeRate); + tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_JumpTiles3D_setAmplitude); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_JumpTiles3D_setAmplitudeRate); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_JumpTiles3D_getAmplitude); + tolua_function(tolua_S,"create", lua_cocos2dx_JumpTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTiles3D).name(); g_luaType[typeName] = "cc.JumpTiles3D"; @@ -32858,17 +32858,17 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SplitRows",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32887,7 +32887,7 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitRows:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_create'.",&tolua_err); #endif return 0; @@ -32902,9 +32902,9 @@ int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitRows"); tolua_cclass(tolua_S,"SplitRows","cc.SplitRows","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"SplitRows"); - tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitRows).name(); g_luaType[typeName] = "cc.SplitRows"; @@ -32916,17 +32916,17 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -32945,7 +32945,7 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitCols:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_create'.",&tolua_err); #endif return 0; @@ -32960,9 +32960,9 @@ int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitCols"); tolua_cclass(tolua_S,"SplitCols","cc.SplitCols","cc.TiledGrid3DAction",nullptr); - + tolua_beginmodule(tolua_S,"SplitCols"); - tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); + tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitCols).name(); g_luaType[typeName] = "cc.SplitCols"; @@ -32974,17 +32974,17 @@ int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ActionTween",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -33007,7 +33007,7 @@ int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ActionTween:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionTween_create'.",&tolua_err); #endif return 0; @@ -33022,9 +33022,9 @@ int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionTween"); tolua_cclass(tolua_S,"ActionTween","cc.ActionTween","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"ActionTween"); - tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); + tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionTween).name(); g_luaType[typeName] = "cc.ActionTween"; @@ -33037,28 +33037,28 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_getPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33071,12 +33071,12 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:getPoints",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_getPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) @@ -33084,31 +33084,31 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.CardinalSplineTo:updatePosition"); if(!ok) { @@ -33120,12 +33120,12 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:updatePosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) @@ -33133,37 +33133,37 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; cocos2d::PointArray* arg1; double arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CardinalSplineTo:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.CardinalSplineTo:initWithDuration"); if(!ok) { @@ -33176,12 +33176,12 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:initWithDuration",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) @@ -33189,15 +33189,15 @@ int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33213,11 +33213,11 @@ int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:CardinalSplineTo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_constructor'.",&tolua_err); #endif - + return 0; } @@ -33231,12 +33231,12 @@ int lua_register_cocos2dx_CardinalSplineTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineTo"); tolua_cclass(tolua_S,"CardinalSplineTo","cc.CardinalSplineTo","cc.ActionInterval",nullptr); - + tolua_beginmodule(tolua_S,"CardinalSplineTo"); - tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineTo_constructor); - tolua_function(tolua_S,"getPoints",lua_cocos2dx_CardinalSplineTo_getPoints); - tolua_function(tolua_S,"updatePosition",lua_cocos2dx_CardinalSplineTo_updatePosition); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CardinalSplineTo_initWithDuration); + tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineTo_constructor); + tolua_function(tolua_S,"getPoints",lua_cocos2dx_CardinalSplineTo_getPoints); + tolua_function(tolua_S,"updatePosition",lua_cocos2dx_CardinalSplineTo_updatePosition); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CardinalSplineTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CardinalSplineTo).name(); g_luaType[typeName] = "cc.CardinalSplineTo"; @@ -33249,15 +33249,15 @@ int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) int argc = 0; cocos2d::CardinalSplineBy* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33273,11 +33273,11 @@ int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineBy:CardinalSplineBy",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineBy_constructor'.",&tolua_err); #endif - + return 0; } @@ -33291,9 +33291,9 @@ int lua_register_cocos2dx_CardinalSplineBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineBy"); tolua_cclass(tolua_S,"CardinalSplineBy","cc.CardinalSplineBy","cc.CardinalSplineTo",nullptr); - + tolua_beginmodule(tolua_S,"CardinalSplineBy"); - tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); + tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CardinalSplineBy).name(); g_luaType[typeName] = "cc.CardinalSplineBy"; @@ -33306,34 +33306,34 @@ int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::CatmullRomTo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomTo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CatmullRomTo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; cocos2d::PointArray* arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomTo:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1); if(!ok) { @@ -33346,12 +33346,12 @@ int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CatmullRomTo:initWithDuration",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_CatmullRomTo_finalize(lua_State* tolua_S) @@ -33364,9 +33364,9 @@ int lua_register_cocos2dx_CatmullRomTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomTo"); tolua_cclass(tolua_S,"CatmullRomTo","cc.CatmullRomTo","cc.CardinalSplineTo",nullptr); - + tolua_beginmodule(tolua_S,"CatmullRomTo"); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CatmullRomTo).name(); g_luaType[typeName] = "cc.CatmullRomTo"; @@ -33379,34 +33379,34 @@ int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::CatmullRomBy* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomBy",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::CatmullRomBy*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; cocos2d::PointArray* arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomBy:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1); if(!ok) { @@ -33419,12 +33419,12 @@ int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CatmullRomBy:initWithDuration",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_CatmullRomBy_finalize(lua_State* tolua_S) @@ -33437,9 +33437,9 @@ int lua_register_cocos2dx_CatmullRomBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomBy"); tolua_cclass(tolua_S,"CatmullRomBy","cc.CatmullRomBy","cc.CardinalSplineBy",nullptr); - + tolua_beginmodule(tolua_S,"CatmullRomBy"); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CatmullRomBy).name(); g_luaType[typeName] = "cc.CatmullRomBy"; @@ -33455,7 +33455,7 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -33472,11 +33472,11 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:addProtectedChild"); - + if (!ok) { break; } cobj->addProtectedChild(arg0, arg1); return 0; @@ -33487,7 +33487,7 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } cobj->addProtectedChild(arg0); return 0; @@ -33498,15 +33498,15 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:addProtectedChild"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ProtectedNode:addProtectedChild"); - + if (!ok) { break; } cobj->addProtectedChild(arg0, arg1, arg2); return 0; @@ -33515,12 +33515,12 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:addProtectedChild",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_addProtectedChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) @@ -33528,28 +33528,28 @@ int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33561,12 +33561,12 @@ int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:disableCascadeColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) @@ -33574,31 +33574,31 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:removeProtectedChildByTag"); if(!ok) { @@ -33608,13 +33608,13 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) cobj->removeProtectedChildByTag(arg0); return 0; } - if (argc == 2) + if (argc == 2) { int arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:removeProtectedChildByTag"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChildByTag"); if(!ok) { @@ -33626,12 +33626,12 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeProtectedChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) @@ -33639,34 +33639,34 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:reorderProtectedChild"); if(!ok) { @@ -33678,12 +33678,12 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:reorderProtectedChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* tolua_S) @@ -33691,31 +33691,31 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProtectedNode:removeAllProtectedChildrenWithCleanup"); if(!ok) { @@ -33727,12 +33727,12 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeAllProtectedChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) @@ -33740,28 +33740,28 @@ int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33773,12 +33773,12 @@ int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:disableCascadeOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) @@ -33786,28 +33786,28 @@ int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33819,12 +33819,12 @@ int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:sortAllProtectedChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) @@ -33832,31 +33832,31 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:getProtectedChildByTag"); if(!ok) { @@ -33869,12 +33869,12 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:getProtectedChildByTag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) @@ -33882,31 +33882,31 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -33916,13 +33916,13 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) cobj->removeProtectedChild(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Node* arg0; bool arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChild"); if(!ok) { @@ -33934,12 +33934,12 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeProtectedChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) @@ -33947,28 +33947,28 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -33980,29 +33980,29 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeAllProtectedChildren",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -34017,7 +34017,7 @@ int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProtectedNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_create'.",&tolua_err); #endif return 0; @@ -34032,19 +34032,19 @@ int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProtectedNode"); tolua_cclass(tolua_S,"ProtectedNode","cc.ProtectedNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ProtectedNode"); - tolua_function(tolua_S,"addProtectedChild",lua_cocos2dx_ProtectedNode_addProtectedChild); - tolua_function(tolua_S,"disableCascadeColor",lua_cocos2dx_ProtectedNode_disableCascadeColor); - tolua_function(tolua_S,"removeProtectedChildByTag",lua_cocos2dx_ProtectedNode_removeProtectedChildByTag); - tolua_function(tolua_S,"reorderProtectedChild",lua_cocos2dx_ProtectedNode_reorderProtectedChild); - tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup); - tolua_function(tolua_S,"disableCascadeOpacity",lua_cocos2dx_ProtectedNode_disableCascadeOpacity); - tolua_function(tolua_S,"sortAllProtectedChildren",lua_cocos2dx_ProtectedNode_sortAllProtectedChildren); - tolua_function(tolua_S,"getProtectedChildByTag",lua_cocos2dx_ProtectedNode_getProtectedChildByTag); - tolua_function(tolua_S,"removeProtectedChild",lua_cocos2dx_ProtectedNode_removeProtectedChild); - tolua_function(tolua_S,"removeAllProtectedChildren",lua_cocos2dx_ProtectedNode_removeAllProtectedChildren); - tolua_function(tolua_S,"create", lua_cocos2dx_ProtectedNode_create); + tolua_function(tolua_S,"addProtectedChild",lua_cocos2dx_ProtectedNode_addProtectedChild); + tolua_function(tolua_S,"disableCascadeColor",lua_cocos2dx_ProtectedNode_disableCascadeColor); + tolua_function(tolua_S,"removeProtectedChildByTag",lua_cocos2dx_ProtectedNode_removeProtectedChildByTag); + tolua_function(tolua_S,"reorderProtectedChild",lua_cocos2dx_ProtectedNode_reorderProtectedChild); + tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup); + tolua_function(tolua_S,"disableCascadeOpacity",lua_cocos2dx_ProtectedNode_disableCascadeOpacity); + tolua_function(tolua_S,"sortAllProtectedChildren",lua_cocos2dx_ProtectedNode_sortAllProtectedChildren); + tolua_function(tolua_S,"getProtectedChildByTag",lua_cocos2dx_ProtectedNode_getProtectedChildByTag); + tolua_function(tolua_S,"removeProtectedChild",lua_cocos2dx_ProtectedNode_removeProtectedChild); + tolua_function(tolua_S,"removeAllProtectedChildren",lua_cocos2dx_ProtectedNode_removeAllProtectedChildren); + tolua_function(tolua_S,"create", lua_cocos2dx_ProtectedNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProtectedNode).name(); g_luaType[typeName] = "cc.ProtectedNode"; @@ -34060,7 +34060,7 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34077,11 +34077,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } unsigned int arg1; ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34092,11 +34092,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34107,11 +34107,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34122,11 +34122,11 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } unsigned int arg1; ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformTexture"); - + if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); return 0; @@ -34135,12 +34135,12 @@ int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformTexture",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) @@ -34151,7 +34151,7 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34168,11 +34168,11 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cobj->setUniformMat4(arg0, arg1); return 0; @@ -34183,11 +34183,11 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformMat4"); - + if (!ok) { break; } cobj->setUniformMat4(arg0, arg1); return 0; @@ -34196,12 +34196,12 @@ int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformMat4",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformMat4'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) @@ -34209,28 +34209,28 @@ int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyUniforms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34242,12 +34242,12 @@ int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyUniforms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyUniforms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) @@ -34255,31 +34255,31 @@ int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Mat4 arg0; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgramState:applyGLProgram"); if(!ok) { @@ -34291,12 +34291,12 @@ int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) @@ -34304,28 +34304,28 @@ int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getUniformCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34338,12 +34338,12 @@ int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getUniformCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getUniformCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) @@ -34351,28 +34351,28 @@ int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyAttributes'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34382,10 +34382,10 @@ int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) cobj->applyAttributes(); return 0; } - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLProgramState:applyAttributes"); if(!ok) { @@ -34397,12 +34397,12 @@ int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyAttributes",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyAttributes'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) @@ -34413,7 +34413,7 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34430,11 +34430,11 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } cobj->setUniformFloat(arg0, arg1); return 0; @@ -34445,11 +34445,11 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformFloat"); - + if (!ok) { break; } cobj->setUniformFloat(arg0, arg1); return 0; @@ -34458,12 +34458,12 @@ int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformFloat",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformFloat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) @@ -34474,7 +34474,7 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34491,11 +34491,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cobj->setUniformVec3(arg0, arg1); return 0; @@ -34506,11 +34506,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3"); - + if (!ok) { break; } cobj->setUniformVec3(arg0, arg1); return 0; @@ -34519,12 +34519,12 @@ int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec3",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec3'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) @@ -34535,7 +34535,7 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34552,11 +34552,11 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } cobj->setUniformInt(arg0, arg1); return 0; @@ -34567,11 +34567,11 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgramState:setUniformInt"); - + if (!ok) { break; } cobj->setUniformInt(arg0, arg1); return 0; @@ -34580,12 +34580,12 @@ int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformInt",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformInt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) @@ -34593,28 +34593,28 @@ int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34627,12 +34627,12 @@ int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getVertexAttribCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) @@ -34643,7 +34643,7 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34660,11 +34660,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cocos2d::Vec4 arg1; ok &= luaval_to_vec4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cobj->setUniformVec4(arg0, arg1); return 0; @@ -34675,11 +34675,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cocos2d::Vec4 arg1; ok &= luaval_to_vec4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4"); - + if (!ok) { break; } cobj->setUniformVec4(arg0, arg1); return 0; @@ -34688,12 +34688,12 @@ int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec4",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec4'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) @@ -34701,31 +34701,31 @@ int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GLProgram* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); if(!ok) { @@ -34737,12 +34737,12 @@ int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) @@ -34753,7 +34753,7 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif @@ -34770,11 +34770,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cobj->setUniformVec2(arg0, arg1); return 0; @@ -34785,11 +34785,11 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2"); - + if (!ok) { break; } cobj->setUniformVec2(arg0, arg1); return 0; @@ -34798,12 +34798,12 @@ int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec2",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec2'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) @@ -34811,28 +34811,28 @@ int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34845,12 +34845,12 @@ int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getVertexAttribsFlags",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) @@ -34858,31 +34858,31 @@ int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_apply'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Mat4 arg0; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgramState:apply"); if(!ok) { @@ -34894,12 +34894,12 @@ int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:apply",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_apply'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) @@ -34907,28 +34907,28 @@ int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -34941,29 +34941,29 @@ int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getGLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramState_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::GLProgram* arg0; @@ -34980,7 +34980,7 @@ int lua_cocos2dx_GLProgramState_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_create'.",&tolua_err); #endif return 0; @@ -34989,17 +34989,17 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -35016,7 +35016,7 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:getOrCreateWithGLProgramName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName'.",&tolua_err); #endif return 0; @@ -35025,17 +35025,17 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::GLProgram* arg0; @@ -35052,7 +35052,7 @@ int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:getOrCreateWithGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram'.",&tolua_err); #endif return 0; @@ -35067,27 +35067,27 @@ int lua_register_cocos2dx_GLProgramState(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramState"); tolua_cclass(tolua_S,"GLProgramState","cc.GLProgramState","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLProgramState"); - tolua_function(tolua_S,"setUniformTexture",lua_cocos2dx_GLProgramState_setUniformTexture); - tolua_function(tolua_S,"setUniformMat4",lua_cocos2dx_GLProgramState_setUniformMat4); - tolua_function(tolua_S,"applyUniforms",lua_cocos2dx_GLProgramState_applyUniforms); - tolua_function(tolua_S,"applyGLProgram",lua_cocos2dx_GLProgramState_applyGLProgram); - tolua_function(tolua_S,"getUniformCount",lua_cocos2dx_GLProgramState_getUniformCount); - tolua_function(tolua_S,"applyAttributes",lua_cocos2dx_GLProgramState_applyAttributes); - tolua_function(tolua_S,"setUniformFloat",lua_cocos2dx_GLProgramState_setUniformFloat); - tolua_function(tolua_S,"setUniformVec3",lua_cocos2dx_GLProgramState_setUniformVec3); - tolua_function(tolua_S,"setUniformInt",lua_cocos2dx_GLProgramState_setUniformInt); - tolua_function(tolua_S,"getVertexAttribCount",lua_cocos2dx_GLProgramState_getVertexAttribCount); - tolua_function(tolua_S,"setUniformVec4",lua_cocos2dx_GLProgramState_setUniformVec4); - tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_GLProgramState_setGLProgram); - tolua_function(tolua_S,"setUniformVec2",lua_cocos2dx_GLProgramState_setUniformVec2); - tolua_function(tolua_S,"getVertexAttribsFlags",lua_cocos2dx_GLProgramState_getVertexAttribsFlags); - tolua_function(tolua_S,"apply",lua_cocos2dx_GLProgramState_apply); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramState_getGLProgram); - tolua_function(tolua_S,"create", lua_cocos2dx_GLProgramState_create); - tolua_function(tolua_S,"getOrCreateWithGLProgramName", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName); - tolua_function(tolua_S,"getOrCreateWithGLProgram", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram); + tolua_function(tolua_S,"setUniformTexture",lua_cocos2dx_GLProgramState_setUniformTexture); + tolua_function(tolua_S,"setUniformMat4",lua_cocos2dx_GLProgramState_setUniformMat4); + tolua_function(tolua_S,"applyUniforms",lua_cocos2dx_GLProgramState_applyUniforms); + tolua_function(tolua_S,"applyGLProgram",lua_cocos2dx_GLProgramState_applyGLProgram); + tolua_function(tolua_S,"getUniformCount",lua_cocos2dx_GLProgramState_getUniformCount); + tolua_function(tolua_S,"applyAttributes",lua_cocos2dx_GLProgramState_applyAttributes); + tolua_function(tolua_S,"setUniformFloat",lua_cocos2dx_GLProgramState_setUniformFloat); + tolua_function(tolua_S,"setUniformVec3",lua_cocos2dx_GLProgramState_setUniformVec3); + tolua_function(tolua_S,"setUniformInt",lua_cocos2dx_GLProgramState_setUniformInt); + tolua_function(tolua_S,"getVertexAttribCount",lua_cocos2dx_GLProgramState_getVertexAttribCount); + tolua_function(tolua_S,"setUniformVec4",lua_cocos2dx_GLProgramState_setUniformVec4); + tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_GLProgramState_setGLProgram); + tolua_function(tolua_S,"setUniformVec2",lua_cocos2dx_GLProgramState_setUniformVec2); + tolua_function(tolua_S,"getVertexAttribsFlags",lua_cocos2dx_GLProgramState_getVertexAttribsFlags); + tolua_function(tolua_S,"apply",lua_cocos2dx_GLProgramState_apply); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramState_getGLProgram); + tolua_function(tolua_S,"create", lua_cocos2dx_GLProgramState_create); + tolua_function(tolua_S,"getOrCreateWithGLProgramName", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName); + tolua_function(tolua_S,"getOrCreateWithGLProgram", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgramState).name(); g_luaType[typeName] = "cc.GLProgramState"; @@ -35100,28 +35100,28 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35133,12 +35133,12 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:updateAtlasValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) @@ -35146,28 +35146,28 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35180,12 +35180,12 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) @@ -35193,31 +35193,31 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -35229,12 +35229,12 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) @@ -35242,28 +35242,28 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35276,12 +35276,12 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) @@ -35289,28 +35289,28 @@ int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -35323,12 +35323,12 @@ int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getQuadsToDraw",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) @@ -35336,31 +35336,31 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -35372,12 +35372,12 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) @@ -35385,31 +35385,31 @@ int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { ssize_t arg0; - + ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.AtlasNode:setQuadsToDraw"); if(!ok) { @@ -35421,29 +35421,29 @@ int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setQuadsToDraw",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { std::string arg0; @@ -35466,7 +35466,7 @@ int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AtlasNode:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_create'.",&tolua_err); #endif return 0; @@ -35481,16 +35481,16 @@ int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AtlasNode"); tolua_cclass(tolua_S,"AtlasNode","cc.AtlasNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"AtlasNode"); - tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_AtlasNode_getTexture); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_AtlasNode_setTextureAtlas); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_AtlasNode_getTextureAtlas); - tolua_function(tolua_S,"getQuadsToDraw",lua_cocos2dx_AtlasNode_getQuadsToDraw); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_AtlasNode_setTexture); - tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); - tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); + tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_AtlasNode_getTexture); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_AtlasNode_setTextureAtlas); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_AtlasNode_getTextureAtlas); + tolua_function(tolua_S,"getQuadsToDraw",lua_cocos2dx_AtlasNode_getQuadsToDraw); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_AtlasNode_setTexture); + tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); + tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AtlasNode).name(); g_luaType[typeName] = "cc.AtlasNode"; @@ -35503,37 +35503,37 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawLine'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawLine"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawLine"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawLine"); if(!ok) { @@ -35545,12 +35545,12 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawLine",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawLine'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) @@ -35561,7 +35561,7 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -35578,23 +35578,23 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) if (argc == 5) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Color4F arg4; ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cobj->drawRect(arg0, arg1, arg2, arg3, arg4); return 0; @@ -35605,15 +35605,15 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) if (argc == 3) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cocos2d::Color4F arg2; ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); - + if (!ok) { break; } cobj->drawRect(arg0, arg1, arg2); return 0; @@ -35622,12 +35622,12 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawRect",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) @@ -35638,7 +35638,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -35655,23 +35655,23 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) if (argc == 5) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cocos2d::Color4F arg4; ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4); return 0; @@ -35682,31 +35682,31 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) if (argc == 7) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cocos2d::Color4F arg6; ok &=luaval_to_color4f(tolua_S, 8, &arg6, "cc.DrawNode:drawSolidCircle"); - + if (!ok) { break; } cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6); return 0; @@ -35715,12 +35715,12 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSolidCircle",argc, 7); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSolidCircle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) @@ -35728,34 +35728,34 @@ int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDrawGLPoint"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDrawGLPoint"); if(!ok) { @@ -35767,12 +35767,12 @@ int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDrawGLPoint",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) @@ -35780,37 +35780,37 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawDot'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; double arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawDot"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawDot"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawDot"); if(!ok) { @@ -35822,12 +35822,12 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawDot",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawDot'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) @@ -35835,40 +35835,40 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSegment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; double arg2; cocos2d::Color4F arg3; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSegment"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawSegment"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSegment"); - + ok &=luaval_to_color4f(tolua_S, 5, &arg3, "cc.DrawNode:drawSegment"); if(!ok) { @@ -35880,12 +35880,12 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSegment",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSegment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) @@ -35893,34 +35893,34 @@ int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDraw"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDraw"); if(!ok) { @@ -35932,12 +35932,12 @@ int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDraw",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) @@ -35948,7 +35948,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif @@ -35965,27 +35965,27 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) if (argc == 6) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cocos2d::Color4F arg5; ok &=luaval_to_color4f(tolua_S, 7, &arg5, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cobj->drawCircle(arg0, arg1, arg2, arg3, arg4, arg5); return 0; @@ -35996,35 +35996,35 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) if (argc == 8) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } double arg6; ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cocos2d::Color4F arg7; ok &=luaval_to_color4f(tolua_S, 9, &arg7, "cc.DrawNode:drawCircle"); - + if (!ok) { break; } cobj->drawCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); return 0; @@ -36033,12 +36033,12 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawCircle",argc, 8); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawCircle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) @@ -36046,43 +36046,43 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawQuadBezier'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 5) + if (argc == 5) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; unsigned int arg3; cocos2d::Color4F arg4; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawQuadBezier"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawQuadBezier"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawQuadBezier"); - + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawQuadBezier"); - + ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawQuadBezier"); if(!ok) { @@ -36094,12 +36094,12 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawQuadBezier",argc, 5); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawQuadBezier'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) @@ -36107,34 +36107,34 @@ int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDrawGLLine'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; - + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDrawGLLine"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDrawGLLine"); if(!ok) { @@ -36146,12 +36146,12 @@ int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDrawGLLine",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDrawGLLine'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) @@ -36159,40 +36159,40 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawTriangle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; cocos2d::Color4F arg3; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawTriangle"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawTriangle"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawTriangle"); - + ok &=luaval_to_color4f(tolua_S, 5, &arg3, "cc.DrawNode:drawTriangle"); if(!ok) { @@ -36204,12 +36204,12 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawTriangle",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawTriangle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) @@ -36217,28 +36217,28 @@ int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_clear'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -36250,12 +36250,12 @@ int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:clear",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_clear'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) @@ -36263,37 +36263,37 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSolidRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidRect"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawSolidRect"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawSolidRect"); if(!ok) { @@ -36305,12 +36305,12 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSolidRect",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSolidRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) @@ -36318,37 +36318,37 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawPoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; double arg1; cocos2d::Color4F arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawPoint"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawPoint"); - + ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawPoint"); if(!ok) { @@ -36360,12 +36360,12 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawPoint",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawPoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) @@ -36373,28 +36373,28 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawCubicBezier'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 6) + if (argc == 6) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; @@ -36402,17 +36402,17 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) cocos2d::Vec2 arg3; unsigned int arg4; cocos2d::Color4F arg5; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawCubicBezier"); - + ok &= luaval_to_uint32(tolua_S, 6,&arg4, "cc.DrawNode:drawCubicBezier"); - + ok &=luaval_to_color4f(tolua_S, 7, &arg5, "cc.DrawNode:drawCubicBezier"); if(!ok) { @@ -36424,29 +36424,29 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawCubicBezier",argc, 6); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawCubicBezier'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -36461,7 +36461,7 @@ int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DrawNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_create'.",&tolua_err); #endif return 0; @@ -36476,24 +36476,24 @@ int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DrawNode"); tolua_cclass(tolua_S,"DrawNode","cc.DrawNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"DrawNode"); - tolua_function(tolua_S,"drawLine",lua_cocos2dx_DrawNode_drawLine); - tolua_function(tolua_S,"drawRect",lua_cocos2dx_DrawNode_drawRect); - tolua_function(tolua_S,"drawSolidCircle",lua_cocos2dx_DrawNode_drawSolidCircle); - tolua_function(tolua_S,"onDrawGLPoint",lua_cocos2dx_DrawNode_onDrawGLPoint); - tolua_function(tolua_S,"drawDot",lua_cocos2dx_DrawNode_drawDot); - tolua_function(tolua_S,"drawSegment",lua_cocos2dx_DrawNode_drawSegment); - tolua_function(tolua_S,"onDraw",lua_cocos2dx_DrawNode_onDraw); - tolua_function(tolua_S,"drawCircle",lua_cocos2dx_DrawNode_drawCircle); - tolua_function(tolua_S,"drawQuadBezier",lua_cocos2dx_DrawNode_drawQuadBezier); - tolua_function(tolua_S,"onDrawGLLine",lua_cocos2dx_DrawNode_onDrawGLLine); - tolua_function(tolua_S,"drawTriangle",lua_cocos2dx_DrawNode_drawTriangle); - tolua_function(tolua_S,"clear",lua_cocos2dx_DrawNode_clear); - tolua_function(tolua_S,"drawSolidRect",lua_cocos2dx_DrawNode_drawSolidRect); - tolua_function(tolua_S,"drawPoint",lua_cocos2dx_DrawNode_drawPoint); - tolua_function(tolua_S,"drawCubicBezier",lua_cocos2dx_DrawNode_drawCubicBezier); - tolua_function(tolua_S,"create", lua_cocos2dx_DrawNode_create); + tolua_function(tolua_S,"drawLine",lua_cocos2dx_DrawNode_drawLine); + tolua_function(tolua_S,"drawRect",lua_cocos2dx_DrawNode_drawRect); + tolua_function(tolua_S,"drawSolidCircle",lua_cocos2dx_DrawNode_drawSolidCircle); + tolua_function(tolua_S,"onDrawGLPoint",lua_cocos2dx_DrawNode_onDrawGLPoint); + tolua_function(tolua_S,"drawDot",lua_cocos2dx_DrawNode_drawDot); + tolua_function(tolua_S,"drawSegment",lua_cocos2dx_DrawNode_drawSegment); + tolua_function(tolua_S,"onDraw",lua_cocos2dx_DrawNode_onDraw); + tolua_function(tolua_S,"drawCircle",lua_cocos2dx_DrawNode_drawCircle); + tolua_function(tolua_S,"drawQuadBezier",lua_cocos2dx_DrawNode_drawQuadBezier); + tolua_function(tolua_S,"onDrawGLLine",lua_cocos2dx_DrawNode_onDrawGLLine); + tolua_function(tolua_S,"drawTriangle",lua_cocos2dx_DrawNode_drawTriangle); + tolua_function(tolua_S,"clear",lua_cocos2dx_DrawNode_clear); + tolua_function(tolua_S,"drawSolidRect",lua_cocos2dx_DrawNode_drawSolidRect); + tolua_function(tolua_S,"drawPoint",lua_cocos2dx_DrawNode_drawPoint); + tolua_function(tolua_S,"drawCubicBezier",lua_cocos2dx_DrawNode_drawCubicBezier); + tolua_function(tolua_S,"create", lua_cocos2dx_DrawNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DrawNode).name(); g_luaType[typeName] = "cc.DrawNode"; @@ -36506,31 +36506,31 @@ int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_setString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:setString"); if(!ok) { @@ -36542,12 +36542,12 @@ int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:setString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_setString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) @@ -36558,7 +36558,7 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif @@ -36575,11 +36575,11 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -36591,23 +36591,23 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); @@ -36619,23 +36619,23 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:initWithString"); - + if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); @@ -36645,12 +36645,12 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:initWithString",argc, 5); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_initWithString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) @@ -36658,28 +36658,28 @@ int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -36691,12 +36691,12 @@ int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:updateAtlasValues",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) @@ -36704,28 +36704,28 @@ int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_getString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -36738,12 +36738,12 @@ int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:getString",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_getString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) @@ -36753,14 +36753,14 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -36785,7 +36785,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -36795,7 +36795,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -36814,7 +36814,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LabelAtlas:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_create'.",&tolua_err); #endif return 0; @@ -36829,13 +36829,13 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LabelAtlas"); tolua_cclass(tolua_S,"LabelAtlas","cc.LabelAtlas","cc.AtlasNode",nullptr); - + tolua_beginmodule(tolua_S,"LabelAtlas"); - tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); - tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); - tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_LabelAtlas_updateAtlasValues); - tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); - tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); + tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); + tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); + tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_LabelAtlas_updateAtlasValues); + tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); + tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LabelAtlas).name(); g_luaType[typeName] = "cc.LabelAtlas"; @@ -36848,31 +36848,31 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_appendChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -36884,12 +36884,12 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:appendChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_appendChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) @@ -36897,37 +36897,37 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Sprite* arg0; int arg1; int arg2; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:addSpriteWithoutQuad"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.SpriteBatchNode:addSpriteWithoutQuad"); if(!ok) { @@ -36940,12 +36940,12 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:addSpriteWithoutQuad",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) @@ -36953,31 +36953,31 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:reorderBatch"); if(!ok) { @@ -36989,12 +36989,12 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:reorderBatch",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -37002,31 +37002,31 @@ int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:removeAllChildrenWithCleanup"); if(!ok) { @@ -37038,12 +37038,12 @@ int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) @@ -37051,31 +37051,31 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -37088,12 +37088,12 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:lowestAtlasIndexInChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) @@ -37101,34 +37101,34 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Sprite* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:atlasIndexForChild"); if(!ok) { @@ -37141,12 +37141,12 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:atlasIndexForChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) @@ -37154,31 +37154,31 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -37190,12 +37190,12 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) @@ -37203,28 +37203,28 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37237,12 +37237,12 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) @@ -37250,28 +37250,28 @@ int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37283,12 +37283,12 @@ int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:increaseAtlasCapacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) @@ -37296,28 +37296,28 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37330,12 +37330,12 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) @@ -37343,34 +37343,34 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Sprite* arg0; ssize_t arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:insertQuadFromSprite"); if(!ok) { @@ -37382,12 +37382,12 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:insertQuadFromSprite",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) @@ -37395,31 +37395,31 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -37431,12 +37431,12 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) @@ -37444,34 +37444,34 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Sprite* arg0; ssize_t arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:rebuildIndexInOrder"); if(!ok) { @@ -37484,12 +37484,12 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:rebuildIndexInOrder",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) @@ -37497,31 +37497,31 @@ int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -37534,12 +37534,12 @@ int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:highestAtlasIndexInChild",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) @@ -37547,34 +37547,34 @@ int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { ssize_t arg0; bool arg1; - + ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.SpriteBatchNode:removeChildAtIndex"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SpriteBatchNode:removeChildAtIndex"); if(!ok) { @@ -37586,12 +37586,12 @@ int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeChildAtIndex",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) @@ -37599,31 +37599,31 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -37635,29 +37635,29 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeSpriteFromAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -37689,7 +37689,7 @@ int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_create'.",&tolua_err); #endif return 0; @@ -37698,17 +37698,17 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Texture2D* arg0; @@ -37740,7 +37740,7 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'.",&tolua_err); #endif return 0; @@ -37755,26 +37755,26 @@ int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteBatchNode"); tolua_cclass(tolua_S,"SpriteBatchNode","cc.SpriteBatchNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"SpriteBatchNode"); - tolua_function(tolua_S,"appendChild",lua_cocos2dx_SpriteBatchNode_appendChild); - tolua_function(tolua_S,"addSpriteWithoutQuad",lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad); - tolua_function(tolua_S,"reorderBatch",lua_cocos2dx_SpriteBatchNode_reorderBatch); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild); - tolua_function(tolua_S,"atlasIndexForChild",lua_cocos2dx_SpriteBatchNode_atlasIndexForChild); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_SpriteBatchNode_setTextureAtlas); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteBatchNode_getTexture); - tolua_function(tolua_S,"increaseAtlasCapacity",lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_SpriteBatchNode_getTextureAtlas); - tolua_function(tolua_S,"insertQuadFromSprite",lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteBatchNode_setTexture); - tolua_function(tolua_S,"rebuildIndexInOrder",lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder); - tolua_function(tolua_S,"highestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild); - tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_SpriteBatchNode_removeChildAtIndex); - tolua_function(tolua_S,"removeSpriteFromAtlas",lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas); - tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); + tolua_function(tolua_S,"appendChild",lua_cocos2dx_SpriteBatchNode_appendChild); + tolua_function(tolua_S,"addSpriteWithoutQuad",lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad); + tolua_function(tolua_S,"reorderBatch",lua_cocos2dx_SpriteBatchNode_reorderBatch); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild); + tolua_function(tolua_S,"atlasIndexForChild",lua_cocos2dx_SpriteBatchNode_atlasIndexForChild); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_SpriteBatchNode_setTextureAtlas); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteBatchNode_getTexture); + tolua_function(tolua_S,"increaseAtlasCapacity",lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_SpriteBatchNode_getTextureAtlas); + tolua_function(tolua_S,"insertQuadFromSprite",lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteBatchNode_setTexture); + tolua_function(tolua_S,"rebuildIndexInOrder",lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder); + tolua_function(tolua_S,"highestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild); + tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_SpriteBatchNode_removeChildAtIndex); + tolua_function(tolua_S,"removeSpriteFromAtlas",lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas); + tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteBatchNode).name(); g_luaType[typeName] = "cc.SpriteBatchNode"; @@ -37787,28 +37787,28 @@ int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_isClipMarginEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37821,12 +37821,12 @@ int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:isClipMarginEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_isClipMarginEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) @@ -37834,28 +37834,28 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -37865,10 +37865,10 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) cobj->enableShadow(); return 0; } - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); if(!ok) { @@ -37878,13 +37878,13 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) cobj->enableShadow(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Color4B arg0; cocos2d::Size arg1; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); - + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Label:enableShadow"); if(!ok) { @@ -37894,16 +37894,16 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) cobj->enableShadow(arg0, arg1); return 0; } - if (argc == 3) + if (argc == 3) { cocos2d::Color4B arg0; cocos2d::Size arg1; int arg2; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); - + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Label:enableShadow"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:enableShadow"); if(!ok) { @@ -37915,12 +37915,12 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableShadow",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableShadow'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) @@ -37928,34 +37928,34 @@ int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setDimensions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { unsigned int arg0; unsigned int arg1; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setDimensions"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Label:setDimensions"); if(!ok) { @@ -37967,12 +37967,12 @@ int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setDimensions",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setDimensions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getString(lua_State* tolua_S) @@ -37980,28 +37980,28 @@ int lua_cocos2dx_Label_getString(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38014,12 +38014,12 @@ int lua_cocos2dx_Label_getString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getString",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) @@ -38027,28 +38027,28 @@ int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38061,12 +38061,12 @@ int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getHeight",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) @@ -38074,28 +38074,28 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_disableEffect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38107,12 +38107,12 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:disableEffect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_disableEffect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) @@ -38120,31 +38120,31 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTTFConfig'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::_ttfConfig arg0; - + ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:setTTFConfig"); if(!ok) { @@ -38157,12 +38157,12 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setTTFConfig",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTTFConfig'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) @@ -38170,28 +38170,28 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTextColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38204,12 +38204,12 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTextColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTextColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) @@ -38217,31 +38217,31 @@ int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setWidth"); if(!ok) { @@ -38253,12 +38253,12 @@ int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setWidth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) @@ -38266,28 +38266,28 @@ int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getMaxLineWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38300,12 +38300,12 @@ int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getMaxLineWidth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getMaxLineWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) @@ -38313,28 +38313,28 @@ int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getHorizontalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38347,12 +38347,12 @@ int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getHorizontalAlignment",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getHorizontalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) @@ -38360,31 +38360,31 @@ int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setClipMarginEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:setClipMarginEnabled"); if(!ok) { @@ -38396,12 +38396,12 @@ int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setClipMarginEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setClipMarginEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setString(lua_State* tolua_S) @@ -38409,31 +38409,31 @@ int lua_cocos2dx_Label_setString(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setString"); if(!ok) { @@ -38445,12 +38445,12 @@ int lua_cocos2dx_Label_setString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) @@ -38458,31 +38458,31 @@ int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setSystemFontName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setSystemFontName"); if(!ok) { @@ -38494,12 +38494,12 @@ int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setSystemFontName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setSystemFontName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) @@ -38507,31 +38507,31 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setBMFontFilePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); if(!ok) { @@ -38542,13 +38542,13 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) tolua_pushboolean(tolua_S,(bool)ret); return 1; } - if (argc == 2) + if (argc == 2) { std::string arg0; cocos2d::Vec2 arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.Label:setBMFontFilePath"); if(!ok) { @@ -38561,12 +38561,12 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setBMFontFilePath",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setBMFontFilePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) @@ -38574,28 +38574,28 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getFontAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38608,12 +38608,12 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getFontAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getFontAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) @@ -38621,31 +38621,31 @@ int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setLineHeight"); if(!ok) { @@ -38657,12 +38657,12 @@ int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineHeight",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) @@ -38670,31 +38670,31 @@ int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setSystemFontSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setSystemFontSize"); if(!ok) { @@ -38706,12 +38706,12 @@ int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setSystemFontSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setSystemFontSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) @@ -38719,28 +38719,28 @@ int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_updateContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38752,12 +38752,12 @@ int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:updateContent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_updateContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) @@ -38765,28 +38765,28 @@ int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getStringLength'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38799,12 +38799,12 @@ int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getStringLength",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getStringLength'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) @@ -38812,31 +38812,31 @@ int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:setLineBreakWithoutSpace"); if(!ok) { @@ -38848,12 +38848,12 @@ int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineBreakWithoutSpace",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) @@ -38861,28 +38861,28 @@ int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getStringNumLines'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -38895,12 +38895,12 @@ int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getStringNumLines",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getStringNumLines'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) @@ -38908,31 +38908,31 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableOutline'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); if(!ok) { @@ -38942,13 +38942,13 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) cobj->enableOutline(arg0); return 0; } - if (argc == 2) + if (argc == 2) { cocos2d::Color4B arg0; int arg1; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:enableOutline"); if(!ok) { @@ -38960,12 +38960,12 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableOutline",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableOutline'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) @@ -38973,28 +38973,28 @@ int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getAdditionalKerning'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39007,12 +39007,12 @@ int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getAdditionalKerning",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getAdditionalKerning'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) @@ -39023,7 +39023,7 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif @@ -39040,19 +39040,19 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) if (argc == 4) { cocos2d::Texture2D* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:setCharMap"); - + if (!ok) { break; } bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -39064,19 +39064,19 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:setCharMap"); - + if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:setCharMap"); - + if (!ok) { break; } bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -39088,7 +39088,7 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setCharMap"); - + if (!ok) { break; } bool ret = cobj->setCharMap(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -39098,12 +39098,12 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setCharMap",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setCharMap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) @@ -39111,28 +39111,28 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getDimensions'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39145,12 +39145,12 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getDimensions",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getDimensions'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) @@ -39158,31 +39158,31 @@ int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setMaxLineWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setMaxLineWidth"); if(!ok) { @@ -39194,12 +39194,12 @@ int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setMaxLineWidth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setMaxLineWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) @@ -39207,28 +39207,28 @@ int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getSystemFontName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39241,12 +39241,12 @@ int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getSystemFontName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getSystemFontName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) @@ -39254,31 +39254,31 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setVerticalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextVAlignment arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setVerticalAlignment"); if(!ok) { @@ -39290,12 +39290,12 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setVerticalAlignment",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setVerticalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) @@ -39303,28 +39303,28 @@ int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLineHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39337,12 +39337,12 @@ int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLineHeight",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLineHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) @@ -39350,28 +39350,28 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTTFConfig'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39384,12 +39384,12 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTTFConfig",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTTFConfig'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) @@ -39397,28 +39397,28 @@ int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getVerticalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39431,12 +39431,12 @@ int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getVerticalAlignment",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getVerticalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) @@ -39444,31 +39444,31 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTextColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:setTextColor"); if(!ok) { @@ -39480,12 +39480,12 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setTextColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTextColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) @@ -39493,31 +39493,31 @@ int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Label:setHeight"); if(!ok) { @@ -39529,12 +39529,12 @@ int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setHeight",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) @@ -39542,28 +39542,28 @@ int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39576,12 +39576,12 @@ int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getWidth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) @@ -39589,31 +39589,31 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableGlow'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4B arg0; - + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableGlow"); if(!ok) { @@ -39625,12 +39625,12 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableGlow",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableGlow'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) @@ -39638,31 +39638,31 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLetter'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:getLetter"); if(!ok) { @@ -39675,12 +39675,12 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLetter",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLetter'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) @@ -39688,31 +39688,31 @@ int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setAdditionalKerning'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setAdditionalKerning"); if(!ok) { @@ -39724,12 +39724,12 @@ int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setAdditionalKerning",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setAdditionalKerning'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) @@ -39737,28 +39737,28 @@ int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getSystemFontSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39771,12 +39771,12 @@ int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getSystemFontSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getSystemFontSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) @@ -39784,28 +39784,28 @@ int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTextAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39818,12 +39818,12 @@ int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTextAlignment",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTextAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) @@ -39831,28 +39831,28 @@ int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getBMFontFilePath'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -39865,12 +39865,12 @@ int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getBMFontFilePath",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getBMFontFilePath'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) @@ -39878,31 +39878,31 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setHorizontalAlignment'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextHAlignment arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setHorizontalAlignment"); if(!ok) { @@ -39914,12 +39914,12 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setHorizontalAlignment",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setHorizontalAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) @@ -39930,7 +39930,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif @@ -39947,11 +39947,11 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) if (argc == 2) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); - + if (!ok) { break; } cocos2d::TextVAlignment arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setAlignment"); - + if (!ok) { break; } cobj->setAlignment(arg0, arg1); return 0; @@ -39962,7 +39962,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) if (argc == 1) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); - + if (!ok) { break; } cobj->setAlignment(arg0); return 0; @@ -39971,12 +39971,12 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setAlignment",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setAlignment'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) @@ -39984,28 +39984,28 @@ int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_requestSystemFontRefresh'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40017,29 +40017,29 @@ int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:requestSystemFontRefresh",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_requestSystemFontRefresh'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -40115,7 +40115,7 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithBMFont",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithBMFont'.",&tolua_err); #endif return 0; @@ -40124,17 +40124,17 @@ int lua_cocos2dx_Label_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -40149,7 +40149,7 @@ int lua_cocos2dx_Label_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_create'.",&tolua_err); #endif return 0; @@ -40161,14 +40161,14 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 4) { @@ -40190,7 +40190,7 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -40212,7 +40212,7 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -40228,7 +40228,7 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Label:createWithCharMap",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithCharMap'.",&tolua_err); #endif return 0; @@ -40237,17 +40237,17 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { std::string arg0; @@ -40331,7 +40331,7 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithSystemFont",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithSystemFont'.",&tolua_err); #endif return 0; @@ -40346,56 +40346,56 @@ int lua_register_cocos2dx_Label(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Label"); tolua_cclass(tolua_S,"Label","cc.Label","cc.SpriteBatchNode",nullptr); - + tolua_beginmodule(tolua_S,"Label"); - tolua_function(tolua_S,"isClipMarginEnabled",lua_cocos2dx_Label_isClipMarginEnabled); - tolua_function(tolua_S,"enableShadow",lua_cocos2dx_Label_enableShadow); - tolua_function(tolua_S,"setDimensions",lua_cocos2dx_Label_setDimensions); - tolua_function(tolua_S,"getString",lua_cocos2dx_Label_getString); - tolua_function(tolua_S,"getHeight",lua_cocos2dx_Label_getHeight); - tolua_function(tolua_S,"disableEffect",lua_cocos2dx_Label_disableEffect); - tolua_function(tolua_S,"setTTFConfig",lua_cocos2dx_Label_setTTFConfig); - tolua_function(tolua_S,"getTextColor",lua_cocos2dx_Label_getTextColor); - tolua_function(tolua_S,"setWidth",lua_cocos2dx_Label_setWidth); - tolua_function(tolua_S,"getMaxLineWidth",lua_cocos2dx_Label_getMaxLineWidth); - tolua_function(tolua_S,"getHorizontalAlignment",lua_cocos2dx_Label_getHorizontalAlignment); - tolua_function(tolua_S,"setClipMarginEnabled",lua_cocos2dx_Label_setClipMarginEnabled); - tolua_function(tolua_S,"setString",lua_cocos2dx_Label_setString); - tolua_function(tolua_S,"setSystemFontName",lua_cocos2dx_Label_setSystemFontName); - tolua_function(tolua_S,"setBMFontFilePath",lua_cocos2dx_Label_setBMFontFilePath); - tolua_function(tolua_S,"getFontAtlas",lua_cocos2dx_Label_getFontAtlas); - tolua_function(tolua_S,"setLineHeight",lua_cocos2dx_Label_setLineHeight); - tolua_function(tolua_S,"setSystemFontSize",lua_cocos2dx_Label_setSystemFontSize); - tolua_function(tolua_S,"updateContent",lua_cocos2dx_Label_updateContent); - tolua_function(tolua_S,"getStringLength",lua_cocos2dx_Label_getStringLength); - tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_cocos2dx_Label_setLineBreakWithoutSpace); - tolua_function(tolua_S,"getStringNumLines",lua_cocos2dx_Label_getStringNumLines); - tolua_function(tolua_S,"enableOutline",lua_cocos2dx_Label_enableOutline); - tolua_function(tolua_S,"getAdditionalKerning",lua_cocos2dx_Label_getAdditionalKerning); - tolua_function(tolua_S,"setCharMap",lua_cocos2dx_Label_setCharMap); - tolua_function(tolua_S,"getDimensions",lua_cocos2dx_Label_getDimensions); - tolua_function(tolua_S,"setMaxLineWidth",lua_cocos2dx_Label_setMaxLineWidth); - tolua_function(tolua_S,"getSystemFontName",lua_cocos2dx_Label_getSystemFontName); - tolua_function(tolua_S,"setVerticalAlignment",lua_cocos2dx_Label_setVerticalAlignment); - tolua_function(tolua_S,"getLineHeight",lua_cocos2dx_Label_getLineHeight); - tolua_function(tolua_S,"getTTFConfig",lua_cocos2dx_Label_getTTFConfig); - tolua_function(tolua_S,"getVerticalAlignment",lua_cocos2dx_Label_getVerticalAlignment); - tolua_function(tolua_S,"setTextColor",lua_cocos2dx_Label_setTextColor); - tolua_function(tolua_S,"setHeight",lua_cocos2dx_Label_setHeight); - tolua_function(tolua_S,"getWidth",lua_cocos2dx_Label_getWidth); - tolua_function(tolua_S,"enableGlow",lua_cocos2dx_Label_enableGlow); - tolua_function(tolua_S,"getLetter",lua_cocos2dx_Label_getLetter); - tolua_function(tolua_S,"setAdditionalKerning",lua_cocos2dx_Label_setAdditionalKerning); - tolua_function(tolua_S,"getSystemFontSize",lua_cocos2dx_Label_getSystemFontSize); - tolua_function(tolua_S,"getTextAlignment",lua_cocos2dx_Label_getTextAlignment); - tolua_function(tolua_S,"getBMFontFilePath",lua_cocos2dx_Label_getBMFontFilePath); - tolua_function(tolua_S,"setHorizontalAlignment",lua_cocos2dx_Label_setHorizontalAlignment); - tolua_function(tolua_S,"setAlignment",lua_cocos2dx_Label_setAlignment); - tolua_function(tolua_S,"requestSystemFontRefresh",lua_cocos2dx_Label_requestSystemFontRefresh); - tolua_function(tolua_S,"createWithBMFont", lua_cocos2dx_Label_createWithBMFont); - tolua_function(tolua_S,"create", lua_cocos2dx_Label_create); - tolua_function(tolua_S,"createWithCharMap", lua_cocos2dx_Label_createWithCharMap); - tolua_function(tolua_S,"createWithSystemFont", lua_cocos2dx_Label_createWithSystemFont); + tolua_function(tolua_S,"isClipMarginEnabled",lua_cocos2dx_Label_isClipMarginEnabled); + tolua_function(tolua_S,"enableShadow",lua_cocos2dx_Label_enableShadow); + tolua_function(tolua_S,"setDimensions",lua_cocos2dx_Label_setDimensions); + tolua_function(tolua_S,"getString",lua_cocos2dx_Label_getString); + tolua_function(tolua_S,"getHeight",lua_cocos2dx_Label_getHeight); + tolua_function(tolua_S,"disableEffect",lua_cocos2dx_Label_disableEffect); + tolua_function(tolua_S,"setTTFConfig",lua_cocos2dx_Label_setTTFConfig); + tolua_function(tolua_S,"getTextColor",lua_cocos2dx_Label_getTextColor); + tolua_function(tolua_S,"setWidth",lua_cocos2dx_Label_setWidth); + tolua_function(tolua_S,"getMaxLineWidth",lua_cocos2dx_Label_getMaxLineWidth); + tolua_function(tolua_S,"getHorizontalAlignment",lua_cocos2dx_Label_getHorizontalAlignment); + tolua_function(tolua_S,"setClipMarginEnabled",lua_cocos2dx_Label_setClipMarginEnabled); + tolua_function(tolua_S,"setString",lua_cocos2dx_Label_setString); + tolua_function(tolua_S,"setSystemFontName",lua_cocos2dx_Label_setSystemFontName); + tolua_function(tolua_S,"setBMFontFilePath",lua_cocos2dx_Label_setBMFontFilePath); + tolua_function(tolua_S,"getFontAtlas",lua_cocos2dx_Label_getFontAtlas); + tolua_function(tolua_S,"setLineHeight",lua_cocos2dx_Label_setLineHeight); + tolua_function(tolua_S,"setSystemFontSize",lua_cocos2dx_Label_setSystemFontSize); + tolua_function(tolua_S,"updateContent",lua_cocos2dx_Label_updateContent); + tolua_function(tolua_S,"getStringLength",lua_cocos2dx_Label_getStringLength); + tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_cocos2dx_Label_setLineBreakWithoutSpace); + tolua_function(tolua_S,"getStringNumLines",lua_cocos2dx_Label_getStringNumLines); + tolua_function(tolua_S,"enableOutline",lua_cocos2dx_Label_enableOutline); + tolua_function(tolua_S,"getAdditionalKerning",lua_cocos2dx_Label_getAdditionalKerning); + tolua_function(tolua_S,"setCharMap",lua_cocos2dx_Label_setCharMap); + tolua_function(tolua_S,"getDimensions",lua_cocos2dx_Label_getDimensions); + tolua_function(tolua_S,"setMaxLineWidth",lua_cocos2dx_Label_setMaxLineWidth); + tolua_function(tolua_S,"getSystemFontName",lua_cocos2dx_Label_getSystemFontName); + tolua_function(tolua_S,"setVerticalAlignment",lua_cocos2dx_Label_setVerticalAlignment); + tolua_function(tolua_S,"getLineHeight",lua_cocos2dx_Label_getLineHeight); + tolua_function(tolua_S,"getTTFConfig",lua_cocos2dx_Label_getTTFConfig); + tolua_function(tolua_S,"getVerticalAlignment",lua_cocos2dx_Label_getVerticalAlignment); + tolua_function(tolua_S,"setTextColor",lua_cocos2dx_Label_setTextColor); + tolua_function(tolua_S,"setHeight",lua_cocos2dx_Label_setHeight); + tolua_function(tolua_S,"getWidth",lua_cocos2dx_Label_getWidth); + tolua_function(tolua_S,"enableGlow",lua_cocos2dx_Label_enableGlow); + tolua_function(tolua_S,"getLetter",lua_cocos2dx_Label_getLetter); + tolua_function(tolua_S,"setAdditionalKerning",lua_cocos2dx_Label_setAdditionalKerning); + tolua_function(tolua_S,"getSystemFontSize",lua_cocos2dx_Label_getSystemFontSize); + tolua_function(tolua_S,"getTextAlignment",lua_cocos2dx_Label_getTextAlignment); + tolua_function(tolua_S,"getBMFontFilePath",lua_cocos2dx_Label_getBMFontFilePath); + tolua_function(tolua_S,"setHorizontalAlignment",lua_cocos2dx_Label_setHorizontalAlignment); + tolua_function(tolua_S,"setAlignment",lua_cocos2dx_Label_setAlignment); + tolua_function(tolua_S,"requestSystemFontRefresh",lua_cocos2dx_Label_requestSystemFontRefresh); + tolua_function(tolua_S,"createWithBMFont", lua_cocos2dx_Label_createWithBMFont); + tolua_function(tolua_S,"create", lua_cocos2dx_Label_create); + tolua_function(tolua_S,"createWithCharMap", lua_cocos2dx_Label_createWithCharMap); + tolua_function(tolua_S,"createWithSystemFont", lua_cocos2dx_Label_createWithSystemFont); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Label).name(); g_luaType[typeName] = "cc.Label"; @@ -40407,17 +40407,17 @@ int lua_cocos2dx_Layer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Layer",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -40432,7 +40432,7 @@ int lua_cocos2dx_Layer_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Layer:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Layer_create'.",&tolua_err); #endif return 0; @@ -40447,9 +40447,9 @@ int lua_register_cocos2dx_Layer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Layer"); tolua_cclass(tolua_S,"Layer","cc.Layer","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Layer"); - tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); + tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Layer).name(); g_luaType[typeName] = "cc.Layer"; @@ -40462,34 +40462,34 @@ int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { double arg0; double arg1; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeWidthAndHeight"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LayerColor:changeWidthAndHeight"); if(!ok) { @@ -40501,12 +40501,12 @@ int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeWidthAndHeight",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) @@ -40514,31 +40514,31 @@ int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeHeight"); if(!ok) { @@ -40550,12 +40550,12 @@ int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeHeight",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) @@ -40563,31 +40563,31 @@ int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeWidth"); if(!ok) { @@ -40599,12 +40599,12 @@ int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeWidth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) @@ -40614,14 +40614,14 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -40640,7 +40640,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -40650,7 +40650,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -40666,7 +40666,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LayerColor:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_create'.",&tolua_err); #endif return 0; @@ -40681,12 +40681,12 @@ int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerColor"); tolua_cclass(tolua_S,"LayerColor","cc.LayerColor","cc.Layer",nullptr); - + tolua_beginmodule(tolua_S,"LayerColor"); - tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); - tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); - tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); - tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); + tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); + tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); + tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); + tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerColor).name(); g_luaType[typeName] = "cc.LayerColor"; @@ -40699,28 +40699,28 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40733,12 +40733,12 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getStartColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) @@ -40746,28 +40746,28 @@ int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40780,12 +40780,12 @@ int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:isCompressedInterpolation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) @@ -40793,28 +40793,28 @@ int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getStartOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -40827,12 +40827,12 @@ int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getStartOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getStartOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) @@ -40840,31 +40840,31 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setVector'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.LayerGradient:setVector"); if(!ok) { @@ -40876,12 +40876,12 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setVector",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setVector'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) @@ -40889,31 +40889,31 @@ int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setStartOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.LayerGradient:setStartOpacity"); if(!ok) { @@ -40925,12 +40925,12 @@ int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setStartOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setStartOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) @@ -40938,31 +40938,31 @@ int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LayerGradient:setCompressedInterpolation"); if(!ok) { @@ -40974,12 +40974,12 @@ int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setCompressedInterpolation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) @@ -40987,31 +40987,31 @@ int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setEndOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { uint16_t arg0; - + ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.LayerGradient:setEndOpacity"); if(!ok) { @@ -41023,12 +41023,12 @@ int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setEndOpacity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setEndOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) @@ -41036,28 +41036,28 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getVector'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41070,12 +41070,12 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getVector",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getVector'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) @@ -41083,31 +41083,31 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setEndColor"); if(!ok) { @@ -41119,12 +41119,12 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setEndColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) @@ -41132,28 +41132,28 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41166,12 +41166,12 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getEndColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) @@ -41179,28 +41179,28 @@ int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getEndOpacity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41213,12 +41213,12 @@ int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getEndOpacity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getEndOpacity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) @@ -41226,31 +41226,31 @@ int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setStartColor"); if(!ok) { @@ -41262,12 +41262,12 @@ int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setStartColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) @@ -41277,14 +41277,14 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -41300,7 +41300,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -41310,7 +41310,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -41332,7 +41332,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LayerGradient:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_create'.",&tolua_err); #endif return 0; @@ -41347,21 +41347,21 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerGradient"); tolua_cclass(tolua_S,"LayerGradient","cc.LayerGradient","cc.LayerColor",nullptr); - + tolua_beginmodule(tolua_S,"LayerGradient"); - tolua_function(tolua_S,"getStartColor",lua_cocos2dx_LayerGradient_getStartColor); - tolua_function(tolua_S,"isCompressedInterpolation",lua_cocos2dx_LayerGradient_isCompressedInterpolation); - tolua_function(tolua_S,"getStartOpacity",lua_cocos2dx_LayerGradient_getStartOpacity); - tolua_function(tolua_S,"setVector",lua_cocos2dx_LayerGradient_setVector); - tolua_function(tolua_S,"setStartOpacity",lua_cocos2dx_LayerGradient_setStartOpacity); - tolua_function(tolua_S,"setCompressedInterpolation",lua_cocos2dx_LayerGradient_setCompressedInterpolation); - tolua_function(tolua_S,"setEndOpacity",lua_cocos2dx_LayerGradient_setEndOpacity); - tolua_function(tolua_S,"getVector",lua_cocos2dx_LayerGradient_getVector); - tolua_function(tolua_S,"setEndColor",lua_cocos2dx_LayerGradient_setEndColor); - tolua_function(tolua_S,"getEndColor",lua_cocos2dx_LayerGradient_getEndColor); - tolua_function(tolua_S,"getEndOpacity",lua_cocos2dx_LayerGradient_getEndOpacity); - tolua_function(tolua_S,"setStartColor",lua_cocos2dx_LayerGradient_setStartColor); - tolua_function(tolua_S,"create", lua_cocos2dx_LayerGradient_create); + tolua_function(tolua_S,"getStartColor",lua_cocos2dx_LayerGradient_getStartColor); + tolua_function(tolua_S,"isCompressedInterpolation",lua_cocos2dx_LayerGradient_isCompressedInterpolation); + tolua_function(tolua_S,"getStartOpacity",lua_cocos2dx_LayerGradient_getStartOpacity); + tolua_function(tolua_S,"setVector",lua_cocos2dx_LayerGradient_setVector); + tolua_function(tolua_S,"setStartOpacity",lua_cocos2dx_LayerGradient_setStartOpacity); + tolua_function(tolua_S,"setCompressedInterpolation",lua_cocos2dx_LayerGradient_setCompressedInterpolation); + tolua_function(tolua_S,"setEndOpacity",lua_cocos2dx_LayerGradient_setEndOpacity); + tolua_function(tolua_S,"getVector",lua_cocos2dx_LayerGradient_getVector); + tolua_function(tolua_S,"setEndColor",lua_cocos2dx_LayerGradient_setEndColor); + tolua_function(tolua_S,"getEndColor",lua_cocos2dx_LayerGradient_getEndColor); + tolua_function(tolua_S,"getEndOpacity",lua_cocos2dx_LayerGradient_getEndOpacity); + tolua_function(tolua_S,"setStartColor",lua_cocos2dx_LayerGradient_setStartColor); + tolua_function(tolua_S,"create", lua_cocos2dx_LayerGradient_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerGradient).name(); g_luaType[typeName] = "cc.LayerGradient"; @@ -41374,31 +41374,31 @@ int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LayerMultiplex:switchToAndReleaseMe"); if(!ok) { @@ -41410,12 +41410,12 @@ int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:switchToAndReleaseMe",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) @@ -41423,31 +41423,31 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_addLayer'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Layer* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Layer",&arg0); if(!ok) { @@ -41459,12 +41459,12 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:addLayer",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_addLayer'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) @@ -41472,31 +41472,31 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_switchTo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LayerMultiplex:switchTo"); if(!ok) { @@ -41508,12 +41508,12 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:switchTo",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_switchTo'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_LayerMultiplex_finalize(lua_State* tolua_S) @@ -41526,11 +41526,11 @@ int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerMultiplex"); tolua_cclass(tolua_S,"LayerMultiplex","cc.LayerMultiplex","cc.Layer",nullptr); - + tolua_beginmodule(tolua_S,"LayerMultiplex"); - tolua_function(tolua_S,"switchToAndReleaseMe",lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe); - tolua_function(tolua_S,"addLayer",lua_cocos2dx_LayerMultiplex_addLayer); - tolua_function(tolua_S,"switchTo",lua_cocos2dx_LayerMultiplex_switchTo); + tolua_function(tolua_S,"switchToAndReleaseMe",lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe); + tolua_function(tolua_S,"addLayer",lua_cocos2dx_LayerMultiplex_addLayer); + tolua_function(tolua_S,"switchTo",lua_cocos2dx_LayerMultiplex_switchTo); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerMultiplex).name(); g_luaType[typeName] = "cc.LayerMultiplex"; @@ -41543,31 +41543,31 @@ int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionEaseScene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionEaseScene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionEaseScene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -41580,12 +41580,12 @@ int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionEaseScene:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_TransitionEaseScene_finalize(lua_State* tolua_S) @@ -41598,9 +41598,9 @@ int lua_register_cocos2dx_TransitionEaseScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionEaseScene"); tolua_cclass(tolua_S,"TransitionEaseScene","cc.TransitionEaseScene","",nullptr); - + tolua_beginmodule(tolua_S,"TransitionEaseScene"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionEaseScene_easeActionWithAction); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionEaseScene_easeActionWithAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionEaseScene).name(); g_luaType[typeName] = "cc.TransitionEaseScene"; @@ -41613,28 +41613,28 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_finish'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41646,12 +41646,12 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:finish",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_finish'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) @@ -41659,28 +41659,28 @@ int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41692,29 +41692,29 @@ int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:hideOutShowIn",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -41733,7 +41733,7 @@ int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionScene:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_create'.",&tolua_err); #endif return 0; @@ -41748,11 +41748,11 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionScene"); tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionScene"); - tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); - tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); + tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); + tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionScene).name(); g_luaType[typeName] = "cc.TransitionScene"; @@ -41764,17 +41764,17 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSceneOriented",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -41795,7 +41795,7 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSceneOriented:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_create'.",&tolua_err); #endif return 0; @@ -41810,9 +41810,9 @@ int lua_register_cocos2dx_TransitionSceneOriented(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSceneOriented"); tolua_cclass(tolua_S,"TransitionSceneOriented","cc.TransitionSceneOriented","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSceneOriented"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSceneOriented).name(); g_luaType[typeName] = "cc.TransitionSceneOriented"; @@ -41824,17 +41824,17 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionRotoZoom",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -41853,7 +41853,7 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionRotoZoom:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionRotoZoom_create'.",&tolua_err); #endif return 0; @@ -41868,9 +41868,9 @@ int lua_register_cocos2dx_TransitionRotoZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionRotoZoom"); tolua_cclass(tolua_S,"TransitionRotoZoom","cc.TransitionRotoZoom","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionRotoZoom"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionRotoZoom).name(); g_luaType[typeName] = "cc.TransitionRotoZoom"; @@ -41882,17 +41882,17 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionJumpZoom",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -41911,7 +41911,7 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionJumpZoom:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionJumpZoom_create'.",&tolua_err); #endif return 0; @@ -41926,9 +41926,9 @@ int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionJumpZoom"); tolua_cclass(tolua_S,"TransitionJumpZoom","cc.TransitionJumpZoom","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionJumpZoom"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionJumpZoom).name(); g_luaType[typeName] = "cc.TransitionJumpZoom"; @@ -41941,28 +41941,28 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionMoveInL_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -41975,12 +41975,12 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) @@ -41988,31 +41988,31 @@ int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -42025,29 +42025,29 @@ int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42066,7 +42066,7 @@ int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_create'.",&tolua_err); #endif return 0; @@ -42081,11 +42081,11 @@ int lua_register_cocos2dx_TransitionMoveInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInL"); tolua_cclass(tolua_S,"TransitionMoveInL","cc.TransitionMoveInL","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInL"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionMoveInL_action); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionMoveInL_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInL_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionMoveInL_action); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionMoveInL_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInL).name(); g_luaType[typeName] = "cc.TransitionMoveInL"; @@ -42097,17 +42097,17 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInR",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42126,7 +42126,7 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInR_create'.",&tolua_err); #endif return 0; @@ -42141,9 +42141,9 @@ int lua_register_cocos2dx_TransitionMoveInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInR"); tolua_cclass(tolua_S,"TransitionMoveInR","cc.TransitionMoveInR","cc.TransitionMoveInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInR"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInR).name(); g_luaType[typeName] = "cc.TransitionMoveInR"; @@ -42155,17 +42155,17 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInT",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42184,7 +42184,7 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInT:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInT_create'.",&tolua_err); #endif return 0; @@ -42199,9 +42199,9 @@ int lua_register_cocos2dx_TransitionMoveInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInT"); tolua_cclass(tolua_S,"TransitionMoveInT","cc.TransitionMoveInT","cc.TransitionMoveInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInT"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInT).name(); g_luaType[typeName] = "cc.TransitionMoveInT"; @@ -42213,17 +42213,17 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInB",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42242,7 +42242,7 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInB:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInB_create'.",&tolua_err); #endif return 0; @@ -42257,9 +42257,9 @@ int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInB"); tolua_cclass(tolua_S,"TransitionMoveInB","cc.TransitionMoveInB","cc.TransitionMoveInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionMoveInB"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInB).name(); g_luaType[typeName] = "cc.TransitionMoveInB"; @@ -42272,28 +42272,28 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInL_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42306,12 +42306,12 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) @@ -42319,31 +42319,31 @@ int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -42356,29 +42356,29 @@ int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42397,7 +42397,7 @@ int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_create'.",&tolua_err); #endif return 0; @@ -42412,11 +42412,11 @@ int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInL"); tolua_cclass(tolua_S,"TransitionSlideInL","cc.TransitionSlideInL","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInL"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInL_action); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSlideInL_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInL_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInL_action); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSlideInL_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInL).name(); g_luaType[typeName] = "cc.TransitionSlideInL"; @@ -42429,28 +42429,28 @@ int lua_cocos2dx_TransitionSlideInR_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInR* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInR",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInR*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInR_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42463,29 +42463,29 @@ int lua_cocos2dx_TransitionSlideInR_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInR:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInR",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42504,7 +42504,7 @@ int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_create'.",&tolua_err); #endif return 0; @@ -42519,10 +42519,10 @@ int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInR"); tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInR"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInR_action); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInR_action); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInR).name(); g_luaType[typeName] = "cc.TransitionSlideInR"; @@ -42535,28 +42535,28 @@ int lua_cocos2dx_TransitionSlideInB_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInB* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInB",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInB*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInB_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42569,29 +42569,29 @@ int lua_cocos2dx_TransitionSlideInB_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInB:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInB",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42610,7 +42610,7 @@ int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInB:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_create'.",&tolua_err); #endif return 0; @@ -42625,10 +42625,10 @@ int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInB"); tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInB"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInB_action); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInB_action); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInB).name(); g_luaType[typeName] = "cc.TransitionSlideInB"; @@ -42641,28 +42641,28 @@ int lua_cocos2dx_TransitionSlideInT_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSlideInT* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInT",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSlideInT*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInT_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -42675,29 +42675,29 @@ int lua_cocos2dx_TransitionSlideInT_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInT:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInT",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42716,7 +42716,7 @@ int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInT:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_create'.",&tolua_err); #endif return 0; @@ -42731,10 +42731,10 @@ int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInT"); tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSlideInT"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInT_action); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInT_action); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInT).name(); g_luaType[typeName] = "cc.TransitionSlideInT"; @@ -42747,31 +42747,31 @@ int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionShrinkGrow* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionShrinkGrow*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -42784,29 +42784,29 @@ int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionShrinkGrow:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -42825,7 +42825,7 @@ int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionShrinkGrow:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_create'.",&tolua_err); #endif return 0; @@ -42840,10 +42840,10 @@ int lua_register_cocos2dx_TransitionShrinkGrow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionShrinkGrow"); tolua_cclass(tolua_S,"TransitionShrinkGrow","cc.TransitionShrinkGrow","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionShrinkGrow"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionShrinkGrow).name(); g_luaType[typeName] = "cc.TransitionShrinkGrow"; @@ -42858,14 +42858,14 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipX",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -42881,7 +42881,7 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -42903,7 +42903,7 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipX:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipX_create'.",&tolua_err); #endif return 0; @@ -42918,9 +42918,9 @@ int lua_register_cocos2dx_TransitionFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipX"); tolua_cclass(tolua_S,"TransitionFlipX","cc.TransitionFlipX","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFlipX"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipX).name(); g_luaType[typeName] = "cc.TransitionFlipX"; @@ -42935,14 +42935,14 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipY",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -42958,7 +42958,7 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -42980,7 +42980,7 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipY:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipY_create'.",&tolua_err); #endif return 0; @@ -42995,9 +42995,9 @@ int lua_register_cocos2dx_TransitionFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipY"); tolua_cclass(tolua_S,"TransitionFlipY","cc.TransitionFlipY","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFlipY"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipY).name(); g_luaType[typeName] = "cc.TransitionFlipY"; @@ -43012,14 +43012,14 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipAngular",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43035,7 +43035,7 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43057,7 +43057,7 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipAngular:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipAngular_create'.",&tolua_err); #endif return 0; @@ -43072,9 +43072,9 @@ int lua_register_cocos2dx_TransitionFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipAngular"); tolua_cclass(tolua_S,"TransitionFlipAngular","cc.TransitionFlipAngular","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFlipAngular"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipAngular).name(); g_luaType[typeName] = "cc.TransitionFlipAngular"; @@ -43089,14 +43089,14 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipX",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43112,7 +43112,7 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43134,7 +43134,7 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipX:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipX_create'.",&tolua_err); #endif return 0; @@ -43149,9 +43149,9 @@ int lua_register_cocos2dx_TransitionZoomFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipX"); tolua_cclass(tolua_S,"TransitionZoomFlipX","cc.TransitionZoomFlipX","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionZoomFlipX"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipX).name(); g_luaType[typeName] = "cc.TransitionZoomFlipX"; @@ -43166,14 +43166,14 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipY",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43189,7 +43189,7 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43211,7 +43211,7 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipY:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipY_create'.",&tolua_err); #endif return 0; @@ -43226,9 +43226,9 @@ int lua_register_cocos2dx_TransitionZoomFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipY"); tolua_cclass(tolua_S,"TransitionZoomFlipY","cc.TransitionZoomFlipY","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionZoomFlipY"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipY).name(); g_luaType[typeName] = "cc.TransitionZoomFlipY"; @@ -43243,14 +43243,14 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipAngular",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43266,7 +43266,7 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43288,7 +43288,7 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipAngular:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipAngular_create'.",&tolua_err); #endif return 0; @@ -43303,9 +43303,9 @@ int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipAngular"); tolua_cclass(tolua_S,"TransitionZoomFlipAngular","cc.TransitionZoomFlipAngular","cc.TransitionSceneOriented",nullptr); - + tolua_beginmodule(tolua_S,"TransitionZoomFlipAngular"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipAngular).name(); g_luaType[typeName] = "cc.TransitionZoomFlipAngular"; @@ -43320,14 +43320,14 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFade",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -43343,7 +43343,7 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -43365,7 +43365,7 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFade:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_create'.",&tolua_err); #endif return 0; @@ -43380,9 +43380,9 @@ int lua_register_cocos2dx_TransitionFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFade"); tolua_cclass(tolua_S,"TransitionFade","cc.TransitionFade","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFade"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFade).name(); g_luaType[typeName] = "cc.TransitionFade"; @@ -43394,17 +43394,17 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionCrossFade",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43423,7 +43423,7 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionCrossFade:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionCrossFade_create'.",&tolua_err); #endif return 0; @@ -43438,9 +43438,9 @@ int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionCrossFade"); tolua_cclass(tolua_S,"TransitionCrossFade","cc.TransitionCrossFade","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionCrossFade"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionCrossFade).name(); g_luaType[typeName] = "cc.TransitionCrossFade"; @@ -43453,31 +43453,31 @@ int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionTurnOffTiles* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionTurnOffTiles*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -43490,29 +43490,29 @@ int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionTurnOffTiles:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43531,7 +43531,7 @@ int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionTurnOffTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_create'.",&tolua_err); #endif return 0; @@ -43546,10 +43546,10 @@ int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionTurnOffTiles"); tolua_cclass(tolua_S,"TransitionTurnOffTiles","cc.TransitionTurnOffTiles","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionTurnOffTiles"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionTurnOffTiles).name(); g_luaType[typeName] = "cc.TransitionTurnOffTiles"; @@ -43562,28 +43562,28 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSplitCols_action'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -43596,12 +43596,12 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:action",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_action'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) @@ -43609,31 +43609,31 @@ int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -43646,29 +43646,29 @@ int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43687,7 +43687,7 @@ int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitCols:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_create'.",&tolua_err); #endif return 0; @@ -43702,11 +43702,11 @@ int lua_register_cocos2dx_TransitionSplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitCols"); tolua_cclass(tolua_S,"TransitionSplitCols","cc.TransitionSplitCols","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSplitCols"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSplitCols_action); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSplitCols_easeActionWithAction); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitCols_create); + tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSplitCols_action); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSplitCols_easeActionWithAction); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitCols).name(); g_luaType[typeName] = "cc.TransitionSplitCols"; @@ -43718,17 +43718,17 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSplitRows",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43747,7 +43747,7 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitRows:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitRows_create'.",&tolua_err); #endif return 0; @@ -43762,9 +43762,9 @@ int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitRows"); tolua_cclass(tolua_S,"TransitionSplitRows","cc.TransitionSplitRows","cc.TransitionSplitCols",nullptr); - + tolua_beginmodule(tolua_S,"TransitionSplitRows"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitRows).name(); g_luaType[typeName] = "cc.TransitionSplitRows"; @@ -43777,31 +43777,31 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ActionInterval* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); if(!ok) { @@ -43814,12 +43814,12 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:easeActionWithAction",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) @@ -43827,31 +43827,31 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TransitionFadeTR:actionWithSize"); if(!ok) { @@ -43864,29 +43864,29 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:actionWithSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43905,7 +43905,7 @@ int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeTR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_create'.",&tolua_err); #endif return 0; @@ -43920,11 +43920,11 @@ int lua_register_cocos2dx_TransitionFadeTR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeTR"); tolua_cclass(tolua_S,"TransitionFadeTR","cc.TransitionFadeTR","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeTR"); - tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionFadeTR_easeActionWithAction); - tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionFadeTR_actionWithSize); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeTR_create); + tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionFadeTR_easeActionWithAction); + tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionFadeTR_actionWithSize); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeTR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeTR).name(); g_luaType[typeName] = "cc.TransitionFadeTR"; @@ -43936,17 +43936,17 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeBL",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -43965,7 +43965,7 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeBL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeBL_create'.",&tolua_err); #endif return 0; @@ -43980,9 +43980,9 @@ int lua_register_cocos2dx_TransitionFadeBL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeBL"); tolua_cclass(tolua_S,"TransitionFadeBL","cc.TransitionFadeBL","cc.TransitionFadeTR",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeBL"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeBL).name(); g_luaType[typeName] = "cc.TransitionFadeBL"; @@ -43994,17 +43994,17 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeUp",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44023,7 +44023,7 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeUp:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeUp_create'.",&tolua_err); #endif return 0; @@ -44038,9 +44038,9 @@ int lua_register_cocos2dx_TransitionFadeUp(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeUp"); tolua_cclass(tolua_S,"TransitionFadeUp","cc.TransitionFadeUp","cc.TransitionFadeTR",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeUp"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeUp).name(); g_luaType[typeName] = "cc.TransitionFadeUp"; @@ -44052,17 +44052,17 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeDown",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44081,7 +44081,7 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeDown:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeDown_create'.",&tolua_err); #endif return 0; @@ -44096,9 +44096,9 @@ int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeDown"); tolua_cclass(tolua_S,"TransitionFadeDown","cc.TransitionFadeDown","cc.TransitionFadeTR",nullptr); - + tolua_beginmodule(tolua_S,"TransitionFadeDown"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeDown).name(); g_luaType[typeName] = "cc.TransitionFadeDown"; @@ -44111,31 +44111,31 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TransitionPageTurn:actionWithSize"); if(!ok) { @@ -44148,12 +44148,12 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:actionWithSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) @@ -44161,37 +44161,37 @@ int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { double arg0; cocos2d::Scene* arg1; bool arg2; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionPageTurn:initWithDuration"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1); - + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TransitionPageTurn:initWithDuration"); if(!ok) { @@ -44204,29 +44204,29 @@ int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:initWithDuration",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { double arg0; @@ -44247,7 +44247,7 @@ int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionPageTurn:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_create'.",&tolua_err); #endif return 0; @@ -44262,11 +44262,11 @@ int lua_register_cocos2dx_TransitionPageTurn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionPageTurn"); tolua_cclass(tolua_S,"TransitionPageTurn","cc.TransitionPageTurn","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionPageTurn"); - tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionPageTurn_actionWithSize); - tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionPageTurn_initWithDuration); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionPageTurn_create); + tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionPageTurn_actionWithSize); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionPageTurn_initWithDuration); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionPageTurn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionPageTurn).name(); g_luaType[typeName] = "cc.TransitionPageTurn"; @@ -44278,17 +44278,17 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgress",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44307,7 +44307,7 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgress:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgress_create'.",&tolua_err); #endif return 0; @@ -44322,9 +44322,9 @@ int lua_register_cocos2dx_TransitionProgress(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgress"); tolua_cclass(tolua_S,"TransitionProgress","cc.TransitionProgress","cc.TransitionScene",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgress"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgress).name(); g_luaType[typeName] = "cc.TransitionProgress"; @@ -44336,17 +44336,17 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressRadialCCW",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44365,7 +44365,7 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCCW:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCCW_create'.",&tolua_err); #endif return 0; @@ -44380,9 +44380,9 @@ int lua_register_cocos2dx_TransitionProgressRadialCCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCCW"); tolua_cclass(tolua_S,"TransitionProgressRadialCCW","cc.TransitionProgressRadialCCW","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressRadialCCW"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCCW).name(); g_luaType[typeName] = "cc.TransitionProgressRadialCCW"; @@ -44394,17 +44394,17 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressRadialCW",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44423,7 +44423,7 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCW:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCW_create'.",&tolua_err); #endif return 0; @@ -44438,9 +44438,9 @@ int lua_register_cocos2dx_TransitionProgressRadialCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCW"); tolua_cclass(tolua_S,"TransitionProgressRadialCW","cc.TransitionProgressRadialCW","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressRadialCW"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCW).name(); g_luaType[typeName] = "cc.TransitionProgressRadialCW"; @@ -44452,17 +44452,17 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressHorizontal",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44481,7 +44481,7 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressHorizontal:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressHorizontal_create'.",&tolua_err); #endif return 0; @@ -44496,9 +44496,9 @@ int lua_register_cocos2dx_TransitionProgressHorizontal(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressHorizontal"); tolua_cclass(tolua_S,"TransitionProgressHorizontal","cc.TransitionProgressHorizontal","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressHorizontal"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressHorizontal).name(); g_luaType[typeName] = "cc.TransitionProgressHorizontal"; @@ -44510,17 +44510,17 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressVertical",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44539,7 +44539,7 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressVertical:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressVertical_create'.",&tolua_err); #endif return 0; @@ -44554,9 +44554,9 @@ int lua_register_cocos2dx_TransitionProgressVertical(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressVertical"); tolua_cclass(tolua_S,"TransitionProgressVertical","cc.TransitionProgressVertical","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressVertical"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressVertical).name(); g_luaType[typeName] = "cc.TransitionProgressVertical"; @@ -44568,17 +44568,17 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressInOut",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44597,7 +44597,7 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressInOut_create'.",&tolua_err); #endif return 0; @@ -44612,9 +44612,9 @@ int lua_register_cocos2dx_TransitionProgressInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressInOut"); tolua_cclass(tolua_S,"TransitionProgressInOut","cc.TransitionProgressInOut","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressInOut"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressInOut).name(); g_luaType[typeName] = "cc.TransitionProgressInOut"; @@ -44626,17 +44626,17 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressOutIn",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { double arg0; @@ -44655,7 +44655,7 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressOutIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressOutIn_create'.",&tolua_err); #endif return 0; @@ -44670,9 +44670,9 @@ int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressOutIn"); tolua_cclass(tolua_S,"TransitionProgressOutIn","cc.TransitionProgressOutIn","cc.TransitionProgress",nullptr); - + tolua_beginmodule(tolua_S,"TransitionProgressOutIn"); - tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); + tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressOutIn).name(); g_luaType[typeName] = "cc.TransitionProgressOutIn"; @@ -44685,31 +44685,31 @@ int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MenuItem:setEnabled"); if(!ok) { @@ -44721,12 +44721,12 @@ int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) @@ -44734,28 +44734,28 @@ int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_activate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44767,12 +44767,12 @@ int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:activate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_activate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) @@ -44780,28 +44780,28 @@ int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44814,12 +44814,12 @@ int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) @@ -44827,28 +44827,28 @@ int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_selected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44860,12 +44860,12 @@ int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:selected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_selected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) @@ -44873,28 +44873,28 @@ int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_isSelected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44907,12 +44907,12 @@ int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:isSelected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_isSelected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) @@ -44920,28 +44920,28 @@ int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_unselected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -44953,12 +44953,12 @@ int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:unselected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_unselected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) @@ -44966,28 +44966,28 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_rect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45000,12 +45000,12 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:rect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_rect'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItem_finalize(lua_State* tolua_S) @@ -45018,15 +45018,15 @@ int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItem"); tolua_cclass(tolua_S,"MenuItem","cc.MenuItem","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"MenuItem"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItem_setEnabled); - tolua_function(tolua_S,"activate",lua_cocos2dx_MenuItem_activate); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_MenuItem_isEnabled); - tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItem_selected); - tolua_function(tolua_S,"isSelected",lua_cocos2dx_MenuItem_isSelected); - tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItem_unselected); - tolua_function(tolua_S,"rect",lua_cocos2dx_MenuItem_rect); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItem_setEnabled); + tolua_function(tolua_S,"activate",lua_cocos2dx_MenuItem_activate); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_MenuItem_isEnabled); + tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItem_selected); + tolua_function(tolua_S,"isSelected",lua_cocos2dx_MenuItem_isSelected); + tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItem_unselected); + tolua_function(tolua_S,"rect",lua_cocos2dx_MenuItem_rect); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItem).name(); g_luaType[typeName] = "cc.MenuItem"; @@ -45039,28 +45039,28 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45073,12 +45073,12 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getDisabledColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) @@ -45086,31 +45086,31 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemLabel:setString"); if(!ok) { @@ -45122,12 +45122,12 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) @@ -45135,31 +45135,31 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45171,12 +45171,12 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setLabel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setLabel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) @@ -45184,31 +45184,31 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MenuItemLabel:setDisabledColor"); if(!ok) { @@ -45220,12 +45220,12 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setDisabledColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) @@ -45233,28 +45233,28 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getLabel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45267,12 +45267,12 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getLabel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getLabel'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemLabel_finalize(lua_State* tolua_S) @@ -45285,13 +45285,13 @@ int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemLabel"); tolua_cclass(tolua_S,"MenuItemLabel","cc.MenuItemLabel","cc.MenuItem",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemLabel"); - tolua_function(tolua_S,"getDisabledColor",lua_cocos2dx_MenuItemLabel_getDisabledColor); - tolua_function(tolua_S,"setString",lua_cocos2dx_MenuItemLabel_setString); - tolua_function(tolua_S,"setLabel",lua_cocos2dx_MenuItemLabel_setLabel); - tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); - tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); + tolua_function(tolua_S,"getDisabledColor",lua_cocos2dx_MenuItemLabel_getDisabledColor); + tolua_function(tolua_S,"setString",lua_cocos2dx_MenuItemLabel_setString); + tolua_function(tolua_S,"setLabel",lua_cocos2dx_MenuItemLabel_setLabel); + tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); + tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemLabel).name(); g_luaType[typeName] = "cc.MenuItemLabel"; @@ -45309,7 +45309,7 @@ int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemAtlasFont"); tolua_cclass(tolua_S,"MenuItemAtlasFont","cc.MenuItemAtlasFont","cc.MenuItemLabel",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemAtlasFont"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemAtlasFont).name(); @@ -45323,28 +45323,28 @@ int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45357,12 +45357,12 @@ int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:getFontSizeObj",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) @@ -45370,28 +45370,28 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45404,12 +45404,12 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:getFontNameObj",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) @@ -45417,31 +45417,31 @@ int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.MenuItemFont:setFontSizeObj"); if(!ok) { @@ -45453,12 +45453,12 @@ int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:setFontSizeObj",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) @@ -45466,31 +45466,31 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemFont:setFontNameObj"); if(!ok) { @@ -45502,29 +45502,29 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:setFontNameObj",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -45540,7 +45540,7 @@ int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:setFontName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontName'.",&tolua_err); #endif return 0; @@ -45549,17 +45549,17 @@ int lua_cocos2dx_MenuItemFont_getFontSize(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -45574,7 +45574,7 @@ int lua_cocos2dx_MenuItemFont_getFontSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:getFontSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSize'.",&tolua_err); #endif return 0; @@ -45583,17 +45583,17 @@ int lua_cocos2dx_MenuItemFont_getFontName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -45608,7 +45608,7 @@ int lua_cocos2dx_MenuItemFont_getFontName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:getFontName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontName'.",&tolua_err); #endif return 0; @@ -45617,17 +45617,17 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -45643,7 +45643,7 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:setFontSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSize'.",&tolua_err); #endif return 0; @@ -45658,16 +45658,16 @@ int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemFont"); tolua_cclass(tolua_S,"MenuItemFont","cc.MenuItemFont","cc.MenuItemLabel",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemFont"); - tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); - tolua_function(tolua_S,"getFontNameObj",lua_cocos2dx_MenuItemFont_getFontNameObj); - tolua_function(tolua_S,"setFontSizeObj",lua_cocos2dx_MenuItemFont_setFontSizeObj); - tolua_function(tolua_S,"setFontNameObj",lua_cocos2dx_MenuItemFont_setFontNameObj); - tolua_function(tolua_S,"setFontName", lua_cocos2dx_MenuItemFont_setFontName); - tolua_function(tolua_S,"getFontSize", lua_cocos2dx_MenuItemFont_getFontSize); - tolua_function(tolua_S,"getFontName", lua_cocos2dx_MenuItemFont_getFontName); - tolua_function(tolua_S,"setFontSize", lua_cocos2dx_MenuItemFont_setFontSize); + tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); + tolua_function(tolua_S,"getFontNameObj",lua_cocos2dx_MenuItemFont_getFontNameObj); + tolua_function(tolua_S,"setFontSizeObj",lua_cocos2dx_MenuItemFont_setFontSizeObj); + tolua_function(tolua_S,"setFontNameObj",lua_cocos2dx_MenuItemFont_setFontNameObj); + tolua_function(tolua_S,"setFontName", lua_cocos2dx_MenuItemFont_setFontName); + tolua_function(tolua_S,"getFontSize", lua_cocos2dx_MenuItemFont_getFontSize); + tolua_function(tolua_S,"getFontName", lua_cocos2dx_MenuItemFont_getFontName); + tolua_function(tolua_S,"setFontSize", lua_cocos2dx_MenuItemFont_setFontSize); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemFont).name(); g_luaType[typeName] = "cc.MenuItemFont"; @@ -45680,31 +45680,31 @@ int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MenuItemSprite:setEnabled"); if(!ok) { @@ -45716,12 +45716,12 @@ int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) @@ -45729,28 +45729,28 @@ int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_selected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45762,12 +45762,12 @@ int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:selected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_selected'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) @@ -45775,31 +45775,31 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45811,12 +45811,12 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setNormalImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) @@ -45824,31 +45824,31 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45860,12 +45860,12 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setDisabledImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) @@ -45873,31 +45873,31 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -45909,12 +45909,12 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setSelectedImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) @@ -45922,28 +45922,28 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -45956,12 +45956,12 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getDisabledImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) @@ -45969,28 +45969,28 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46003,12 +46003,12 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getSelectedImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) @@ -46016,28 +46016,28 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46050,12 +46050,12 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getNormalImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) @@ -46063,28 +46063,28 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_unselected'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46096,12 +46096,12 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:unselected",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_unselected'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemSprite_finalize(lua_State* tolua_S) @@ -46114,17 +46114,17 @@ int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemSprite"); tolua_cclass(tolua_S,"MenuItemSprite","cc.MenuItemSprite","cc.MenuItem",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemSprite"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItemSprite_setEnabled); - tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItemSprite_selected); - tolua_function(tolua_S,"setNormalImage",lua_cocos2dx_MenuItemSprite_setNormalImage); - tolua_function(tolua_S,"setDisabledImage",lua_cocos2dx_MenuItemSprite_setDisabledImage); - tolua_function(tolua_S,"setSelectedImage",lua_cocos2dx_MenuItemSprite_setSelectedImage); - tolua_function(tolua_S,"getDisabledImage",lua_cocos2dx_MenuItemSprite_getDisabledImage); - tolua_function(tolua_S,"getSelectedImage",lua_cocos2dx_MenuItemSprite_getSelectedImage); - tolua_function(tolua_S,"getNormalImage",lua_cocos2dx_MenuItemSprite_getNormalImage); - tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItemSprite_unselected); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItemSprite_setEnabled); + tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItemSprite_selected); + tolua_function(tolua_S,"setNormalImage",lua_cocos2dx_MenuItemSprite_setNormalImage); + tolua_function(tolua_S,"setDisabledImage",lua_cocos2dx_MenuItemSprite_setDisabledImage); + tolua_function(tolua_S,"setSelectedImage",lua_cocos2dx_MenuItemSprite_setSelectedImage); + tolua_function(tolua_S,"getDisabledImage",lua_cocos2dx_MenuItemSprite_getDisabledImage); + tolua_function(tolua_S,"getSelectedImage",lua_cocos2dx_MenuItemSprite_getSelectedImage); + tolua_function(tolua_S,"getNormalImage",lua_cocos2dx_MenuItemSprite_getNormalImage); + tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItemSprite_unselected); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemSprite).name(); g_luaType[typeName] = "cc.MenuItemSprite"; @@ -46137,31 +46137,31 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -46173,12 +46173,12 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setDisabledSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) @@ -46186,31 +46186,31 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -46222,12 +46222,12 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setSelectedSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) @@ -46235,31 +46235,31 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -46271,12 +46271,12 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setNormalSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemImage_finalize(lua_State* tolua_S) @@ -46289,11 +46289,11 @@ int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemImage"); tolua_cclass(tolua_S,"MenuItemImage","cc.MenuItemImage","cc.MenuItemSprite",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemImage"); - tolua_function(tolua_S,"setDisabledSpriteFrame",lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame); - tolua_function(tolua_S,"setSelectedSpriteFrame",lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame); - tolua_function(tolua_S,"setNormalSpriteFrame",lua_cocos2dx_MenuItemImage_setNormalSpriteFrame); + tolua_function(tolua_S,"setDisabledSpriteFrame",lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame); + tolua_function(tolua_S,"setSelectedSpriteFrame",lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame); + tolua_function(tolua_S,"setNormalSpriteFrame",lua_cocos2dx_MenuItemImage_setNormalSpriteFrame); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemImage).name(); g_luaType[typeName] = "cc.MenuItemImage"; @@ -46306,31 +46306,31 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_setSubItems'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.MenuItemToggle:setSubItems"); if(!ok) { @@ -46342,12 +46342,12 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:setSubItems",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_setSubItems'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) @@ -46355,28 +46355,28 @@ int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46389,12 +46389,12 @@ int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedIndex",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) @@ -46402,31 +46402,31 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_addSubItem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::MenuItem* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0); if(!ok) { @@ -46438,12 +46438,12 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:addSubItem",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_addSubItem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) @@ -46451,28 +46451,28 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46485,12 +46485,12 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedItem",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) @@ -46498,31 +46498,31 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.MenuItemToggle:setSelectedIndex"); if(!ok) { @@ -46534,12 +46534,12 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:setSelectedIndex",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_MenuItemToggle_finalize(lua_State* tolua_S) @@ -46552,13 +46552,13 @@ int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemToggle"); tolua_cclass(tolua_S,"MenuItemToggle","cc.MenuItemToggle","cc.MenuItem",nullptr); - + tolua_beginmodule(tolua_S,"MenuItemToggle"); - tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); - tolua_function(tolua_S,"getSelectedIndex",lua_cocos2dx_MenuItemToggle_getSelectedIndex); - tolua_function(tolua_S,"addSubItem",lua_cocos2dx_MenuItemToggle_addSubItem); - tolua_function(tolua_S,"getSelectedItem",lua_cocos2dx_MenuItemToggle_getSelectedItem); - tolua_function(tolua_S,"setSelectedIndex",lua_cocos2dx_MenuItemToggle_setSelectedIndex); + tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); + tolua_function(tolua_S,"getSelectedIndex",lua_cocos2dx_MenuItemToggle_getSelectedIndex); + tolua_function(tolua_S,"addSubItem",lua_cocos2dx_MenuItemToggle_addSubItem); + tolua_function(tolua_S,"getSelectedItem",lua_cocos2dx_MenuItemToggle_getSelectedItem); + tolua_function(tolua_S,"setSelectedIndex",lua_cocos2dx_MenuItemToggle_setSelectedIndex); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemToggle).name(); g_luaType[typeName] = "cc.MenuItemToggle"; @@ -46571,31 +46571,31 @@ int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Menu:setEnabled"); if(!ok) { @@ -46607,12 +46607,12 @@ int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) @@ -46620,28 +46620,28 @@ int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsVertically'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46653,12 +46653,12 @@ int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsVertically",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsVertically'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) @@ -46666,28 +46666,28 @@ int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46700,12 +46700,12 @@ int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) @@ -46713,31 +46713,31 @@ int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Menu:alignItemsHorizontallyWithPadding"); if(!ok) { @@ -46749,12 +46749,12 @@ int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsHorizontallyWithPadding",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) @@ -46762,31 +46762,31 @@ int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Menu:alignItemsVerticallyWithPadding"); if(!ok) { @@ -46798,12 +46798,12 @@ int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsVerticallyWithPadding",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) @@ -46811,28 +46811,28 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsHorizontally'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46844,12 +46844,12 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsHorizontally",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsHorizontally'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_Menu_finalize(lua_State* tolua_S) @@ -46862,14 +46862,14 @@ int lua_register_cocos2dx_Menu(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Menu"); tolua_cclass(tolua_S,"Menu","cc.Menu","cc.Layer",nullptr); - + tolua_beginmodule(tolua_S,"Menu"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Menu_setEnabled); - tolua_function(tolua_S,"alignItemsVertically",lua_cocos2dx_Menu_alignItemsVertically); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Menu_isEnabled); - tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding); - tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_cocos2dx_Menu_alignItemsVerticallyWithPadding); - tolua_function(tolua_S,"alignItemsHorizontally",lua_cocos2dx_Menu_alignItemsHorizontally); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Menu_setEnabled); + tolua_function(tolua_S,"alignItemsVertically",lua_cocos2dx_Menu_alignItemsVertically); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Menu_isEnabled); + tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding); + tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_cocos2dx_Menu_alignItemsVerticallyWithPadding); + tolua_function(tolua_S,"alignItemsHorizontally",lua_cocos2dx_Menu_alignItemsHorizontally); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Menu).name(); g_luaType[typeName] = "cc.Menu"; @@ -46882,28 +46882,28 @@ int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_hasContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -46916,12 +46916,12 @@ int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:hasContent",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_hasContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) @@ -46929,31 +46929,31 @@ int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setInverted'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ClippingNode:setInverted"); if(!ok) { @@ -46965,12 +46965,12 @@ int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setInverted",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setInverted'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) @@ -46978,31 +46978,31 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -47014,12 +47014,12 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setStencil",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) @@ -47027,28 +47027,28 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47061,12 +47061,12 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getAlphaThreshold",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) @@ -47074,28 +47074,28 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_getStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47108,12 +47108,12 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getStencil",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_getStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) @@ -47121,31 +47121,31 @@ int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ClippingNode:setAlphaThreshold"); if(!ok) { @@ -47157,12 +47157,12 @@ int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setAlphaThreshold",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) @@ -47170,28 +47170,28 @@ int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_isInverted'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47204,12 +47204,12 @@ int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:isInverted",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_isInverted'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) @@ -47219,14 +47219,14 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -47239,7 +47239,7 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -47252,7 +47252,7 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ClippingNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_create'.",&tolua_err); #endif return 0; @@ -47267,16 +47267,16 @@ int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingNode"); tolua_cclass(tolua_S,"ClippingNode","cc.ClippingNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ClippingNode"); - tolua_function(tolua_S,"hasContent",lua_cocos2dx_ClippingNode_hasContent); - tolua_function(tolua_S,"setInverted",lua_cocos2dx_ClippingNode_setInverted); - tolua_function(tolua_S,"setStencil",lua_cocos2dx_ClippingNode_setStencil); - tolua_function(tolua_S,"getAlphaThreshold",lua_cocos2dx_ClippingNode_getAlphaThreshold); - tolua_function(tolua_S,"getStencil",lua_cocos2dx_ClippingNode_getStencil); - tolua_function(tolua_S,"setAlphaThreshold",lua_cocos2dx_ClippingNode_setAlphaThreshold); - tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); - tolua_function(tolua_S,"create", lua_cocos2dx_ClippingNode_create); + tolua_function(tolua_S,"hasContent",lua_cocos2dx_ClippingNode_hasContent); + tolua_function(tolua_S,"setInverted",lua_cocos2dx_ClippingNode_setInverted); + tolua_function(tolua_S,"setStencil",lua_cocos2dx_ClippingNode_setStencil); + tolua_function(tolua_S,"getAlphaThreshold",lua_cocos2dx_ClippingNode_getAlphaThreshold); + tolua_function(tolua_S,"getStencil",lua_cocos2dx_ClippingNode_getStencil); + tolua_function(tolua_S,"setAlphaThreshold",lua_cocos2dx_ClippingNode_setAlphaThreshold); + tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); + tolua_function(tolua_S,"create", lua_cocos2dx_ClippingNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ClippingNode).name(); g_luaType[typeName] = "cc.ClippingNode"; @@ -47289,28 +47289,28 @@ int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47323,12 +47323,12 @@ int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:isClippingEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) @@ -47336,31 +47336,31 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ClippingRectangleNode:setClippingEnabled"); if(!ok) { @@ -47372,12 +47372,12 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:setClippingEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) @@ -47385,28 +47385,28 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47419,12 +47419,12 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:getClippingRegion",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) @@ -47432,31 +47432,31 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ClippingRectangleNode:setClippingRegion"); if(!ok) { @@ -47468,12 +47468,12 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:setClippingRegion",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) @@ -47483,14 +47483,14 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 0) { @@ -47500,7 +47500,7 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -47516,7 +47516,7 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ClippingRectangleNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_create'.",&tolua_err); #endif return 0; @@ -47531,13 +47531,13 @@ int lua_register_cocos2dx_ClippingRectangleNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingRectangleNode"); tolua_cclass(tolua_S,"ClippingRectangleNode","cc.ClippingRectangleNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ClippingRectangleNode"); - tolua_function(tolua_S,"isClippingEnabled",lua_cocos2dx_ClippingRectangleNode_isClippingEnabled); - tolua_function(tolua_S,"setClippingEnabled",lua_cocos2dx_ClippingRectangleNode_setClippingEnabled); - tolua_function(tolua_S,"getClippingRegion",lua_cocos2dx_ClippingRectangleNode_getClippingRegion); - tolua_function(tolua_S,"setClippingRegion",lua_cocos2dx_ClippingRectangleNode_setClippingRegion); - tolua_function(tolua_S,"create", lua_cocos2dx_ClippingRectangleNode_create); + tolua_function(tolua_S,"isClippingEnabled",lua_cocos2dx_ClippingRectangleNode_isClippingEnabled); + tolua_function(tolua_S,"setClippingEnabled",lua_cocos2dx_ClippingRectangleNode_setClippingEnabled); + tolua_function(tolua_S,"getClippingRegion",lua_cocos2dx_ClippingRectangleNode_getClippingRegion); + tolua_function(tolua_S,"setClippingRegion",lua_cocos2dx_ClippingRectangleNode_setClippingRegion); + tolua_function(tolua_S,"create", lua_cocos2dx_ClippingRectangleNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ClippingRectangleNode).name(); g_luaType[typeName] = "cc.ClippingRectangleNode"; @@ -47550,28 +47550,28 @@ int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_reset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47583,12 +47583,12 @@ int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:reset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_reset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) @@ -47596,31 +47596,31 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -47632,12 +47632,12 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) @@ -47645,28 +47645,28 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47679,12 +47679,12 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) @@ -47692,31 +47692,31 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_tintWithColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color3B arg0; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MotionStreak:tintWithColor"); if(!ok) { @@ -47728,12 +47728,12 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:tintWithColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_tintWithColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) @@ -47741,31 +47741,31 @@ int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak:setStartingPositionInitialized"); if(!ok) { @@ -47777,12 +47777,12 @@ int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setStartingPositionInitialized",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) @@ -47790,28 +47790,28 @@ int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47824,12 +47824,12 @@ int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:isStartingPositionInitialized",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) @@ -47837,28 +47837,28 @@ int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_isFastMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -47871,12 +47871,12 @@ int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:isFastMode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_isFastMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) @@ -47884,31 +47884,31 @@ int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setFastMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak:setFastMode"); if(!ok) { @@ -47920,12 +47920,12 @@ int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setFastMode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setFastMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) @@ -47935,14 +47935,14 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 5) { @@ -47967,7 +47967,7 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 5) { @@ -47995,7 +47995,7 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.MotionStreak:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_create'.",&tolua_err); #endif return 0; @@ -48010,17 +48010,17 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MotionStreak"); tolua_cclass(tolua_S,"MotionStreak","cc.MotionStreak","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"MotionStreak"); - tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak_reset); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_MotionStreak_setTexture); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_MotionStreak_getTexture); - tolua_function(tolua_S,"tintWithColor",lua_cocos2dx_MotionStreak_tintWithColor); - tolua_function(tolua_S,"setStartingPositionInitialized",lua_cocos2dx_MotionStreak_setStartingPositionInitialized); - tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak_isStartingPositionInitialized); - tolua_function(tolua_S,"isFastMode",lua_cocos2dx_MotionStreak_isFastMode); - tolua_function(tolua_S,"setFastMode",lua_cocos2dx_MotionStreak_setFastMode); - tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); + tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak_reset); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_MotionStreak_setTexture); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_MotionStreak_getTexture); + tolua_function(tolua_S,"tintWithColor",lua_cocos2dx_MotionStreak_tintWithColor); + tolua_function(tolua_S,"setStartingPositionInitialized",lua_cocos2dx_MotionStreak_setStartingPositionInitialized); + tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak_isStartingPositionInitialized); + tolua_function(tolua_S,"isFastMode",lua_cocos2dx_MotionStreak_isFastMode); + tolua_function(tolua_S,"setFastMode",lua_cocos2dx_MotionStreak_setFastMode); + tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MotionStreak).name(); g_luaType[typeName] = "cc.MotionStreak"; @@ -48033,28 +48033,28 @@ int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48067,12 +48067,12 @@ int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:isReverseDirection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) @@ -48080,31 +48080,31 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setBarChangeRate"); if(!ok) { @@ -48116,12 +48116,12 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setBarChangeRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) @@ -48129,28 +48129,28 @@ int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getPercentage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48163,12 +48163,12 @@ int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getPercentage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getPercentage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) @@ -48176,31 +48176,31 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -48212,12 +48212,12 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setSprite",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) @@ -48225,28 +48225,28 @@ int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48259,12 +48259,12 @@ int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) @@ -48272,28 +48272,28 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48306,12 +48306,12 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getSprite",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) @@ -48319,31 +48319,31 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setMidpoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setMidpoint"); if(!ok) { @@ -48355,12 +48355,12 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setMidpoint",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setMidpoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) @@ -48368,28 +48368,28 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48402,12 +48402,12 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getBarChangeRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) @@ -48418,7 +48418,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif @@ -48435,7 +48435,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection"); - + if (!ok) { break; } cobj->setReverseDirection(arg0); return 0; @@ -48446,7 +48446,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection"); - + if (!ok) { break; } cobj->setReverseProgress(arg0); return 0; @@ -48455,12 +48455,12 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setReverseProgress",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) @@ -48468,28 +48468,28 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getMidpoint'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48502,12 +48502,12 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getMidpoint",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getMidpoint'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) @@ -48515,31 +48515,31 @@ int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setPercentage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressTimer:setPercentage"); if(!ok) { @@ -48551,12 +48551,12 @@ int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setPercentage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setPercentage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) @@ -48564,31 +48564,31 @@ int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ProgressTimer::Type arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProgressTimer:setType"); if(!ok) { @@ -48600,29 +48600,29 @@ int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setType",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Sprite* arg0; @@ -48639,7 +48639,7 @@ int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTimer:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_create'.",&tolua_err); #endif return 0; @@ -48654,21 +48654,21 @@ int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTimer"); tolua_cclass(tolua_S,"ProgressTimer","cc.ProgressTimer","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ProgressTimer"); - tolua_function(tolua_S,"isReverseDirection",lua_cocos2dx_ProgressTimer_isReverseDirection); - tolua_function(tolua_S,"setBarChangeRate",lua_cocos2dx_ProgressTimer_setBarChangeRate); - tolua_function(tolua_S,"getPercentage",lua_cocos2dx_ProgressTimer_getPercentage); - tolua_function(tolua_S,"setSprite",lua_cocos2dx_ProgressTimer_setSprite); - tolua_function(tolua_S,"getType",lua_cocos2dx_ProgressTimer_getType); - tolua_function(tolua_S,"getSprite",lua_cocos2dx_ProgressTimer_getSprite); - tolua_function(tolua_S,"setMidpoint",lua_cocos2dx_ProgressTimer_setMidpoint); - tolua_function(tolua_S,"getBarChangeRate",lua_cocos2dx_ProgressTimer_getBarChangeRate); - tolua_function(tolua_S,"setReverseDirection",lua_cocos2dx_ProgressTimer_setReverseDirection); - tolua_function(tolua_S,"getMidpoint",lua_cocos2dx_ProgressTimer_getMidpoint); - tolua_function(tolua_S,"setPercentage",lua_cocos2dx_ProgressTimer_setPercentage); - tolua_function(tolua_S,"setType",lua_cocos2dx_ProgressTimer_setType); - tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTimer_create); + tolua_function(tolua_S,"isReverseDirection",lua_cocos2dx_ProgressTimer_isReverseDirection); + tolua_function(tolua_S,"setBarChangeRate",lua_cocos2dx_ProgressTimer_setBarChangeRate); + tolua_function(tolua_S,"getPercentage",lua_cocos2dx_ProgressTimer_getPercentage); + tolua_function(tolua_S,"setSprite",lua_cocos2dx_ProgressTimer_setSprite); + tolua_function(tolua_S,"getType",lua_cocos2dx_ProgressTimer_getType); + tolua_function(tolua_S,"getSprite",lua_cocos2dx_ProgressTimer_getSprite); + tolua_function(tolua_S,"setMidpoint",lua_cocos2dx_ProgressTimer_setMidpoint); + tolua_function(tolua_S,"getBarChangeRate",lua_cocos2dx_ProgressTimer_getBarChangeRate); + tolua_function(tolua_S,"setReverseDirection",lua_cocos2dx_ProgressTimer_setReverseDirection); + tolua_function(tolua_S,"getMidpoint",lua_cocos2dx_ProgressTimer_getMidpoint); + tolua_function(tolua_S,"setPercentage",lua_cocos2dx_ProgressTimer_setPercentage); + tolua_function(tolua_S,"setType",lua_cocos2dx_ProgressTimer_setType); + tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTimer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTimer).name(); g_luaType[typeName] = "cc.ProgressTimer"; @@ -48684,7 +48684,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif @@ -48701,7 +48701,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); - + if (!ok) { break; } cobj->setSpriteFrame(arg0); return 0; @@ -48712,7 +48712,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setSpriteFrame"); - + if (!ok) { break; } cobj->setSpriteFrame(arg0); return 0; @@ -48721,12 +48721,12 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setSpriteFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) @@ -48737,7 +48737,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif @@ -48754,7 +48754,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + if (!ok) { break; } cobj->setTexture(arg0); return 0; @@ -48765,7 +48765,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setTexture"); - + if (!ok) { break; } cobj->setTexture(arg0); return 0; @@ -48774,12 +48774,12 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) @@ -48787,28 +48787,28 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48821,12 +48821,12 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) @@ -48834,31 +48834,31 @@ int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setFlippedY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setFlippedY"); if(!ok) { @@ -48870,12 +48870,12 @@ int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setFlippedY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setFlippedY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) @@ -48883,31 +48883,31 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setFlippedX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setFlippedX"); if(!ok) { @@ -48919,12 +48919,12 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setFlippedX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setFlippedX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) @@ -48932,28 +48932,28 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -48966,12 +48966,12 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getBatchNode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) @@ -48979,28 +48979,28 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getOffsetPosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49013,12 +49013,12 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getOffsetPosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getOffsetPosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -49026,31 +49026,31 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:removeAllChildrenWithCleanup"); if(!ok) { @@ -49062,12 +49062,12 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) @@ -49075,28 +49075,28 @@ int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_updateTransform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49108,12 +49108,12 @@ int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:updateTransform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_updateTransform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) @@ -49124,7 +49124,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif @@ -49141,15 +49141,15 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) if (argc == 3) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } cocos2d::Size arg2; ok &= luaval_to_size(tolua_S, 4, &arg2, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } cobj->setTextureRect(arg0, arg1, arg2); return 0; @@ -49160,7 +49160,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); - + if (!ok) { break; } cobj->setTextureRect(arg0); return 0; @@ -49169,12 +49169,12 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTextureRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTextureRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) @@ -49182,31 +49182,31 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFrameDisplayed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -49219,12 +49219,12 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFrameDisplayed",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFrameDisplayed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) @@ -49232,28 +49232,28 @@ int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49266,12 +49266,12 @@ int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getAtlasIndex",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) @@ -49279,31 +49279,31 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteBatchNode* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteBatchNode",&arg0); if(!ok) { @@ -49315,12 +49315,12 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setBatchNode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) @@ -49328,34 +49328,34 @@ int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; ssize_t arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setDisplayFrameWithAnimationName"); - + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.Sprite:setDisplayFrameWithAnimationName"); if(!ok) { @@ -49367,12 +49367,12 @@ int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setDisplayFrameWithAnimationName",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) @@ -49380,31 +49380,31 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -49416,12 +49416,12 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) @@ -49429,28 +49429,28 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49463,12 +49463,12 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getSpriteFrame",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) @@ -49476,28 +49476,28 @@ int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isDirty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49510,12 +49510,12 @@ int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isDirty",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isDirty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) @@ -49523,31 +49523,31 @@ int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { ssize_t arg0; - + ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.Sprite:setAtlasIndex"); if(!ok) { @@ -49559,12 +49559,12 @@ int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setAtlasIndex",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) @@ -49572,31 +49572,31 @@ int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setDirty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setDirty"); if(!ok) { @@ -49608,12 +49608,12 @@ int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setDirty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setDirty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) @@ -49621,28 +49621,28 @@ int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isTextureRectRotated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49655,12 +49655,12 @@ int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isTextureRectRotated",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isTextureRectRotated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) @@ -49668,28 +49668,28 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTextureRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49702,12 +49702,12 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureRect",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTextureRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) @@ -49715,28 +49715,28 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49749,12 +49749,12 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) @@ -49762,28 +49762,28 @@ int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFlippedX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49796,12 +49796,12 @@ int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFlippedX",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFlippedX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) @@ -49809,28 +49809,28 @@ int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFlippedY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -49843,12 +49843,12 @@ int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFlippedY",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFlippedY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) @@ -49856,31 +49856,31 @@ int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setVertexRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Rect arg0; - + ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setVertexRect"); if(!ok) { @@ -49892,12 +49892,12 @@ int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setVertexRect",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setVertexRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Sprite_create(lua_State* tolua_S) @@ -49907,14 +49907,14 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -49927,7 +49927,7 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -49937,7 +49937,7 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -49956,7 +49956,7 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Sprite:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_create'.",&tolua_err); #endif return 0; @@ -49968,14 +49968,14 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 2) { @@ -49991,7 +49991,7 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -50010,7 +50010,7 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -50026,7 +50026,7 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Sprite:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithTexture'.",&tolua_err); #endif return 0; @@ -50035,17 +50035,17 @@ int lua_cocos2dx_Sprite_createWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -50062,7 +50062,7 @@ int lua_cocos2dx_Sprite_createWithSpriteFrameName(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrameName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithSpriteFrameName'.",&tolua_err); #endif return 0; @@ -50071,17 +50071,17 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::SpriteFrame* arg0; @@ -50098,7 +50098,7 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithSpriteFrame'.",&tolua_err); #endif return 0; @@ -50113,37 +50113,37 @@ int lua_register_cocos2dx_Sprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sprite"); tolua_cclass(tolua_S,"Sprite","cc.Sprite","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Sprite"); - tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_Sprite_setSpriteFrame); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite_setTexture); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_Sprite_getTexture); - tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_Sprite_setFlippedY); - tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_Sprite_setFlippedX); - tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_Sprite_getBatchNode); - tolua_function(tolua_S,"getOffsetPosition",lua_cocos2dx_Sprite_getOffsetPosition); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Sprite_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Sprite_updateTransform); - tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); - tolua_function(tolua_S,"isFrameDisplayed",lua_cocos2dx_Sprite_isFrameDisplayed); - tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_Sprite_getAtlasIndex); - tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_Sprite_setBatchNode); - tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_Sprite_setTextureAtlas); - tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_Sprite_getSpriteFrame); - tolua_function(tolua_S,"isDirty",lua_cocos2dx_Sprite_isDirty); - tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_Sprite_setAtlasIndex); - tolua_function(tolua_S,"setDirty",lua_cocos2dx_Sprite_setDirty); - tolua_function(tolua_S,"isTextureRectRotated",lua_cocos2dx_Sprite_isTextureRectRotated); - tolua_function(tolua_S,"getTextureRect",lua_cocos2dx_Sprite_getTextureRect); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_Sprite_getTextureAtlas); - tolua_function(tolua_S,"isFlippedX",lua_cocos2dx_Sprite_isFlippedX); - tolua_function(tolua_S,"isFlippedY",lua_cocos2dx_Sprite_isFlippedY); - tolua_function(tolua_S,"setVertexRect",lua_cocos2dx_Sprite_setVertexRect); - tolua_function(tolua_S,"create", lua_cocos2dx_Sprite_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_Sprite_createWithTexture); - tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_Sprite_createWithSpriteFrameName); - tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_Sprite_createWithSpriteFrame); + tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_Sprite_setSpriteFrame); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite_setTexture); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_Sprite_getTexture); + tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_Sprite_setFlippedY); + tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_Sprite_setFlippedX); + tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_Sprite_getBatchNode); + tolua_function(tolua_S,"getOffsetPosition",lua_cocos2dx_Sprite_getOffsetPosition); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Sprite_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Sprite_updateTransform); + tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); + tolua_function(tolua_S,"isFrameDisplayed",lua_cocos2dx_Sprite_isFrameDisplayed); + tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_Sprite_getAtlasIndex); + tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_Sprite_setBatchNode); + tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_Sprite_setTextureAtlas); + tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_Sprite_getSpriteFrame); + tolua_function(tolua_S,"isDirty",lua_cocos2dx_Sprite_isDirty); + tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_Sprite_setAtlasIndex); + tolua_function(tolua_S,"setDirty",lua_cocos2dx_Sprite_setDirty); + tolua_function(tolua_S,"isTextureRectRotated",lua_cocos2dx_Sprite_isTextureRectRotated); + tolua_function(tolua_S,"getTextureRect",lua_cocos2dx_Sprite_getTextureRect); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_Sprite_getTextureAtlas); + tolua_function(tolua_S,"isFlippedX",lua_cocos2dx_Sprite_isFlippedX); + tolua_function(tolua_S,"isFlippedY",lua_cocos2dx_Sprite_isFlippedY); + tolua_function(tolua_S,"setVertexRect",lua_cocos2dx_Sprite_setVertexRect); + tolua_function(tolua_S,"create", lua_cocos2dx_Sprite_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_Sprite_createWithTexture); + tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_Sprite_createWithSpriteFrameName); + tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_Sprite_createWithSpriteFrame); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sprite).name(); g_luaType[typeName] = "cc.Sprite"; @@ -50156,28 +50156,28 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50190,12 +50190,12 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:hasPremultipliedAlpha",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) @@ -50203,31 +50203,31 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_saveToFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:saveToFile"); if(!ok) { @@ -50238,13 +50238,13 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) tolua_pushboolean(tolua_S,(bool)ret); return 1; } - if (argc == 2) + if (argc == 2) { std::string arg0; bool arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:saveToFile"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Image:saveToFile"); if(!ok) { @@ -50257,12 +50257,12 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:saveToFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_saveToFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) @@ -50270,28 +50270,28 @@ int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_hasAlpha'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50304,12 +50304,12 @@ int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:hasAlpha",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_hasAlpha'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) @@ -50317,28 +50317,28 @@ int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_isCompressed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50351,12 +50351,12 @@ int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:isCompressed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_isCompressed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) @@ -50364,28 +50364,28 @@ int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getHeight'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50398,12 +50398,12 @@ int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getHeight",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) @@ -50411,31 +50411,31 @@ int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_initWithImageFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:initWithImageFile"); if(!ok) { @@ -50448,12 +50448,12 @@ int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:initWithImageFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_initWithImageFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) @@ -50461,28 +50461,28 @@ int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getWidth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50495,12 +50495,12 @@ int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getWidth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getWidth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) @@ -50508,28 +50508,28 @@ int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getBitPerPixel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50542,12 +50542,12 @@ int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getBitPerPixel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getBitPerPixel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) @@ -50555,28 +50555,28 @@ int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getFileType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50589,12 +50589,12 @@ int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getFileType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getFileType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) @@ -50602,28 +50602,28 @@ int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getNumberOfMipmaps'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50636,12 +50636,12 @@ int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getNumberOfMipmaps",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getNumberOfMipmaps'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) @@ -50649,28 +50649,28 @@ int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getRenderFormat'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50683,29 +50683,29 @@ int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getRenderFormat",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getRenderFormat'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -50721,7 +50721,7 @@ int lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Image:setPVRImagesHavePremultipliedAlpha",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha'.",&tolua_err); #endif return 0; @@ -50731,15 +50731,15 @@ int lua_cocos2dx_Image_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50755,11 +50755,11 @@ int lua_cocos2dx_Image_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:Image",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_constructor'.",&tolua_err); #endif - + return 0; } @@ -50773,21 +50773,21 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Image"); tolua_cclass(tolua_S,"Image","cc.Image","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Image"); - tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor); - tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Image_hasPremultipliedAlpha); - tolua_function(tolua_S,"saveToFile",lua_cocos2dx_Image_saveToFile); - tolua_function(tolua_S,"hasAlpha",lua_cocos2dx_Image_hasAlpha); - tolua_function(tolua_S,"isCompressed",lua_cocos2dx_Image_isCompressed); - tolua_function(tolua_S,"getHeight",lua_cocos2dx_Image_getHeight); - tolua_function(tolua_S,"initWithImageFile",lua_cocos2dx_Image_initWithImageFile); - tolua_function(tolua_S,"getWidth",lua_cocos2dx_Image_getWidth); - tolua_function(tolua_S,"getBitPerPixel",lua_cocos2dx_Image_getBitPerPixel); - tolua_function(tolua_S,"getFileType",lua_cocos2dx_Image_getFileType); - tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps); - tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat); - tolua_function(tolua_S,"setPVRImagesHavePremultipliedAlpha", lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha); + tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor); + tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Image_hasPremultipliedAlpha); + tolua_function(tolua_S,"saveToFile",lua_cocos2dx_Image_saveToFile); + tolua_function(tolua_S,"hasAlpha",lua_cocos2dx_Image_hasAlpha); + tolua_function(tolua_S,"isCompressed",lua_cocos2dx_Image_isCompressed); + tolua_function(tolua_S,"getHeight",lua_cocos2dx_Image_getHeight); + tolua_function(tolua_S,"initWithImageFile",lua_cocos2dx_Image_initWithImageFile); + tolua_function(tolua_S,"getWidth",lua_cocos2dx_Image_getWidth); + tolua_function(tolua_S,"getBitPerPixel",lua_cocos2dx_Image_getBitPerPixel); + tolua_function(tolua_S,"getFileType",lua_cocos2dx_Image_getFileType); + tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps); + tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat); + tolua_function(tolua_S,"setPVRImagesHavePremultipliedAlpha", lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Image).name(); g_luaType[typeName] = "cc.Image"; @@ -50800,37 +50800,37 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Rect arg1; cocos2d::Rect arg2; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.RenderTexture:setVirtualViewport"); - + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.RenderTexture:setVirtualViewport"); - + ok &= luaval_to_rect(tolua_S, 4, &arg2, "cc.RenderTexture:setVirtualViewport"); if(!ok) { @@ -50842,12 +50842,12 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setVirtualViewport",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) @@ -50855,31 +50855,31 @@ int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clearStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:clearStencil"); if(!ok) { @@ -50891,12 +50891,12 @@ int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clearStencil",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clearStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) @@ -50904,28 +50904,28 @@ int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearDepth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50938,12 +50938,12 @@ int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearDepth",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearDepth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) @@ -50951,28 +50951,28 @@ int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -50985,12 +50985,12 @@ int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearStencil",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) @@ -50998,28 +50998,28 @@ int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_end'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51031,12 +51031,12 @@ int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:end",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_end'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) @@ -51044,31 +51044,31 @@ int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearStencil'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:setClearStencil"); if(!ok) { @@ -51080,12 +51080,12 @@ int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearStencil",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearStencil'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) @@ -51093,31 +51093,31 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Sprite* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { @@ -51129,12 +51129,12 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setSprite",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) @@ -51142,28 +51142,28 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getSprite'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51176,12 +51176,12 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getSprite",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getSprite'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) @@ -51189,28 +51189,28 @@ int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_isAutoDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51223,12 +51223,12 @@ int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:isAutoDraw",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_isAutoDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) @@ -51236,31 +51236,31 @@ int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:setKeepMatrix"); if(!ok) { @@ -51272,12 +51272,12 @@ int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setKeepMatrix",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) @@ -51285,31 +51285,31 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearFlags'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.RenderTexture:setClearFlags"); if(!ok) { @@ -51321,12 +51321,12 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearFlags",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearFlags'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) @@ -51334,28 +51334,28 @@ int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_begin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51367,12 +51367,12 @@ int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:begin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_begin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) @@ -51383,7 +51383,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif @@ -51400,11 +51400,11 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -51416,15 +51416,15 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -51436,23 +51436,23 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } std::function &)> arg3; do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -51464,7 +51464,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -51476,11 +51476,11 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); @@ -51492,19 +51492,19 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); - + if (!ok) { break; } std::function &)> arg2; do { - // Lambda binding for lua is not supported. - assert(false); - } while(0) - ; - + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -51514,12 +51514,12 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:saveToFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_saveToFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) @@ -51527,31 +51527,31 @@ int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setAutoDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:setAutoDraw"); if(!ok) { @@ -51563,12 +51563,12 @@ int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setAutoDraw",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setAutoDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) @@ -51576,31 +51576,31 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.RenderTexture:setClearColor"); if(!ok) { @@ -51612,12 +51612,12 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_endToLua(lua_State* tolua_S) @@ -51625,28 +51625,28 @@ int lua_cocos2dx_RenderTexture_endToLua(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_endToLua'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51658,12 +51658,12 @@ int lua_cocos2dx_RenderTexture_endToLua(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:endToLua",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_endToLua'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) @@ -51674,7 +51674,7 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif @@ -51691,23 +51691,23 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4); return 0; @@ -51718,19 +51718,19 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3); return 0; @@ -51741,27 +51741,27 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) if (argc == 6) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } int arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.RenderTexture:beginWithClear"); - + if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4, arg5); return 0; @@ -51770,12 +51770,12 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:beginWithClear",argc, 6); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_beginWithClear'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) @@ -51783,31 +51783,31 @@ int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clearDepth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:clearDepth"); if(!ok) { @@ -51819,12 +51819,12 @@ int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clearDepth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clearDepth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) @@ -51832,28 +51832,28 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51866,12 +51866,12 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) @@ -51879,40 +51879,40 @@ int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clear'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { double arg0; double arg1; double arg2; double arg3; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:clear"); - + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:clear"); - + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:clear"); - + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:clear"); if(!ok) { @@ -51924,12 +51924,12 @@ int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clear",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clear'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) @@ -51937,28 +51937,28 @@ int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearFlags'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -51971,12 +51971,12 @@ int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearFlags",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearFlags'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) @@ -51984,28 +51984,28 @@ int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_newImage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52016,10 +52016,10 @@ int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) object_to_luaval(tolua_S, "cc.Image",(cocos2d::Image*)ret); return 1; } - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:newImage"); if(!ok) { @@ -52032,12 +52032,12 @@ int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:newImage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_newImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) @@ -52045,31 +52045,31 @@ int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearDepth'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:setClearDepth"); if(!ok) { @@ -52081,12 +52081,12 @@ int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearDepth",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearDepth'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) @@ -52097,7 +52097,7 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif @@ -52114,19 +52114,19 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) if (argc == 4) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } bool ret = cobj->initWithWidthAndHeight(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); @@ -52138,15 +52138,15 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); - + if (!ok) { break; } bool ret = cobj->initWithWidthAndHeight(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -52156,12 +52156,12 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:initWithWidthAndHeight",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_initWithWidthAndHeight'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) @@ -52171,14 +52171,14 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 3) { @@ -52197,7 +52197,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 4) { @@ -52219,7 +52219,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 2) { @@ -52238,7 +52238,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RenderTexture:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_create'.",&tolua_err); #endif return 0; @@ -52248,15 +52248,15 @@ int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52272,11 +52272,11 @@ int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:RenderTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_constructor'.",&tolua_err); #endif - + return 0; } @@ -52290,34 +52290,34 @@ int lua_register_cocos2dx_RenderTexture(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RenderTexture"); tolua_cclass(tolua_S,"RenderTexture","cc.RenderTexture","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"RenderTexture"); - tolua_function(tolua_S,"new",lua_cocos2dx_RenderTexture_constructor); - tolua_function(tolua_S,"setVirtualViewport",lua_cocos2dx_RenderTexture_setVirtualViewport); - tolua_function(tolua_S,"clearStencil",lua_cocos2dx_RenderTexture_clearStencil); - tolua_function(tolua_S,"getClearDepth",lua_cocos2dx_RenderTexture_getClearDepth); - tolua_function(tolua_S,"getClearStencil",lua_cocos2dx_RenderTexture_getClearStencil); - tolua_function(tolua_S,"end",lua_cocos2dx_RenderTexture_end); - tolua_function(tolua_S,"setClearStencil",lua_cocos2dx_RenderTexture_setClearStencil); - tolua_function(tolua_S,"setSprite",lua_cocos2dx_RenderTexture_setSprite); - tolua_function(tolua_S,"getSprite",lua_cocos2dx_RenderTexture_getSprite); - tolua_function(tolua_S,"isAutoDraw",lua_cocos2dx_RenderTexture_isAutoDraw); - tolua_function(tolua_S,"setKeepMatrix",lua_cocos2dx_RenderTexture_setKeepMatrix); - tolua_function(tolua_S,"setClearFlags",lua_cocos2dx_RenderTexture_setClearFlags); - tolua_function(tolua_S,"begin",lua_cocos2dx_RenderTexture_begin); - tolua_function(tolua_S,"saveToFile",lua_cocos2dx_RenderTexture_saveToFile); - tolua_function(tolua_S,"setAutoDraw",lua_cocos2dx_RenderTexture_setAutoDraw); - tolua_function(tolua_S,"setClearColor",lua_cocos2dx_RenderTexture_setClearColor); - tolua_function(tolua_S,"endToLua",lua_cocos2dx_RenderTexture_endToLua); - tolua_function(tolua_S,"beginWithClear",lua_cocos2dx_RenderTexture_beginWithClear); - tolua_function(tolua_S,"clearDepth",lua_cocos2dx_RenderTexture_clearDepth); - tolua_function(tolua_S,"getClearColor",lua_cocos2dx_RenderTexture_getClearColor); - tolua_function(tolua_S,"clear",lua_cocos2dx_RenderTexture_clear); - tolua_function(tolua_S,"getClearFlags",lua_cocos2dx_RenderTexture_getClearFlags); - tolua_function(tolua_S,"newImage",lua_cocos2dx_RenderTexture_newImage); - tolua_function(tolua_S,"setClearDepth",lua_cocos2dx_RenderTexture_setClearDepth); - tolua_function(tolua_S,"initWithWidthAndHeight",lua_cocos2dx_RenderTexture_initWithWidthAndHeight); - tolua_function(tolua_S,"create", lua_cocos2dx_RenderTexture_create); + tolua_function(tolua_S,"new",lua_cocos2dx_RenderTexture_constructor); + tolua_function(tolua_S,"setVirtualViewport",lua_cocos2dx_RenderTexture_setVirtualViewport); + tolua_function(tolua_S,"clearStencil",lua_cocos2dx_RenderTexture_clearStencil); + tolua_function(tolua_S,"getClearDepth",lua_cocos2dx_RenderTexture_getClearDepth); + tolua_function(tolua_S,"getClearStencil",lua_cocos2dx_RenderTexture_getClearStencil); + tolua_function(tolua_S,"end",lua_cocos2dx_RenderTexture_end); + tolua_function(tolua_S,"setClearStencil",lua_cocos2dx_RenderTexture_setClearStencil); + tolua_function(tolua_S,"setSprite",lua_cocos2dx_RenderTexture_setSprite); + tolua_function(tolua_S,"getSprite",lua_cocos2dx_RenderTexture_getSprite); + tolua_function(tolua_S,"isAutoDraw",lua_cocos2dx_RenderTexture_isAutoDraw); + tolua_function(tolua_S,"setKeepMatrix",lua_cocos2dx_RenderTexture_setKeepMatrix); + tolua_function(tolua_S,"setClearFlags",lua_cocos2dx_RenderTexture_setClearFlags); + tolua_function(tolua_S,"begin",lua_cocos2dx_RenderTexture_begin); + tolua_function(tolua_S,"saveToFile",lua_cocos2dx_RenderTexture_saveToFile); + tolua_function(tolua_S,"setAutoDraw",lua_cocos2dx_RenderTexture_setAutoDraw); + tolua_function(tolua_S,"setClearColor",lua_cocos2dx_RenderTexture_setClearColor); + tolua_function(tolua_S,"endToLua",lua_cocos2dx_RenderTexture_endToLua); + tolua_function(tolua_S,"beginWithClear",lua_cocos2dx_RenderTexture_beginWithClear); + tolua_function(tolua_S,"clearDepth",lua_cocos2dx_RenderTexture_clearDepth); + tolua_function(tolua_S,"getClearColor",lua_cocos2dx_RenderTexture_getClearColor); + tolua_function(tolua_S,"clear",lua_cocos2dx_RenderTexture_clear); + tolua_function(tolua_S,"getClearFlags",lua_cocos2dx_RenderTexture_getClearFlags); + tolua_function(tolua_S,"newImage",lua_cocos2dx_RenderTexture_newImage); + tolua_function(tolua_S,"setClearDepth",lua_cocos2dx_RenderTexture_setClearDepth); + tolua_function(tolua_S,"initWithWidthAndHeight",lua_cocos2dx_RenderTexture_initWithWidthAndHeight); + tolua_function(tolua_S,"create", lua_cocos2dx_RenderTexture_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RenderTexture).name(); g_luaType[typeName] = "cc.RenderTexture"; @@ -52330,31 +52330,31 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setTarget'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -52366,12 +52366,12 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setTarget",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setTarget'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) @@ -52382,7 +52382,7 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif @@ -52413,12 +52413,12 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:getGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_getGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) @@ -52426,31 +52426,31 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::GridBase* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.GridBase",&arg0); if(!ok) { @@ -52462,29 +52462,29 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setGrid",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -52499,7 +52499,7 @@ int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.NodeGrid:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_create'.",&tolua_err); #endif return 0; @@ -52514,12 +52514,12 @@ int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.NodeGrid"); tolua_cclass(tolua_S,"NodeGrid","cc.NodeGrid","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"NodeGrid"); - tolua_function(tolua_S,"setTarget",lua_cocos2dx_NodeGrid_setTarget); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_NodeGrid_getGrid); - tolua_function(tolua_S,"setGrid",lua_cocos2dx_NodeGrid_setGrid); - tolua_function(tolua_S,"create", lua_cocos2dx_NodeGrid_create); + tolua_function(tolua_S,"setTarget",lua_cocos2dx_NodeGrid_setTarget); + tolua_function(tolua_S,"getGrid",lua_cocos2dx_NodeGrid_getGrid); + tolua_function(tolua_S,"setGrid",lua_cocos2dx_NodeGrid_setGrid); + tolua_function(tolua_S,"create", lua_cocos2dx_NodeGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::NodeGrid).name(); g_luaType[typeName] = "cc.NodeGrid"; @@ -52532,31 +52532,31 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -52568,12 +52568,12 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) @@ -52581,31 +52581,31 @@ int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleBatchNode:disableParticle"); if(!ok) { @@ -52617,12 +52617,12 @@ int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:disableParticle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) @@ -52630,28 +52630,28 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52664,12 +52664,12 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) @@ -52677,31 +52677,31 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TextureAtlas* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); if(!ok) { @@ -52713,12 +52713,12 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setTextureAtlas",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -52726,31 +52726,31 @@ int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleBatchNode:removeAllChildrenWithCleanup"); if(!ok) { @@ -52762,12 +52762,12 @@ int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) @@ -52775,28 +52775,28 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -52809,12 +52809,12 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTextureAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) @@ -52822,34 +52822,34 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_insertChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ParticleSystem* arg0; int arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.ParticleSystem",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:insertChild"); if(!ok) { @@ -52861,12 +52861,12 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:insertChild",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_insertChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) @@ -52874,34 +52874,34 @@ int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; bool arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleBatchNode:removeChildAtIndex"); - + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ParticleBatchNode:removeChildAtIndex"); if(!ok) { @@ -52913,29 +52913,29 @@ int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:removeChildAtIndex",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -52967,7 +52967,7 @@ int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_create'.",&tolua_err); #endif return 0; @@ -52976,17 +52976,17 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Texture2D* arg0; @@ -53018,7 +53018,7 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'.",&tolua_err); #endif return 0; @@ -53033,18 +53033,18 @@ int lua_register_cocos2dx_ParticleBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleBatchNode"); tolua_cclass(tolua_S,"ParticleBatchNode","cc.ParticleBatchNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ParticleBatchNode"); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); - tolua_function(tolua_S,"disableParticle",lua_cocos2dx_ParticleBatchNode_disableParticle); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleBatchNode_getTexture); - tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_ParticleBatchNode_setTextureAtlas); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_ParticleBatchNode_getTextureAtlas); - tolua_function(tolua_S,"insertChild",lua_cocos2dx_ParticleBatchNode_insertChild); - tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_ParticleBatchNode_removeChildAtIndex); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleBatchNode_create); - tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_ParticleBatchNode_createWithTexture); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); + tolua_function(tolua_S,"disableParticle",lua_cocos2dx_ParticleBatchNode_disableParticle); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleBatchNode_getTexture); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_ParticleBatchNode_setTextureAtlas); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_ParticleBatchNode_getTextureAtlas); + tolua_function(tolua_S,"insertChild",lua_cocos2dx_ParticleBatchNode_insertChild); + tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_ParticleBatchNode_removeChildAtIndex); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleBatchNode_create); + tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_ParticleBatchNode_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleBatchNode).name(); g_luaType[typeName] = "cc.ParticleBatchNode"; @@ -53057,28 +53057,28 @@ int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53091,12 +53091,12 @@ int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSizeVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) @@ -53104,28 +53104,28 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53138,12 +53138,12 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTexture",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) @@ -53151,28 +53151,28 @@ int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isFull'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53185,12 +53185,12 @@ int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isFull",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isFull'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) @@ -53198,28 +53198,28 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53232,12 +53232,12 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getBatchNode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) @@ -53245,28 +53245,28 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53279,12 +53279,12 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) @@ -53292,28 +53292,28 @@ int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getPositionType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53326,12 +53326,12 @@ int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getPositionType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getPositionType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) @@ -53339,31 +53339,31 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setPosVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setPosVar"); if(!ok) { @@ -53375,12 +53375,12 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setPosVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setPosVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) @@ -53388,28 +53388,28 @@ int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53422,12 +53422,12 @@ int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSpin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) @@ -53435,31 +53435,31 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotatePerSecondVar"); if(!ok) { @@ -53471,12 +53471,12 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotatePerSecondVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) @@ -53484,28 +53484,28 @@ int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53518,12 +53518,12 @@ int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSpinVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) @@ -53531,28 +53531,28 @@ int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53565,12 +53565,12 @@ int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRadialAccelVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) @@ -53578,28 +53578,28 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53612,12 +53612,12 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSizeVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotation(lua_State* tolua_S) @@ -53625,31 +53625,31 @@ int lua_cocos2dx_ParticleSystem_setRotation(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotation"); if(!ok) { @@ -53661,12 +53661,12 @@ int lua_cocos2dx_ParticleSystem_setRotation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) @@ -53674,31 +53674,31 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setTangentialAccel"); if(!ok) { @@ -53710,12 +53710,12 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTangentialAccel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setScaleY(lua_State* tolua_S) @@ -53723,31 +53723,31 @@ int lua_cocos2dx_ParticleSystem_setScaleY(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setScaleY'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScaleY"); if(!ok) { @@ -53759,12 +53759,12 @@ int lua_cocos2dx_ParticleSystem_setScaleY(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScaleY",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScaleY'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setScaleX(lua_State* tolua_S) @@ -53772,31 +53772,31 @@ int lua_cocos2dx_ParticleSystem_setScaleX(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setScaleX'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScaleX"); if(!ok) { @@ -53808,12 +53808,12 @@ int lua_cocos2dx_ParticleSystem_setScaleX(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScaleX",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScaleX'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) @@ -53821,28 +53821,28 @@ int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -53855,12 +53855,12 @@ int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRadialAccel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) @@ -53868,31 +53868,31 @@ int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartRadius"); if(!ok) { @@ -53904,12 +53904,12 @@ int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartRadius",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) @@ -53917,31 +53917,31 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotatePerSecond"); if(!ok) { @@ -53953,12 +53953,12 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotatePerSecond",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) @@ -53966,31 +53966,31 @@ int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSize"); if(!ok) { @@ -54002,12 +54002,12 @@ int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) @@ -54015,28 +54015,28 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getGravity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54049,12 +54049,12 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getGravity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getGravity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) @@ -54062,28 +54062,28 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54096,12 +54096,12 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTangentialAccel",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) @@ -54109,31 +54109,31 @@ int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndRadius"); if(!ok) { @@ -54145,12 +54145,12 @@ int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndRadius",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) @@ -54158,28 +54158,28 @@ int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54192,12 +54192,12 @@ int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSpeed",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) @@ -54205,28 +54205,28 @@ int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54239,12 +54239,12 @@ int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) @@ -54252,31 +54252,31 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColor"); if(!ok) { @@ -54288,12 +54288,12 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) @@ -54301,31 +54301,31 @@ int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSpin"); if(!ok) { @@ -54337,12 +54337,12 @@ int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSpin",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) @@ -54350,31 +54350,31 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setDuration"); if(!ok) { @@ -54386,12 +54386,12 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setDuration",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) @@ -54399,31 +54399,31 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -54435,12 +54435,12 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) @@ -54448,28 +54448,28 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getPosVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54482,12 +54482,12 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getPosVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getPosVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) @@ -54495,28 +54495,28 @@ int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54528,12 +54528,12 @@ int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:updateWithNoTime",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) @@ -54541,28 +54541,28 @@ int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54575,12 +54575,12 @@ int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isBlendAdditive",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) @@ -54588,28 +54588,28 @@ int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54622,12 +54622,12 @@ int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSpeedVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) @@ -54635,31 +54635,31 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setPositionType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ParticleSystem::PositionType arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setPositionType"); if(!ok) { @@ -54671,12 +54671,12 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setPositionType",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setPositionType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) @@ -54684,28 +54684,28 @@ int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_stopSystem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54717,12 +54717,12 @@ int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:stopSystem",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_stopSystem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) @@ -54730,28 +54730,28 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54764,12 +54764,12 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSourcePosition",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) @@ -54777,31 +54777,31 @@ int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setLifeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setLifeVar"); if(!ok) { @@ -54813,12 +54813,12 @@ int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setLifeVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setLifeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) @@ -54826,31 +54826,31 @@ int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setTotalParticles"); if(!ok) { @@ -54862,12 +54862,12 @@ int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTotalParticles",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) @@ -54875,31 +54875,31 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColorVar"); if(!ok) { @@ -54911,12 +54911,12 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndColorVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) @@ -54924,28 +54924,28 @@ int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -54958,12 +54958,12 @@ int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAtlasIndex",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) @@ -54971,28 +54971,28 @@ int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55005,12 +55005,12 @@ int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) @@ -55018,31 +55018,31 @@ int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSpinVar"); if(!ok) { @@ -55054,12 +55054,12 @@ int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSpinVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) @@ -55067,28 +55067,28 @@ int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_resetSystem'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55100,12 +55100,12 @@ int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:resetSystem",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_resetSystem'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) @@ -55113,31 +55113,31 @@ int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setAtlasIndex"); if(!ok) { @@ -55149,12 +55149,12 @@ int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAtlasIndex",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) @@ -55162,31 +55162,31 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setTangentialAccelVar"); if(!ok) { @@ -55198,12 +55198,12 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTangentialAccelVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) @@ -55211,31 +55211,31 @@ int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndRadiusVar"); if(!ok) { @@ -55247,12 +55247,12 @@ int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndRadiusVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) @@ -55260,28 +55260,28 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55294,12 +55294,12 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndRadius",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(lua_State* tolua_S) @@ -55307,28 +55307,28 @@ int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55341,12 +55341,12 @@ int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isOpacityModifyRGB",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) @@ -55354,28 +55354,28 @@ int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isActive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55388,12 +55388,12 @@ int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isActive",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isActive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) @@ -55401,31 +55401,31 @@ int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRadialAccelVar"); if(!ok) { @@ -55437,12 +55437,12 @@ int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRadialAccelVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) @@ -55450,31 +55450,31 @@ int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSize"); if(!ok) { @@ -55486,12 +55486,12 @@ int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) @@ -55499,31 +55499,31 @@ int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSpeed'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setSpeed"); if(!ok) { @@ -55535,12 +55535,12 @@ int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSpeed",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSpeed'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) @@ -55548,28 +55548,28 @@ int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55582,12 +55582,12 @@ int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSpin",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) @@ -55595,28 +55595,28 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55629,12 +55629,12 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotatePerSecond",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) @@ -55642,31 +55642,31 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ParticleSystem::Mode arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setEmitterMode"); if(!ok) { @@ -55678,12 +55678,12 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEmitterMode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) @@ -55691,28 +55691,28 @@ int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getDuration'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55725,12 +55725,12 @@ int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getDuration",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getDuration'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) @@ -55738,31 +55738,31 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setSourcePosition"); if(!ok) { @@ -55774,12 +55774,12 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSourcePosition",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) @@ -55787,28 +55787,28 @@ int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -55821,12 +55821,12 @@ int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSpinVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) @@ -55834,31 +55834,31 @@ int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setBlendAdditive"); if(!ok) { @@ -55870,12 +55870,12 @@ int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBlendAdditive",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) @@ -55883,31 +55883,31 @@ int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setLife'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setLife"); if(!ok) { @@ -55919,12 +55919,12 @@ int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setLife",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setLife'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) @@ -55932,31 +55932,31 @@ int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAngleVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setAngleVar"); if(!ok) { @@ -55968,12 +55968,12 @@ int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAngleVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAngleVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) @@ -55981,31 +55981,31 @@ int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotationIsDir"); if(!ok) { @@ -56017,12 +56017,12 @@ int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotationIsDir",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) @@ -56030,31 +56030,31 @@ int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSizeVar"); if(!ok) { @@ -56066,12 +56066,12 @@ int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSizeVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) @@ -56079,31 +56079,31 @@ int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setAngle"); if(!ok) { @@ -56115,12 +56115,12 @@ int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAngle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) @@ -56128,31 +56128,31 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBatchNode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ParticleBatchNode* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.ParticleBatchNode",&arg0); if(!ok) { @@ -56164,12 +56164,12 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBatchNode",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBatchNode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) @@ -56177,28 +56177,28 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56211,12 +56211,12 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTangentialAccelVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) @@ -56224,28 +56224,28 @@ int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56258,12 +56258,12 @@ int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEmitterMode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) @@ -56271,31 +56271,31 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSpinVar"); if(!ok) { @@ -56307,12 +56307,12 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSpinVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) @@ -56320,28 +56320,28 @@ int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAngleVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56354,12 +56354,12 @@ int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAngleVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAngleVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) @@ -56367,31 +56367,31 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColor"); if(!ok) { @@ -56403,12 +56403,12 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartColor",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) @@ -56416,28 +56416,28 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56450,12 +56450,12 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotatePerSecondVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) @@ -56463,28 +56463,28 @@ int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56497,12 +56497,12 @@ int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) @@ -56510,28 +56510,28 @@ int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getLife'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56544,12 +56544,12 @@ int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getLife",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getLife'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) @@ -56557,31 +56557,31 @@ int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setSpeedVar"); if(!ok) { @@ -56593,12 +56593,12 @@ int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSpeedVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) @@ -56606,31 +56606,31 @@ int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setAutoRemoveOnFinish"); if(!ok) { @@ -56642,12 +56642,12 @@ int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAutoRemoveOnFinish",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) @@ -56655,31 +56655,31 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setGravity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setGravity"); if(!ok) { @@ -56691,12 +56691,12 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setGravity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setGravity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) @@ -56704,28 +56704,28 @@ int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_postStep'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56737,12 +56737,12 @@ int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:postStep",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_postStep'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) @@ -56750,31 +56750,31 @@ int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEmissionRate"); if(!ok) { @@ -56786,12 +56786,12 @@ int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEmissionRate",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) @@ -56799,28 +56799,28 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56833,12 +56833,12 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndColorVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) @@ -56846,28 +56846,28 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56880,12 +56880,12 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotationIsDir",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setScale(lua_State* tolua_S) @@ -56893,31 +56893,31 @@ int lua_cocos2dx_ParticleSystem_setScale(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setScale'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScale"); if(!ok) { @@ -56929,12 +56929,12 @@ int lua_cocos2dx_ParticleSystem_setScale(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScale",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScale'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) @@ -56942,28 +56942,28 @@ int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -56976,12 +56976,12 @@ int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEmissionRate",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) @@ -56989,28 +56989,28 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndColor'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57023,12 +57023,12 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndColor",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndColor'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) @@ -57036,28 +57036,28 @@ int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getLifeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57070,12 +57070,12 @@ int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getLifeVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getLifeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) @@ -57083,31 +57083,31 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSizeVar"); if(!ok) { @@ -57119,12 +57119,12 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSizeVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(lua_State* tolua_S) @@ -57132,31 +57132,31 @@ int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setOpacityModifyRGB'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setOpacityModifyRGB"); if(!ok) { @@ -57168,12 +57168,12 @@ int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setOpacityModifyRGB",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setOpacityModifyRGB'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) @@ -57181,28 +57181,28 @@ int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_addParticle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57215,12 +57215,12 @@ int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:addParticle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_addParticle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) @@ -57228,28 +57228,28 @@ int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartRadius'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57262,12 +57262,12 @@ int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartRadius",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartRadius'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) @@ -57275,28 +57275,28 @@ int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getParticleCount'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57309,12 +57309,12 @@ int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getParticleCount",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getParticleCount'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) @@ -57322,28 +57322,28 @@ int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57356,12 +57356,12 @@ int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartRadiusVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) @@ -57369,31 +57369,31 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Color4F arg0; - + ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColorVar"); if(!ok) { @@ -57405,12 +57405,12 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartColorVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) @@ -57418,31 +57418,31 @@ int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSpin'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSpin"); if(!ok) { @@ -57454,12 +57454,12 @@ int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSpin",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSpin'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) @@ -57467,31 +57467,31 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRadialAccel"); if(!ok) { @@ -57503,12 +57503,12 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRadialAccel",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) @@ -57516,28 +57516,28 @@ int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57550,12 +57550,12 @@ int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isAutoRemoveOnFinish",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) @@ -57563,28 +57563,28 @@ int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57597,12 +57597,12 @@ int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTotalParticles",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) @@ -57610,31 +57610,31 @@ int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartRadiusVar"); if(!ok) { @@ -57646,12 +57646,12 @@ int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartRadiusVar",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) @@ -57659,28 +57659,28 @@ int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57693,12 +57693,12 @@ int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndRadiusVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) @@ -57706,28 +57706,28 @@ int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -57740,29 +57740,29 @@ int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartColorVar",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystem_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -57779,7 +57779,7 @@ int lua_cocos2dx_ParticleSystem_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_create'.",&tolua_err); #endif return 0; @@ -57788,17 +57788,17 @@ int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -57815,7 +57815,7 @@ int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -57830,108 +57830,108 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystem"); tolua_cclass(tolua_S,"ParticleSystem","cc.ParticleSystem","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSystem"); - tolua_function(tolua_S,"getStartSizeVar",lua_cocos2dx_ParticleSystem_getStartSizeVar); - tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleSystem_getTexture); - tolua_function(tolua_S,"isFull",lua_cocos2dx_ParticleSystem_isFull); - tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_ParticleSystem_getBatchNode); - tolua_function(tolua_S,"getStartColor",lua_cocos2dx_ParticleSystem_getStartColor); - tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ParticleSystem_getPositionType); - tolua_function(tolua_S,"setPosVar",lua_cocos2dx_ParticleSystem_setPosVar); - tolua_function(tolua_S,"getEndSpin",lua_cocos2dx_ParticleSystem_getEndSpin); - tolua_function(tolua_S,"setRotatePerSecondVar",lua_cocos2dx_ParticleSystem_setRotatePerSecondVar); - tolua_function(tolua_S,"getStartSpinVar",lua_cocos2dx_ParticleSystem_getStartSpinVar); - tolua_function(tolua_S,"getRadialAccelVar",lua_cocos2dx_ParticleSystem_getRadialAccelVar); - tolua_function(tolua_S,"getEndSizeVar",lua_cocos2dx_ParticleSystem_getEndSizeVar); - tolua_function(tolua_S,"setRotation",lua_cocos2dx_ParticleSystem_setRotation); - tolua_function(tolua_S,"setTangentialAccel",lua_cocos2dx_ParticleSystem_setTangentialAccel); - tolua_function(tolua_S,"setScaleY",lua_cocos2dx_ParticleSystem_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_cocos2dx_ParticleSystem_setScaleX); - tolua_function(tolua_S,"getRadialAccel",lua_cocos2dx_ParticleSystem_getRadialAccel); - tolua_function(tolua_S,"setStartRadius",lua_cocos2dx_ParticleSystem_setStartRadius); - tolua_function(tolua_S,"setRotatePerSecond",lua_cocos2dx_ParticleSystem_setRotatePerSecond); - tolua_function(tolua_S,"setEndSize",lua_cocos2dx_ParticleSystem_setEndSize); - tolua_function(tolua_S,"getGravity",lua_cocos2dx_ParticleSystem_getGravity); - tolua_function(tolua_S,"getTangentialAccel",lua_cocos2dx_ParticleSystem_getTangentialAccel); - tolua_function(tolua_S,"setEndRadius",lua_cocos2dx_ParticleSystem_setEndRadius); - tolua_function(tolua_S,"getSpeed",lua_cocos2dx_ParticleSystem_getSpeed); - tolua_function(tolua_S,"getAngle",lua_cocos2dx_ParticleSystem_getAngle); - tolua_function(tolua_S,"setEndColor",lua_cocos2dx_ParticleSystem_setEndColor); - tolua_function(tolua_S,"setStartSpin",lua_cocos2dx_ParticleSystem_setStartSpin); - tolua_function(tolua_S,"setDuration",lua_cocos2dx_ParticleSystem_setDuration); - tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleSystem_setTexture); - tolua_function(tolua_S,"getPosVar",lua_cocos2dx_ParticleSystem_getPosVar); - tolua_function(tolua_S,"updateWithNoTime",lua_cocos2dx_ParticleSystem_updateWithNoTime); - tolua_function(tolua_S,"isBlendAdditive",lua_cocos2dx_ParticleSystem_isBlendAdditive); - tolua_function(tolua_S,"getSpeedVar",lua_cocos2dx_ParticleSystem_getSpeedVar); - tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ParticleSystem_setPositionType); - tolua_function(tolua_S,"stopSystem",lua_cocos2dx_ParticleSystem_stopSystem); - tolua_function(tolua_S,"getSourcePosition",lua_cocos2dx_ParticleSystem_getSourcePosition); - tolua_function(tolua_S,"setLifeVar",lua_cocos2dx_ParticleSystem_setLifeVar); - tolua_function(tolua_S,"setTotalParticles",lua_cocos2dx_ParticleSystem_setTotalParticles); - tolua_function(tolua_S,"setEndColorVar",lua_cocos2dx_ParticleSystem_setEndColorVar); - tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_ParticleSystem_getAtlasIndex); - tolua_function(tolua_S,"getStartSize",lua_cocos2dx_ParticleSystem_getStartSize); - tolua_function(tolua_S,"setStartSpinVar",lua_cocos2dx_ParticleSystem_setStartSpinVar); - tolua_function(tolua_S,"resetSystem",lua_cocos2dx_ParticleSystem_resetSystem); - tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_ParticleSystem_setAtlasIndex); - tolua_function(tolua_S,"setTangentialAccelVar",lua_cocos2dx_ParticleSystem_setTangentialAccelVar); - tolua_function(tolua_S,"setEndRadiusVar",lua_cocos2dx_ParticleSystem_setEndRadiusVar); - tolua_function(tolua_S,"getEndRadius",lua_cocos2dx_ParticleSystem_getEndRadius); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_ParticleSystem_isOpacityModifyRGB); - tolua_function(tolua_S,"isActive",lua_cocos2dx_ParticleSystem_isActive); - tolua_function(tolua_S,"setRadialAccelVar",lua_cocos2dx_ParticleSystem_setRadialAccelVar); - tolua_function(tolua_S,"setStartSize",lua_cocos2dx_ParticleSystem_setStartSize); - tolua_function(tolua_S,"setSpeed",lua_cocos2dx_ParticleSystem_setSpeed); - tolua_function(tolua_S,"getStartSpin",lua_cocos2dx_ParticleSystem_getStartSpin); - tolua_function(tolua_S,"getRotatePerSecond",lua_cocos2dx_ParticleSystem_getRotatePerSecond); - tolua_function(tolua_S,"setEmitterMode",lua_cocos2dx_ParticleSystem_setEmitterMode); - tolua_function(tolua_S,"getDuration",lua_cocos2dx_ParticleSystem_getDuration); - tolua_function(tolua_S,"setSourcePosition",lua_cocos2dx_ParticleSystem_setSourcePosition); - tolua_function(tolua_S,"getEndSpinVar",lua_cocos2dx_ParticleSystem_getEndSpinVar); - tolua_function(tolua_S,"setBlendAdditive",lua_cocos2dx_ParticleSystem_setBlendAdditive); - tolua_function(tolua_S,"setLife",lua_cocos2dx_ParticleSystem_setLife); - tolua_function(tolua_S,"setAngleVar",lua_cocos2dx_ParticleSystem_setAngleVar); - tolua_function(tolua_S,"setRotationIsDir",lua_cocos2dx_ParticleSystem_setRotationIsDir); - tolua_function(tolua_S,"setEndSizeVar",lua_cocos2dx_ParticleSystem_setEndSizeVar); - tolua_function(tolua_S,"setAngle",lua_cocos2dx_ParticleSystem_setAngle); - tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_ParticleSystem_setBatchNode); - tolua_function(tolua_S,"getTangentialAccelVar",lua_cocos2dx_ParticleSystem_getTangentialAccelVar); - tolua_function(tolua_S,"getEmitterMode",lua_cocos2dx_ParticleSystem_getEmitterMode); - tolua_function(tolua_S,"setEndSpinVar",lua_cocos2dx_ParticleSystem_setEndSpinVar); - tolua_function(tolua_S,"getAngleVar",lua_cocos2dx_ParticleSystem_getAngleVar); - tolua_function(tolua_S,"setStartColor",lua_cocos2dx_ParticleSystem_setStartColor); - tolua_function(tolua_S,"getRotatePerSecondVar",lua_cocos2dx_ParticleSystem_getRotatePerSecondVar); - tolua_function(tolua_S,"getEndSize",lua_cocos2dx_ParticleSystem_getEndSize); - tolua_function(tolua_S,"getLife",lua_cocos2dx_ParticleSystem_getLife); - tolua_function(tolua_S,"setSpeedVar",lua_cocos2dx_ParticleSystem_setSpeedVar); - tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish); - tolua_function(tolua_S,"setGravity",lua_cocos2dx_ParticleSystem_setGravity); - tolua_function(tolua_S,"postStep",lua_cocos2dx_ParticleSystem_postStep); - tolua_function(tolua_S,"setEmissionRate",lua_cocos2dx_ParticleSystem_setEmissionRate); - tolua_function(tolua_S,"getEndColorVar",lua_cocos2dx_ParticleSystem_getEndColorVar); - tolua_function(tolua_S,"getRotationIsDir",lua_cocos2dx_ParticleSystem_getRotationIsDir); - tolua_function(tolua_S,"setScale",lua_cocos2dx_ParticleSystem_setScale); - tolua_function(tolua_S,"getEmissionRate",lua_cocos2dx_ParticleSystem_getEmissionRate); - tolua_function(tolua_S,"getEndColor",lua_cocos2dx_ParticleSystem_getEndColor); - tolua_function(tolua_S,"getLifeVar",lua_cocos2dx_ParticleSystem_getLifeVar); - tolua_function(tolua_S,"setStartSizeVar",lua_cocos2dx_ParticleSystem_setStartSizeVar); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_ParticleSystem_setOpacityModifyRGB); - tolua_function(tolua_S,"addParticle",lua_cocos2dx_ParticleSystem_addParticle); - tolua_function(tolua_S,"getStartRadius",lua_cocos2dx_ParticleSystem_getStartRadius); - tolua_function(tolua_S,"getParticleCount",lua_cocos2dx_ParticleSystem_getParticleCount); - tolua_function(tolua_S,"getStartRadiusVar",lua_cocos2dx_ParticleSystem_getStartRadiusVar); - tolua_function(tolua_S,"setStartColorVar",lua_cocos2dx_ParticleSystem_setStartColorVar); - tolua_function(tolua_S,"setEndSpin",lua_cocos2dx_ParticleSystem_setEndSpin); - tolua_function(tolua_S,"setRadialAccel",lua_cocos2dx_ParticleSystem_setRadialAccel); - tolua_function(tolua_S,"isAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish); - tolua_function(tolua_S,"getTotalParticles",lua_cocos2dx_ParticleSystem_getTotalParticles); - tolua_function(tolua_S,"setStartRadiusVar",lua_cocos2dx_ParticleSystem_setStartRadiusVar); - tolua_function(tolua_S,"getEndRadiusVar",lua_cocos2dx_ParticleSystem_getEndRadiusVar); - tolua_function(tolua_S,"getStartColorVar",lua_cocos2dx_ParticleSystem_getStartColorVar); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystem_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystem_createWithTotalParticles); + tolua_function(tolua_S,"getStartSizeVar",lua_cocos2dx_ParticleSystem_getStartSizeVar); + tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleSystem_getTexture); + tolua_function(tolua_S,"isFull",lua_cocos2dx_ParticleSystem_isFull); + tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_ParticleSystem_getBatchNode); + tolua_function(tolua_S,"getStartColor",lua_cocos2dx_ParticleSystem_getStartColor); + tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ParticleSystem_getPositionType); + tolua_function(tolua_S,"setPosVar",lua_cocos2dx_ParticleSystem_setPosVar); + tolua_function(tolua_S,"getEndSpin",lua_cocos2dx_ParticleSystem_getEndSpin); + tolua_function(tolua_S,"setRotatePerSecondVar",lua_cocos2dx_ParticleSystem_setRotatePerSecondVar); + tolua_function(tolua_S,"getStartSpinVar",lua_cocos2dx_ParticleSystem_getStartSpinVar); + tolua_function(tolua_S,"getRadialAccelVar",lua_cocos2dx_ParticleSystem_getRadialAccelVar); + tolua_function(tolua_S,"getEndSizeVar",lua_cocos2dx_ParticleSystem_getEndSizeVar); + tolua_function(tolua_S,"setRotation",lua_cocos2dx_ParticleSystem_setRotation); + tolua_function(tolua_S,"setTangentialAccel",lua_cocos2dx_ParticleSystem_setTangentialAccel); + tolua_function(tolua_S,"setScaleY",lua_cocos2dx_ParticleSystem_setScaleY); + tolua_function(tolua_S,"setScaleX",lua_cocos2dx_ParticleSystem_setScaleX); + tolua_function(tolua_S,"getRadialAccel",lua_cocos2dx_ParticleSystem_getRadialAccel); + tolua_function(tolua_S,"setStartRadius",lua_cocos2dx_ParticleSystem_setStartRadius); + tolua_function(tolua_S,"setRotatePerSecond",lua_cocos2dx_ParticleSystem_setRotatePerSecond); + tolua_function(tolua_S,"setEndSize",lua_cocos2dx_ParticleSystem_setEndSize); + tolua_function(tolua_S,"getGravity",lua_cocos2dx_ParticleSystem_getGravity); + tolua_function(tolua_S,"getTangentialAccel",lua_cocos2dx_ParticleSystem_getTangentialAccel); + tolua_function(tolua_S,"setEndRadius",lua_cocos2dx_ParticleSystem_setEndRadius); + tolua_function(tolua_S,"getSpeed",lua_cocos2dx_ParticleSystem_getSpeed); + tolua_function(tolua_S,"getAngle",lua_cocos2dx_ParticleSystem_getAngle); + tolua_function(tolua_S,"setEndColor",lua_cocos2dx_ParticleSystem_setEndColor); + tolua_function(tolua_S,"setStartSpin",lua_cocos2dx_ParticleSystem_setStartSpin); + tolua_function(tolua_S,"setDuration",lua_cocos2dx_ParticleSystem_setDuration); + tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleSystem_setTexture); + tolua_function(tolua_S,"getPosVar",lua_cocos2dx_ParticleSystem_getPosVar); + tolua_function(tolua_S,"updateWithNoTime",lua_cocos2dx_ParticleSystem_updateWithNoTime); + tolua_function(tolua_S,"isBlendAdditive",lua_cocos2dx_ParticleSystem_isBlendAdditive); + tolua_function(tolua_S,"getSpeedVar",lua_cocos2dx_ParticleSystem_getSpeedVar); + tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ParticleSystem_setPositionType); + tolua_function(tolua_S,"stopSystem",lua_cocos2dx_ParticleSystem_stopSystem); + tolua_function(tolua_S,"getSourcePosition",lua_cocos2dx_ParticleSystem_getSourcePosition); + tolua_function(tolua_S,"setLifeVar",lua_cocos2dx_ParticleSystem_setLifeVar); + tolua_function(tolua_S,"setTotalParticles",lua_cocos2dx_ParticleSystem_setTotalParticles); + tolua_function(tolua_S,"setEndColorVar",lua_cocos2dx_ParticleSystem_setEndColorVar); + tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_ParticleSystem_getAtlasIndex); + tolua_function(tolua_S,"getStartSize",lua_cocos2dx_ParticleSystem_getStartSize); + tolua_function(tolua_S,"setStartSpinVar",lua_cocos2dx_ParticleSystem_setStartSpinVar); + tolua_function(tolua_S,"resetSystem",lua_cocos2dx_ParticleSystem_resetSystem); + tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_ParticleSystem_setAtlasIndex); + tolua_function(tolua_S,"setTangentialAccelVar",lua_cocos2dx_ParticleSystem_setTangentialAccelVar); + tolua_function(tolua_S,"setEndRadiusVar",lua_cocos2dx_ParticleSystem_setEndRadiusVar); + tolua_function(tolua_S,"getEndRadius",lua_cocos2dx_ParticleSystem_getEndRadius); + tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_ParticleSystem_isOpacityModifyRGB); + tolua_function(tolua_S,"isActive",lua_cocos2dx_ParticleSystem_isActive); + tolua_function(tolua_S,"setRadialAccelVar",lua_cocos2dx_ParticleSystem_setRadialAccelVar); + tolua_function(tolua_S,"setStartSize",lua_cocos2dx_ParticleSystem_setStartSize); + tolua_function(tolua_S,"setSpeed",lua_cocos2dx_ParticleSystem_setSpeed); + tolua_function(tolua_S,"getStartSpin",lua_cocos2dx_ParticleSystem_getStartSpin); + tolua_function(tolua_S,"getRotatePerSecond",lua_cocos2dx_ParticleSystem_getRotatePerSecond); + tolua_function(tolua_S,"setEmitterMode",lua_cocos2dx_ParticleSystem_setEmitterMode); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_ParticleSystem_getDuration); + tolua_function(tolua_S,"setSourcePosition",lua_cocos2dx_ParticleSystem_setSourcePosition); + tolua_function(tolua_S,"getEndSpinVar",lua_cocos2dx_ParticleSystem_getEndSpinVar); + tolua_function(tolua_S,"setBlendAdditive",lua_cocos2dx_ParticleSystem_setBlendAdditive); + tolua_function(tolua_S,"setLife",lua_cocos2dx_ParticleSystem_setLife); + tolua_function(tolua_S,"setAngleVar",lua_cocos2dx_ParticleSystem_setAngleVar); + tolua_function(tolua_S,"setRotationIsDir",lua_cocos2dx_ParticleSystem_setRotationIsDir); + tolua_function(tolua_S,"setEndSizeVar",lua_cocos2dx_ParticleSystem_setEndSizeVar); + tolua_function(tolua_S,"setAngle",lua_cocos2dx_ParticleSystem_setAngle); + tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_ParticleSystem_setBatchNode); + tolua_function(tolua_S,"getTangentialAccelVar",lua_cocos2dx_ParticleSystem_getTangentialAccelVar); + tolua_function(tolua_S,"getEmitterMode",lua_cocos2dx_ParticleSystem_getEmitterMode); + tolua_function(tolua_S,"setEndSpinVar",lua_cocos2dx_ParticleSystem_setEndSpinVar); + tolua_function(tolua_S,"getAngleVar",lua_cocos2dx_ParticleSystem_getAngleVar); + tolua_function(tolua_S,"setStartColor",lua_cocos2dx_ParticleSystem_setStartColor); + tolua_function(tolua_S,"getRotatePerSecondVar",lua_cocos2dx_ParticleSystem_getRotatePerSecondVar); + tolua_function(tolua_S,"getEndSize",lua_cocos2dx_ParticleSystem_getEndSize); + tolua_function(tolua_S,"getLife",lua_cocos2dx_ParticleSystem_getLife); + tolua_function(tolua_S,"setSpeedVar",lua_cocos2dx_ParticleSystem_setSpeedVar); + tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish); + tolua_function(tolua_S,"setGravity",lua_cocos2dx_ParticleSystem_setGravity); + tolua_function(tolua_S,"postStep",lua_cocos2dx_ParticleSystem_postStep); + tolua_function(tolua_S,"setEmissionRate",lua_cocos2dx_ParticleSystem_setEmissionRate); + tolua_function(tolua_S,"getEndColorVar",lua_cocos2dx_ParticleSystem_getEndColorVar); + tolua_function(tolua_S,"getRotationIsDir",lua_cocos2dx_ParticleSystem_getRotationIsDir); + tolua_function(tolua_S,"setScale",lua_cocos2dx_ParticleSystem_setScale); + tolua_function(tolua_S,"getEmissionRate",lua_cocos2dx_ParticleSystem_getEmissionRate); + tolua_function(tolua_S,"getEndColor",lua_cocos2dx_ParticleSystem_getEndColor); + tolua_function(tolua_S,"getLifeVar",lua_cocos2dx_ParticleSystem_getLifeVar); + tolua_function(tolua_S,"setStartSizeVar",lua_cocos2dx_ParticleSystem_setStartSizeVar); + tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_ParticleSystem_setOpacityModifyRGB); + tolua_function(tolua_S,"addParticle",lua_cocos2dx_ParticleSystem_addParticle); + tolua_function(tolua_S,"getStartRadius",lua_cocos2dx_ParticleSystem_getStartRadius); + tolua_function(tolua_S,"getParticleCount",lua_cocos2dx_ParticleSystem_getParticleCount); + tolua_function(tolua_S,"getStartRadiusVar",lua_cocos2dx_ParticleSystem_getStartRadiusVar); + tolua_function(tolua_S,"setStartColorVar",lua_cocos2dx_ParticleSystem_setStartColorVar); + tolua_function(tolua_S,"setEndSpin",lua_cocos2dx_ParticleSystem_setEndSpin); + tolua_function(tolua_S,"setRadialAccel",lua_cocos2dx_ParticleSystem_setRadialAccel); + tolua_function(tolua_S,"isAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish); + tolua_function(tolua_S,"getTotalParticles",lua_cocos2dx_ParticleSystem_getTotalParticles); + tolua_function(tolua_S,"setStartRadiusVar",lua_cocos2dx_ParticleSystem_setStartRadiusVar); + tolua_function(tolua_S,"getEndRadiusVar",lua_cocos2dx_ParticleSystem_getEndRadiusVar); + tolua_function(tolua_S,"getStartColorVar",lua_cocos2dx_ParticleSystem_getStartColorVar); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystem_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystem_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystem).name(); g_luaType[typeName] = "cc.ParticleSystem"; @@ -57944,31 +57944,31 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::SpriteFrame* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); if(!ok) { @@ -57980,12 +57980,12 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:setDisplayFrame",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) @@ -57993,34 +57993,34 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Texture2D* arg0; cocos2d::Rect arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); - + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.ParticleSystemQuad:setTextureWithRect"); if(!ok) { @@ -58032,12 +58032,12 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:setTextureWithRect",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) @@ -58045,31 +58045,31 @@ int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::EventCustom* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0); if(!ok) { @@ -58081,12 +58081,12 @@ int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:listenRendererRecreated",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) @@ -58096,14 +58096,14 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -58116,7 +58116,7 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 0) { @@ -58126,7 +58126,7 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 1) { @@ -58142,7 +58142,7 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ParticleSystemQuad:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_create'.",&tolua_err); #endif return 0; @@ -58151,17 +58151,17 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58178,7 +58178,7 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystemQuad:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58193,13 +58193,13 @@ int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystemQuad"); tolua_cclass(tolua_S,"ParticleSystemQuad","cc.ParticleSystemQuad","cc.ParticleSystem",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSystemQuad"); - tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame); - tolua_function(tolua_S,"setTextureWithRect",lua_cocos2dx_ParticleSystemQuad_setTextureWithRect); - tolua_function(tolua_S,"listenRendererRecreated",lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles); + tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame); + tolua_function(tolua_S,"setTextureWithRect",lua_cocos2dx_ParticleSystemQuad_setTextureWithRect); + tolua_function(tolua_S,"listenRendererRecreated",lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystemQuad).name(); g_luaType[typeName] = "cc.ParticleSystemQuad"; @@ -58211,17 +58211,17 @@ int lua_cocos2dx_ParticleFire_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFire",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58236,7 +58236,7 @@ int lua_cocos2dx_ParticleFire_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_create'.",&tolua_err); #endif return 0; @@ -58245,17 +58245,17 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFire",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58272,7 +58272,7 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58287,10 +58287,10 @@ int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFire"); tolua_cclass(tolua_S,"ParticleFire","cc.ParticleFire","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleFire"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFire).name(); g_luaType[typeName] = "cc.ParticleFire"; @@ -58302,17 +58302,17 @@ int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58327,7 +58327,7 @@ int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_create'.",&tolua_err); #endif return 0; @@ -58336,17 +58336,17 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58363,7 +58363,7 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58378,10 +58378,10 @@ int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFireworks"); tolua_cclass(tolua_S,"ParticleFireworks","cc.ParticleFireworks","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleFireworks"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFireworks).name(); g_luaType[typeName] = "cc.ParticleFireworks"; @@ -58393,17 +58393,17 @@ int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58418,7 +58418,7 @@ int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_create'.",&tolua_err); #endif return 0; @@ -58427,17 +58427,17 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58454,7 +58454,7 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58469,10 +58469,10 @@ int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSun"); tolua_cclass(tolua_S,"ParticleSun","cc.ParticleSun","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSun"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSun).name(); g_luaType[typeName] = "cc.ParticleSun"; @@ -58484,17 +58484,17 @@ int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58509,7 +58509,7 @@ int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_create'.",&tolua_err); #endif return 0; @@ -58518,17 +58518,17 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58545,7 +58545,7 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58560,10 +58560,10 @@ int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleGalaxy"); tolua_cclass(tolua_S,"ParticleGalaxy","cc.ParticleGalaxy","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleGalaxy"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleGalaxy).name(); g_luaType[typeName] = "cc.ParticleGalaxy"; @@ -58575,17 +58575,17 @@ int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58600,7 +58600,7 @@ int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_create'.",&tolua_err); #endif return 0; @@ -58609,17 +58609,17 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58636,7 +58636,7 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58651,10 +58651,10 @@ int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFlower"); tolua_cclass(tolua_S,"ParticleFlower","cc.ParticleFlower","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleFlower"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFlower).name(); g_luaType[typeName] = "cc.ParticleFlower"; @@ -58666,17 +58666,17 @@ int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58691,7 +58691,7 @@ int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_create'.",&tolua_err); #endif return 0; @@ -58700,17 +58700,17 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58727,7 +58727,7 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58742,10 +58742,10 @@ int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleMeteor"); tolua_cclass(tolua_S,"ParticleMeteor","cc.ParticleMeteor","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleMeteor"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleMeteor).name(); g_luaType[typeName] = "cc.ParticleMeteor"; @@ -58757,17 +58757,17 @@ int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58782,7 +58782,7 @@ int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_create'.",&tolua_err); #endif return 0; @@ -58791,17 +58791,17 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58818,7 +58818,7 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58833,10 +58833,10 @@ int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSpiral"); tolua_cclass(tolua_S,"ParticleSpiral","cc.ParticleSpiral","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSpiral"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSpiral).name(); g_luaType[typeName] = "cc.ParticleSpiral"; @@ -58848,17 +58848,17 @@ int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58873,7 +58873,7 @@ int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_create'.",&tolua_err); #endif return 0; @@ -58882,17 +58882,17 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -58909,7 +58909,7 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -58924,10 +58924,10 @@ int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleExplosion"); tolua_cclass(tolua_S,"ParticleExplosion","cc.ParticleExplosion","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleExplosion"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleExplosion).name(); g_luaType[typeName] = "cc.ParticleExplosion"; @@ -58939,17 +58939,17 @@ int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -58964,7 +58964,7 @@ int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_create'.",&tolua_err); #endif return 0; @@ -58973,17 +58973,17 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -59000,7 +59000,7 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -59015,10 +59015,10 @@ int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSmoke"); tolua_cclass(tolua_S,"ParticleSmoke","cc.ParticleSmoke","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSmoke"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSmoke).name(); g_luaType[typeName] = "cc.ParticleSmoke"; @@ -59030,17 +59030,17 @@ int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -59055,7 +59055,7 @@ int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_create'.",&tolua_err); #endif return 0; @@ -59064,17 +59064,17 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -59091,7 +59091,7 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -59106,10 +59106,10 @@ int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSnow"); tolua_cclass(tolua_S,"ParticleSnow","cc.ParticleSnow","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleSnow"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSnow).name(); g_luaType[typeName] = "cc.ParticleSnow"; @@ -59121,17 +59121,17 @@ int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -59146,7 +59146,7 @@ int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_create'.",&tolua_err); #endif return 0; @@ -59155,17 +59155,17 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { int arg0; @@ -59182,7 +59182,7 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_createWithTotalParticles'.",&tolua_err); #endif return 0; @@ -59197,10 +59197,10 @@ int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleRain"); tolua_cclass(tolua_S,"ParticleRain","cc.ParticleRain","cc.ParticleSystemQuad",nullptr); - + tolua_beginmodule(tolua_S,"ParticleRain"); - tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); - tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); + tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); + tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleRain).name(); g_luaType[typeName] = "cc.ParticleRain"; @@ -59213,31 +59213,31 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setGridSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:setGridSize"); if(!ok) { @@ -59249,12 +59249,12 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setGridSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setGridSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) @@ -59262,28 +59262,28 @@ int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_afterBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59295,12 +59295,12 @@ int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:afterBlit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_afterBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) @@ -59308,31 +59308,31 @@ int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_afterDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -59344,12 +59344,12 @@ int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:afterDraw",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_afterDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) @@ -59357,28 +59357,28 @@ int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_beforeDraw'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59390,12 +59390,12 @@ int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:beforeDraw",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_beforeDraw'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) @@ -59403,28 +59403,28 @@ int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_calculateVertexPoints'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59436,12 +59436,12 @@ int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:calculateVertexPoints",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_calculateVertexPoints'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) @@ -59449,28 +59449,28 @@ int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_isTextureFlipped'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59483,12 +59483,12 @@ int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:isTextureFlipped",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_isTextureFlipped'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) @@ -59496,28 +59496,28 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getGridSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59530,12 +59530,12 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getGridSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getGridSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) @@ -59543,28 +59543,28 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getStep'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59577,12 +59577,12 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getStep",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getStep'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) @@ -59590,28 +59590,28 @@ int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_set2DProjection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59623,12 +59623,12 @@ int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:set2DProjection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_set2DProjection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) @@ -59636,31 +59636,31 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setStep'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:setStep"); if(!ok) { @@ -59672,12 +59672,12 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setStep",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setStep'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) @@ -59685,31 +59685,31 @@ int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setTextureFlipped'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GridBase:setTextureFlipped"); if(!ok) { @@ -59721,12 +59721,12 @@ int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setTextureFlipped",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setTextureFlipped'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) @@ -59734,28 +59734,28 @@ int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_blit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59767,12 +59767,12 @@ int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:blit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_blit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) @@ -59780,31 +59780,31 @@ int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setActive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GridBase:setActive"); if(!ok) { @@ -59816,12 +59816,12 @@ int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setActive",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setActive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) @@ -59829,28 +59829,28 @@ int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getReuseGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59863,12 +59863,12 @@ int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getReuseGrid",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getReuseGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) @@ -59879,7 +59879,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif @@ -59896,7 +59896,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); - + if (!ok) { break; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); @@ -59908,15 +59908,15 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) if (argc == 3) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.GridBase:initWithSize"); - + if (!ok) { break; } bool ret = cobj->initWithSize(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); @@ -59926,12 +59926,12 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:initWithSize",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_initWithSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) @@ -59939,28 +59939,28 @@ int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_beforeBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -59972,12 +59972,12 @@ int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:beforeBlit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_beforeBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) @@ -59985,31 +59985,31 @@ int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setReuseGrid'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GridBase:setReuseGrid"); if(!ok) { @@ -60021,12 +60021,12 @@ int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setReuseGrid",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setReuseGrid'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) @@ -60034,28 +60034,28 @@ int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_isActive'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60068,12 +60068,12 @@ int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:isActive",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_isActive'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) @@ -60081,28 +60081,28 @@ int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_reuse'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60114,12 +60114,12 @@ int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:reuse",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_reuse'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GridBase_create(lua_State* tolua_S) @@ -60129,14 +60129,14 @@ int lua_cocos2dx_GridBase_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -60149,7 +60149,7 @@ int lua_cocos2dx_GridBase_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -60171,7 +60171,7 @@ int lua_cocos2dx_GridBase_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.GridBase:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_create'.",&tolua_err); #endif return 0; @@ -60186,28 +60186,28 @@ int lua_register_cocos2dx_GridBase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridBase"); tolua_cclass(tolua_S,"GridBase","cc.GridBase","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GridBase"); - tolua_function(tolua_S,"setGridSize",lua_cocos2dx_GridBase_setGridSize); - tolua_function(tolua_S,"afterBlit",lua_cocos2dx_GridBase_afterBlit); - tolua_function(tolua_S,"afterDraw",lua_cocos2dx_GridBase_afterDraw); - tolua_function(tolua_S,"beforeDraw",lua_cocos2dx_GridBase_beforeDraw); - tolua_function(tolua_S,"calculateVertexPoints",lua_cocos2dx_GridBase_calculateVertexPoints); - tolua_function(tolua_S,"isTextureFlipped",lua_cocos2dx_GridBase_isTextureFlipped); - tolua_function(tolua_S,"getGridSize",lua_cocos2dx_GridBase_getGridSize); - tolua_function(tolua_S,"getStep",lua_cocos2dx_GridBase_getStep); - tolua_function(tolua_S,"set2DProjection",lua_cocos2dx_GridBase_set2DProjection); - tolua_function(tolua_S,"setStep",lua_cocos2dx_GridBase_setStep); - tolua_function(tolua_S,"setTextureFlipped",lua_cocos2dx_GridBase_setTextureFlipped); - tolua_function(tolua_S,"blit",lua_cocos2dx_GridBase_blit); - tolua_function(tolua_S,"setActive",lua_cocos2dx_GridBase_setActive); - tolua_function(tolua_S,"getReuseGrid",lua_cocos2dx_GridBase_getReuseGrid); - tolua_function(tolua_S,"initWithSize",lua_cocos2dx_GridBase_initWithSize); - tolua_function(tolua_S,"beforeBlit",lua_cocos2dx_GridBase_beforeBlit); - tolua_function(tolua_S,"setReuseGrid",lua_cocos2dx_GridBase_setReuseGrid); - tolua_function(tolua_S,"isActive",lua_cocos2dx_GridBase_isActive); - tolua_function(tolua_S,"reuse",lua_cocos2dx_GridBase_reuse); - tolua_function(tolua_S,"create", lua_cocos2dx_GridBase_create); + tolua_function(tolua_S,"setGridSize",lua_cocos2dx_GridBase_setGridSize); + tolua_function(tolua_S,"afterBlit",lua_cocos2dx_GridBase_afterBlit); + tolua_function(tolua_S,"afterDraw",lua_cocos2dx_GridBase_afterDraw); + tolua_function(tolua_S,"beforeDraw",lua_cocos2dx_GridBase_beforeDraw); + tolua_function(tolua_S,"calculateVertexPoints",lua_cocos2dx_GridBase_calculateVertexPoints); + tolua_function(tolua_S,"isTextureFlipped",lua_cocos2dx_GridBase_isTextureFlipped); + tolua_function(tolua_S,"getGridSize",lua_cocos2dx_GridBase_getGridSize); + tolua_function(tolua_S,"getStep",lua_cocos2dx_GridBase_getStep); + tolua_function(tolua_S,"set2DProjection",lua_cocos2dx_GridBase_set2DProjection); + tolua_function(tolua_S,"setStep",lua_cocos2dx_GridBase_setStep); + tolua_function(tolua_S,"setTextureFlipped",lua_cocos2dx_GridBase_setTextureFlipped); + tolua_function(tolua_S,"blit",lua_cocos2dx_GridBase_blit); + tolua_function(tolua_S,"setActive",lua_cocos2dx_GridBase_setActive); + tolua_function(tolua_S,"getReuseGrid",lua_cocos2dx_GridBase_getReuseGrid); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_GridBase_initWithSize); + tolua_function(tolua_S,"beforeBlit",lua_cocos2dx_GridBase_beforeBlit); + tolua_function(tolua_S,"setReuseGrid",lua_cocos2dx_GridBase_setReuseGrid); + tolua_function(tolua_S,"isActive",lua_cocos2dx_GridBase_isActive); + tolua_function(tolua_S,"reuse",lua_cocos2dx_GridBase_reuse); + tolua_function(tolua_S,"create", lua_cocos2dx_GridBase_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridBase).name(); g_luaType[typeName] = "cc.GridBase"; @@ -60220,28 +60220,28 @@ int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60254,12 +60254,12 @@ int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:getNeedDepthTestForBlit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) @@ -60267,31 +60267,31 @@ int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Grid3D:setNeedDepthTestForBlit"); if(!ok) { @@ -60303,12 +60303,12 @@ int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:setNeedDepthTestForBlit",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) @@ -60318,14 +60318,14 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -60338,7 +60338,7 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -60360,7 +60360,7 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Grid3D:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_create'.",&tolua_err); #endif return 0; @@ -60370,15 +60370,15 @@ int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60394,11 +60394,11 @@ int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:Grid3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_constructor'.",&tolua_err); #endif - + return 0; } @@ -60412,12 +60412,12 @@ int lua_register_cocos2dx_Grid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3D"); tolua_cclass(tolua_S,"Grid3D","cc.Grid3D","cc.GridBase",nullptr); - + tolua_beginmodule(tolua_S,"Grid3D"); - tolua_function(tolua_S,"new",lua_cocos2dx_Grid3D_constructor); - tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_cocos2dx_Grid3D_getNeedDepthTestForBlit); - tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_cocos2dx_Grid3D_setNeedDepthTestForBlit); - tolua_function(tolua_S,"create", lua_cocos2dx_Grid3D_create); + tolua_function(tolua_S,"new",lua_cocos2dx_Grid3D_constructor); + tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_cocos2dx_Grid3D_getNeedDepthTestForBlit); + tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_cocos2dx_Grid3D_setNeedDepthTestForBlit); + tolua_function(tolua_S,"create", lua_cocos2dx_Grid3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3D).name(); g_luaType[typeName] = "cc.Grid3D"; @@ -60432,14 +60432,14 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TiledGrid3D",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S)-1; - - do + + do { if (argc == 1) { @@ -60452,7 +60452,7 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) } } while (0); ok = true; - do + do { if (argc == 3) { @@ -60474,7 +60474,7 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TiledGrid3D:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3D_create'.",&tolua_err); #endif return 0; @@ -60484,15 +60484,15 @@ int lua_cocos2dx_TiledGrid3D_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TiledGrid3D* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60508,11 +60508,11 @@ int lua_cocos2dx_TiledGrid3D_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TiledGrid3D:TiledGrid3D",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3D_constructor'.",&tolua_err); #endif - + return 0; } @@ -60526,10 +60526,10 @@ int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3D"); tolua_cclass(tolua_S,"TiledGrid3D","cc.TiledGrid3D","cc.GridBase",nullptr); - + tolua_beginmodule(tolua_S,"TiledGrid3D"); - tolua_function(tolua_S,"new",lua_cocos2dx_TiledGrid3D_constructor); - tolua_function(tolua_S,"create", lua_cocos2dx_TiledGrid3D_create); + tolua_function(tolua_S,"new",lua_cocos2dx_TiledGrid3D_constructor); + tolua_function(tolua_S,"create", lua_cocos2dx_TiledGrid3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3D).name(); g_luaType[typeName] = "cc.TiledGrid3D"; @@ -60542,28 +60542,28 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getProjectionMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60576,12 +60576,12 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getProjectionMatrix",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getProjectionMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) @@ -60589,28 +60589,28 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60623,12 +60623,12 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getViewProjectionMatrix",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) @@ -60636,28 +60636,28 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getViewMatrix'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60670,12 +60670,12 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getViewMatrix",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getViewMatrix'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) @@ -60683,28 +60683,28 @@ int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getCameraFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60717,12 +60717,12 @@ int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getCameraFlag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getCameraFlag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_getType(lua_State* tolua_S) @@ -60730,28 +60730,28 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -60764,12 +60764,12 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) @@ -60777,34 +60777,34 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_lookAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Vec3 arg0; cocos2d::Vec3 arg1; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:lookAt"); - + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Camera:lookAt"); if(!ok) { @@ -60816,12 +60816,12 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:lookAt",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_lookAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) @@ -60829,31 +60829,31 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setCameraFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::CameraFlag arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Camera:setCameraFlag"); if(!ok) { @@ -60865,29 +60865,29 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setCameraFlag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setCameraFlag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Camera_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -60902,7 +60902,7 @@ int lua_cocos2dx_Camera_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_create'.",&tolua_err); #endif return 0; @@ -60911,17 +60911,17 @@ int lua_cocos2dx_Camera_createPerspective(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -60944,7 +60944,7 @@ int lua_cocos2dx_Camera_createPerspective(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createPerspective",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_createPerspective'.",&tolua_err); #endif return 0; @@ -60953,17 +60953,17 @@ int lua_cocos2dx_Camera_createOrthographic(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { double arg0; @@ -60986,7 +60986,7 @@ int lua_cocos2dx_Camera_createOrthographic(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createOrthographic",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_createOrthographic'.",&tolua_err); #endif return 0; @@ -60995,17 +60995,17 @@ int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -61020,7 +61020,7 @@ int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getVisitingCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getVisitingCamera'.",&tolua_err); #endif return 0; @@ -61035,19 +61035,19 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Camera"); tolua_cclass(tolua_S,"Camera","cc.Camera","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"Camera"); - tolua_function(tolua_S,"getProjectionMatrix",lua_cocos2dx_Camera_getProjectionMatrix); - tolua_function(tolua_S,"getViewProjectionMatrix",lua_cocos2dx_Camera_getViewProjectionMatrix); - tolua_function(tolua_S,"getViewMatrix",lua_cocos2dx_Camera_getViewMatrix); - tolua_function(tolua_S,"getCameraFlag",lua_cocos2dx_Camera_getCameraFlag); - tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType); - tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt); - tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag); - tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); - tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective); - tolua_function(tolua_S,"createOrthographic", lua_cocos2dx_Camera_createOrthographic); - tolua_function(tolua_S,"getVisitingCamera", lua_cocos2dx_Camera_getVisitingCamera); + tolua_function(tolua_S,"getProjectionMatrix",lua_cocos2dx_Camera_getProjectionMatrix); + tolua_function(tolua_S,"getViewProjectionMatrix",lua_cocos2dx_Camera_getViewProjectionMatrix); + tolua_function(tolua_S,"getViewMatrix",lua_cocos2dx_Camera_getViewMatrix); + tolua_function(tolua_S,"getCameraFlag",lua_cocos2dx_Camera_getCameraFlag); + tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType); + tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt); + tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag); + tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); + tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective); + tolua_function(tolua_S,"createOrthographic", lua_cocos2dx_Camera_createOrthographic); + tolua_function(tolua_S,"getVisitingCamera", lua_cocos2dx_Camera_getVisitingCamera); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Camera).name(); g_luaType[typeName] = "cc.Camera"; @@ -61060,31 +61060,31 @@ int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.BaseLight:setEnabled"); if(!ok) { @@ -61096,12 +61096,12 @@ int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) @@ -61109,28 +61109,28 @@ int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getIntensity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61143,12 +61143,12 @@ int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getIntensity",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getIntensity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) @@ -61156,28 +61156,28 @@ int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_isEnabled'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61190,12 +61190,12 @@ int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) @@ -61203,28 +61203,28 @@ int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getLightType'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61237,12 +61237,12 @@ int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getLightType",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getLightType'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) @@ -61250,31 +61250,31 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setLightFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::LightFlag arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.BaseLight:setLightFlag"); if(!ok) { @@ -61286,12 +61286,12 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setLightFlag",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setLightFlag'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) @@ -61299,31 +61299,31 @@ int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setIntensity'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BaseLight:setIntensity"); if(!ok) { @@ -61335,12 +61335,12 @@ int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setIntensity",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setIntensity'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) @@ -61348,28 +61348,28 @@ int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getLightFlag'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61382,12 +61382,12 @@ int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getLightFlag",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getLightFlag'.",&tolua_err); #endif - + return 0; } static int lua_cocos2dx_BaseLight_finalize(lua_State* tolua_S) @@ -61400,15 +61400,15 @@ int lua_register_cocos2dx_BaseLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BaseLight"); tolua_cclass(tolua_S,"BaseLight","cc.BaseLight","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"BaseLight"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_BaseLight_setEnabled); - tolua_function(tolua_S,"getIntensity",lua_cocos2dx_BaseLight_getIntensity); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_BaseLight_isEnabled); - tolua_function(tolua_S,"getLightType",lua_cocos2dx_BaseLight_getLightType); - tolua_function(tolua_S,"setLightFlag",lua_cocos2dx_BaseLight_setLightFlag); - tolua_function(tolua_S,"setIntensity",lua_cocos2dx_BaseLight_setIntensity); - tolua_function(tolua_S,"getLightFlag",lua_cocos2dx_BaseLight_getLightFlag); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_BaseLight_setEnabled); + tolua_function(tolua_S,"getIntensity",lua_cocos2dx_BaseLight_getIntensity); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_BaseLight_isEnabled); + tolua_function(tolua_S,"getLightType",lua_cocos2dx_BaseLight_getLightType); + tolua_function(tolua_S,"setLightFlag",lua_cocos2dx_BaseLight_setLightFlag); + tolua_function(tolua_S,"setIntensity",lua_cocos2dx_BaseLight_setIntensity); + tolua_function(tolua_S,"getLightFlag",lua_cocos2dx_BaseLight_getLightFlag); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BaseLight).name(); g_luaType[typeName] = "cc.BaseLight"; @@ -61421,28 +61421,28 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_getDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61455,12 +61455,12 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:getDirection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_getDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) @@ -61468,28 +61468,28 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61502,12 +61502,12 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:getDirectionInWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) @@ -61515,31 +61515,31 @@ int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_setDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.DirectionLight:setDirection"); if(!ok) { @@ -61551,29 +61551,29 @@ int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:setDirection",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_setDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { cocos2d::Vec3 arg0; @@ -61592,7 +61592,7 @@ int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DirectionLight:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_create'.",&tolua_err); #endif return 0; @@ -61607,12 +61607,12 @@ int lua_register_cocos2dx_DirectionLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DirectionLight"); tolua_cclass(tolua_S,"DirectionLight","cc.DirectionLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"DirectionLight"); - tolua_function(tolua_S,"getDirection",lua_cocos2dx_DirectionLight_getDirection); - tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_DirectionLight_getDirectionInWorld); - tolua_function(tolua_S,"setDirection",lua_cocos2dx_DirectionLight_setDirection); - tolua_function(tolua_S,"create", lua_cocos2dx_DirectionLight_create); + tolua_function(tolua_S,"getDirection",lua_cocos2dx_DirectionLight_getDirection); + tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_DirectionLight_getDirectionInWorld); + tolua_function(tolua_S,"setDirection",lua_cocos2dx_DirectionLight_setDirection); + tolua_function(tolua_S,"create", lua_cocos2dx_DirectionLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DirectionLight).name(); g_luaType[typeName] = "cc.DirectionLight"; @@ -61625,28 +61625,28 @@ int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PointLight_getRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61659,12 +61659,12 @@ int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:getRange",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_getRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) @@ -61672,31 +61672,31 @@ int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PointLight_setRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PointLight:setRange"); if(!ok) { @@ -61708,29 +61708,29 @@ int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:setRange",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_setRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_PointLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { cocos2d::Vec3 arg0; @@ -61751,7 +61751,7 @@ int lua_cocos2dx_PointLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PointLight:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_create'.",&tolua_err); #endif return 0; @@ -61766,11 +61766,11 @@ int lua_register_cocos2dx_PointLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PointLight"); tolua_cclass(tolua_S,"PointLight","cc.PointLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"PointLight"); - tolua_function(tolua_S,"getRange",lua_cocos2dx_PointLight_getRange); - tolua_function(tolua_S,"setRange",lua_cocos2dx_PointLight_setRange); - tolua_function(tolua_S,"create", lua_cocos2dx_PointLight_create); + tolua_function(tolua_S,"getRange",lua_cocos2dx_PointLight_getRange); + tolua_function(tolua_S,"setRange",lua_cocos2dx_PointLight_setRange); + tolua_function(tolua_S,"create", lua_cocos2dx_PointLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PointLight).name(); g_luaType[typeName] = "cc.PointLight"; @@ -61783,28 +61783,28 @@ int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61817,12 +61817,12 @@ int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getRange",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) @@ -61830,31 +61830,31 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec3 arg0; - + ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.SpotLight:setDirection"); if(!ok) { @@ -61866,12 +61866,12 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setDirection",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) @@ -61879,28 +61879,28 @@ int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61913,12 +61913,12 @@ int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getCosInnerAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) @@ -61926,28 +61926,28 @@ int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getOuterAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -61960,12 +61960,12 @@ int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getOuterAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getOuterAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) @@ -61973,28 +61973,28 @@ int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getInnerAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62007,12 +62007,12 @@ int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getInnerAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getInnerAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) @@ -62020,28 +62020,28 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getDirection'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62054,12 +62054,12 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getDirection",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getDirection'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) @@ -62067,28 +62067,28 @@ int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62101,12 +62101,12 @@ int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getCosOuterAngle",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) @@ -62114,31 +62114,31 @@ int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setOuterAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setOuterAngle"); if(!ok) { @@ -62150,12 +62150,12 @@ int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setOuterAngle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setOuterAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) @@ -62163,31 +62163,31 @@ int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setInnerAngle'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setInnerAngle"); if(!ok) { @@ -62199,12 +62199,12 @@ int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setInnerAngle",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setInnerAngle'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) @@ -62212,28 +62212,28 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62246,12 +62246,12 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getDirectionInWorld",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) @@ -62259,31 +62259,31 @@ int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setRange'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setRange"); if(!ok) { @@ -62295,29 +62295,29 @@ int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setRange",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setRange'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 6) { cocos2d::Vec3 arg0; @@ -62344,7 +62344,7 @@ int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpotLight:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_create'.",&tolua_err); #endif return 0; @@ -62359,20 +62359,20 @@ int lua_register_cocos2dx_SpotLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpotLight"); tolua_cclass(tolua_S,"SpotLight","cc.SpotLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"SpotLight"); - tolua_function(tolua_S,"getRange",lua_cocos2dx_SpotLight_getRange); - tolua_function(tolua_S,"setDirection",lua_cocos2dx_SpotLight_setDirection); - tolua_function(tolua_S,"getCosInnerAngle",lua_cocos2dx_SpotLight_getCosInnerAngle); - tolua_function(tolua_S,"getOuterAngle",lua_cocos2dx_SpotLight_getOuterAngle); - tolua_function(tolua_S,"getInnerAngle",lua_cocos2dx_SpotLight_getInnerAngle); - tolua_function(tolua_S,"getDirection",lua_cocos2dx_SpotLight_getDirection); - tolua_function(tolua_S,"getCosOuterAngle",lua_cocos2dx_SpotLight_getCosOuterAngle); - tolua_function(tolua_S,"setOuterAngle",lua_cocos2dx_SpotLight_setOuterAngle); - tolua_function(tolua_S,"setInnerAngle",lua_cocos2dx_SpotLight_setInnerAngle); - tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_SpotLight_getDirectionInWorld); - tolua_function(tolua_S,"setRange",lua_cocos2dx_SpotLight_setRange); - tolua_function(tolua_S,"create", lua_cocos2dx_SpotLight_create); + tolua_function(tolua_S,"getRange",lua_cocos2dx_SpotLight_getRange); + tolua_function(tolua_S,"setDirection",lua_cocos2dx_SpotLight_setDirection); + tolua_function(tolua_S,"getCosInnerAngle",lua_cocos2dx_SpotLight_getCosInnerAngle); + tolua_function(tolua_S,"getOuterAngle",lua_cocos2dx_SpotLight_getOuterAngle); + tolua_function(tolua_S,"getInnerAngle",lua_cocos2dx_SpotLight_getInnerAngle); + tolua_function(tolua_S,"getDirection",lua_cocos2dx_SpotLight_getDirection); + tolua_function(tolua_S,"getCosOuterAngle",lua_cocos2dx_SpotLight_getCosOuterAngle); + tolua_function(tolua_S,"setOuterAngle",lua_cocos2dx_SpotLight_setOuterAngle); + tolua_function(tolua_S,"setInnerAngle",lua_cocos2dx_SpotLight_setInnerAngle); + tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_SpotLight_getDirectionInWorld); + tolua_function(tolua_S,"setRange",lua_cocos2dx_SpotLight_setRange); + tolua_function(tolua_S,"create", lua_cocos2dx_SpotLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpotLight).name(); g_luaType[typeName] = "cc.SpotLight"; @@ -62384,17 +62384,17 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AmbientLight",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { cocos2d::Color3B arg0; @@ -62411,7 +62411,7 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AmbientLight:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AmbientLight_create'.",&tolua_err); #endif return 0; @@ -62426,9 +62426,9 @@ int lua_register_cocos2dx_AmbientLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AmbientLight"); tolua_cclass(tolua_S,"AmbientLight","cc.AmbientLight","cc.BaseLight",nullptr); - + tolua_beginmodule(tolua_S,"AmbientLight"); - tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); + tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AmbientLight).name(); g_luaType[typeName] = "cc.AmbientLight"; @@ -62441,28 +62441,28 @@ int lua_cocos2dx_GLProgram_getFragmentShaderLog(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62475,12 +62475,12 @@ int lua_cocos2dx_GLProgram_getFragmentShaderLog(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getFragmentShaderLog",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) @@ -62488,34 +62488,34 @@ int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_initWithByteArrays'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { const char* arg0; const char* arg1; - + std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.GLProgram:initWithByteArrays"); arg0 = arg0_tmp.c_str(); - + std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.GLProgram:initWithByteArrays"); arg1 = arg1_tmp.c_str(); if(!ok) { @@ -62528,12 +62528,12 @@ int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:initWithByteArrays",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_initWithByteArrays'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) @@ -62541,34 +62541,34 @@ int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_initWithFilenames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::string arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:initWithFilenames"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgram:initWithFilenames"); if(!ok) { @@ -62581,12 +62581,12 @@ int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:initWithFilenames",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_initWithFilenames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) @@ -62594,28 +62594,28 @@ int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_use'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62627,12 +62627,12 @@ int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:use",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_use'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) @@ -62640,28 +62640,28 @@ int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62674,12 +62674,12 @@ int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getVertexShaderLog",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) @@ -62690,7 +62690,7 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif @@ -62707,7 +62707,7 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgram:setUniformsForBuiltins"); - + if (!ok) { break; } cobj->setUniformsForBuiltins(arg0); return 0; @@ -62723,12 +62723,12 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformsForBuiltins",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformsForBuiltins'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) @@ -62736,28 +62736,28 @@ int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_updateUniforms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62769,12 +62769,12 @@ int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:updateUniforms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_updateUniforms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) @@ -62782,34 +62782,34 @@ int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { int arg0; int arg1; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgram:setUniformLocationWith1i"); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgram:setUniformLocationWith1i"); if(!ok) { @@ -62821,12 +62821,12 @@ int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformLocationWith1i",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) @@ -62834,28 +62834,28 @@ int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_reset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -62867,12 +62867,12 @@ int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:reset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_reset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) @@ -62880,34 +62880,34 @@ int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_bindAttribLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; unsigned int arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:bindAttribLocation"); - + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgram:bindAttribLocation"); if(!ok) { @@ -62919,12 +62919,12 @@ int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:bindAttribLocation",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_bindAttribLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) @@ -62932,31 +62932,31 @@ int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getAttribLocation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:getAttribLocation"); if(!ok) { @@ -62969,12 +62969,12 @@ int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getAttribLocation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getAttribLocation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) @@ -62982,28 +62982,28 @@ int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_link'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63016,29 +63016,29 @@ int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:link",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_link'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgram_createWithByteArrays(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { const char* arg0; @@ -63057,7 +63057,7 @@ int lua_cocos2dx_GLProgram_createWithByteArrays(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgram:createWithByteArrays",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_createWithByteArrays'.",&tolua_err); #endif return 0; @@ -63066,17 +63066,17 @@ int lua_cocos2dx_GLProgram_createWithFilenames(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -63095,7 +63095,7 @@ int lua_cocos2dx_GLProgram_createWithFilenames(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgram:createWithFilenames",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_createWithFilenames'.",&tolua_err); #endif return 0; @@ -63105,15 +63105,15 @@ int lua_cocos2dx_GLProgram_constructor(lua_State* tolua_S) int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63129,11 +63129,11 @@ int lua_cocos2dx_GLProgram_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:GLProgram",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_constructor'.",&tolua_err); #endif - + return 0; } @@ -63147,23 +63147,23 @@ int lua_register_cocos2dx_GLProgram(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgram"); tolua_cclass(tolua_S,"GLProgram","cc.GLProgram","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLProgram"); - tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); - tolua_function(tolua_S,"getFragmentShaderLog",lua_cocos2dx_GLProgram_getFragmentShaderLog); - tolua_function(tolua_S,"initWithByteArrays",lua_cocos2dx_GLProgram_initWithByteArrays); - tolua_function(tolua_S,"initWithFilenames",lua_cocos2dx_GLProgram_initWithFilenames); - tolua_function(tolua_S,"use",lua_cocos2dx_GLProgram_use); - tolua_function(tolua_S,"getVertexShaderLog",lua_cocos2dx_GLProgram_getVertexShaderLog); - tolua_function(tolua_S,"setUniformsForBuiltins",lua_cocos2dx_GLProgram_setUniformsForBuiltins); - tolua_function(tolua_S,"updateUniforms",lua_cocos2dx_GLProgram_updateUniforms); - tolua_function(tolua_S,"setUniformLocationI32",lua_cocos2dx_GLProgram_setUniformLocationWith1i); - tolua_function(tolua_S,"reset",lua_cocos2dx_GLProgram_reset); - tolua_function(tolua_S,"bindAttribLocation",lua_cocos2dx_GLProgram_bindAttribLocation); - tolua_function(tolua_S,"getAttribLocation",lua_cocos2dx_GLProgram_getAttribLocation); - tolua_function(tolua_S,"link",lua_cocos2dx_GLProgram_link); - tolua_function(tolua_S,"createWithByteArrays", lua_cocos2dx_GLProgram_createWithByteArrays); - tolua_function(tolua_S,"createWithFilenames", lua_cocos2dx_GLProgram_createWithFilenames); + tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); + tolua_function(tolua_S,"getFragmentShaderLog",lua_cocos2dx_GLProgram_getFragmentShaderLog); + tolua_function(tolua_S,"initWithByteArrays",lua_cocos2dx_GLProgram_initWithByteArrays); + tolua_function(tolua_S,"initWithFilenames",lua_cocos2dx_GLProgram_initWithFilenames); + tolua_function(tolua_S,"use",lua_cocos2dx_GLProgram_use); + tolua_function(tolua_S,"getVertexShaderLog",lua_cocos2dx_GLProgram_getVertexShaderLog); + tolua_function(tolua_S,"setUniformsForBuiltins",lua_cocos2dx_GLProgram_setUniformsForBuiltins); + tolua_function(tolua_S,"updateUniforms",lua_cocos2dx_GLProgram_updateUniforms); + tolua_function(tolua_S,"setUniformLocationI32",lua_cocos2dx_GLProgram_setUniformLocationWith1i); + tolua_function(tolua_S,"reset",lua_cocos2dx_GLProgram_reset); + tolua_function(tolua_S,"bindAttribLocation",lua_cocos2dx_GLProgram_bindAttribLocation); + tolua_function(tolua_S,"getAttribLocation",lua_cocos2dx_GLProgram_getAttribLocation); + tolua_function(tolua_S,"link",lua_cocos2dx_GLProgram_link); + tolua_function(tolua_S,"createWithByteArrays", lua_cocos2dx_GLProgram_createWithByteArrays); + tolua_function(tolua_S,"createWithFilenames", lua_cocos2dx_GLProgram_createWithFilenames); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgram).name(); g_luaType[typeName] = "cc.GLProgram"; @@ -63176,34 +63176,34 @@ int lua_cocos2dx_GLProgramCache_addGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_addGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::GLProgram* arg0; std::string arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgram",&arg0); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgramCache:addGLProgram"); if(!ok) { @@ -63215,12 +63215,12 @@ int lua_cocos2dx_GLProgramCache_addGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:addGLProgram",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_addGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) @@ -63228,31 +63228,31 @@ int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_getGLProgram'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramCache:getGLProgram"); if(!ok) { @@ -63265,12 +63265,12 @@ int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:getGLProgram",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_getGLProgram'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) @@ -63278,28 +63278,28 @@ int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63311,12 +63311,12 @@ int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:reloadDefaultGLPrograms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) @@ -63324,28 +63324,28 @@ int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63357,29 +63357,29 @@ int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:loadDefaultGLPrograms",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_GLProgramCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -63393,7 +63393,7 @@ int lua_cocos2dx_GLProgramCache_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_destroyInstance'.",&tolua_err); #endif return 0; @@ -63402,17 +63402,17 @@ int lua_cocos2dx_GLProgramCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -63427,7 +63427,7 @@ int lua_cocos2dx_GLProgramCache_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_getInstance'.",&tolua_err); #endif return 0; @@ -63437,15 +63437,15 @@ int lua_cocos2dx_GLProgramCache_constructor(lua_State* tolua_S) int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63461,11 +63461,11 @@ int lua_cocos2dx_GLProgramCache_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:GLProgramCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_constructor'.",&tolua_err); #endif - + return 0; } @@ -63479,15 +63479,15 @@ int lua_register_cocos2dx_GLProgramCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramCache"); tolua_cclass(tolua_S,"GLProgramCache","cc.GLProgramCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"GLProgramCache"); - tolua_function(tolua_S,"new",lua_cocos2dx_GLProgramCache_constructor); - tolua_function(tolua_S,"addGLProgram",lua_cocos2dx_GLProgramCache_addGLProgram); - tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramCache_getGLProgram); - tolua_function(tolua_S,"reloadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms); - tolua_function(tolua_S,"loadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_GLProgramCache_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_GLProgramCache_getInstance); + tolua_function(tolua_S,"new",lua_cocos2dx_GLProgramCache_constructor); + tolua_function(tolua_S,"addGLProgram",lua_cocos2dx_GLProgramCache_addGLProgram); + tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramCache_getGLProgram); + tolua_function(tolua_S,"reloadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms); + tolua_function(tolua_S,"loadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_GLProgramCache_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_GLProgramCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgramCache).name(); g_luaType[typeName] = "cc.GLProgramCache"; @@ -63500,31 +63500,31 @@ int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_reloadTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:reloadTexture"); if(!ok) { @@ -63537,12 +63537,12 @@ int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:reloadTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_reloadTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) @@ -63550,28 +63550,28 @@ int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63583,12 +63583,12 @@ int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:unbindAllImageAsync",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) @@ -63596,31 +63596,31 @@ int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeTextureForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:removeTextureForKey"); if(!ok) { @@ -63632,12 +63632,12 @@ int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeTextureForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeTextureForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) @@ -63645,28 +63645,28 @@ int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeAllTextures'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63678,12 +63678,12 @@ int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeAllTextures",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeAllTextures'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) @@ -63691,28 +63691,28 @@ int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getDescription'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63725,12 +63725,12 @@ int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getDescription",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getDescription'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) @@ -63738,28 +63738,28 @@ int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63772,12 +63772,12 @@ int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getCachedTextureInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) @@ -63788,7 +63788,7 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif @@ -63805,11 +63805,11 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) if (argc == 2) { cocos2d::Image* arg0; ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TextureCache:addImage"); - + if (!ok) { break; } cocos2d::Texture2D* ret = cobj->addImage(arg0, arg1); object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); @@ -63821,7 +63821,7 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:addImage"); - + if (!ok) { break; } cocos2d::Texture2D* ret = cobj->addImage(arg0); object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); @@ -63831,12 +63831,12 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:addImage",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_addImage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) @@ -63844,31 +63844,31 @@ int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_unbindImageAsync'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:unbindImageAsync"); if(!ok) { @@ -63880,12 +63880,12 @@ int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:unbindImageAsync",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_unbindImageAsync'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) @@ -63893,31 +63893,31 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getTextureForKey'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:getTextureForKey"); if(!ok) { @@ -63930,12 +63930,12 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getTextureForKey",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getTextureForKey'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) @@ -63943,28 +63943,28 @@ int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -63976,12 +63976,12 @@ int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeUnusedTextures",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) @@ -63989,31 +63989,31 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -64025,12 +64025,12 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) @@ -64038,28 +64038,28 @@ int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_waitForQuit'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64071,12 +64071,12 @@ int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:waitForQuit",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_waitForQuit'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) @@ -64084,15 +64084,15 @@ int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64108,11 +64108,11 @@ int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:TextureCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_constructor'.",&tolua_err); #endif - + return 0; } @@ -64126,21 +64126,21 @@ int lua_register_cocos2dx_TextureCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TextureCache"); tolua_cclass(tolua_S,"TextureCache","cc.TextureCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TextureCache"); - tolua_function(tolua_S,"new",lua_cocos2dx_TextureCache_constructor); - tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_TextureCache_reloadTexture); - tolua_function(tolua_S,"unbindAllImageAsync",lua_cocos2dx_TextureCache_unbindAllImageAsync); - tolua_function(tolua_S,"removeTextureForKey",lua_cocos2dx_TextureCache_removeTextureForKey); - tolua_function(tolua_S,"removeAllTextures",lua_cocos2dx_TextureCache_removeAllTextures); - tolua_function(tolua_S,"getDescription",lua_cocos2dx_TextureCache_getDescription); - tolua_function(tolua_S,"getCachedTextureInfo",lua_cocos2dx_TextureCache_getCachedTextureInfo); - tolua_function(tolua_S,"addImage",lua_cocos2dx_TextureCache_addImage); - tolua_function(tolua_S,"unbindImageAsync",lua_cocos2dx_TextureCache_unbindImageAsync); - tolua_function(tolua_S,"getTextureForKey",lua_cocos2dx_TextureCache_getTextureForKey); - tolua_function(tolua_S,"removeUnusedTextures",lua_cocos2dx_TextureCache_removeUnusedTextures); - tolua_function(tolua_S,"removeTexture",lua_cocos2dx_TextureCache_removeTexture); - tolua_function(tolua_S,"waitForQuit",lua_cocos2dx_TextureCache_waitForQuit); + tolua_function(tolua_S,"new",lua_cocos2dx_TextureCache_constructor); + tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_TextureCache_reloadTexture); + tolua_function(tolua_S,"unbindAllImageAsync",lua_cocos2dx_TextureCache_unbindAllImageAsync); + tolua_function(tolua_S,"removeTextureForKey",lua_cocos2dx_TextureCache_removeTextureForKey); + tolua_function(tolua_S,"removeAllTextures",lua_cocos2dx_TextureCache_removeAllTextures); + tolua_function(tolua_S,"getDescription",lua_cocos2dx_TextureCache_getDescription); + tolua_function(tolua_S,"getCachedTextureInfo",lua_cocos2dx_TextureCache_getCachedTextureInfo); + tolua_function(tolua_S,"addImage",lua_cocos2dx_TextureCache_addImage); + tolua_function(tolua_S,"unbindImageAsync",lua_cocos2dx_TextureCache_unbindImageAsync); + tolua_function(tolua_S,"getTextureForKey",lua_cocos2dx_TextureCache_getTextureForKey); + tolua_function(tolua_S,"removeUnusedTextures",lua_cocos2dx_TextureCache_removeUnusedTextures); + tolua_function(tolua_S,"removeTexture",lua_cocos2dx_TextureCache_removeTexture); + tolua_function(tolua_S,"waitForQuit",lua_cocos2dx_TextureCache_waitForQuit); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TextureCache).name(); g_luaType[typeName] = "cc.TextureCache"; @@ -64152,17 +64152,17 @@ int lua_cocos2dx_Device_setAccelerometerEnabled(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -64178,7 +64178,7 @@ int lua_cocos2dx_Device_setAccelerometerEnabled(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setAccelerometerEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setAccelerometerEnabled'.",&tolua_err); #endif return 0; @@ -64187,17 +64187,17 @@ int lua_cocos2dx_Device_setKeepScreenOn(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { bool arg0; @@ -64213,7 +64213,7 @@ int lua_cocos2dx_Device_setKeepScreenOn(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setKeepScreenOn",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setKeepScreenOn'.",&tolua_err); #endif return 0; @@ -64222,17 +64222,17 @@ int lua_cocos2dx_Device_setAccelerometerInterval(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { double arg0; @@ -64248,7 +64248,7 @@ int lua_cocos2dx_Device_setAccelerometerInterval(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setAccelerometerInterval",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setAccelerometerInterval'.",&tolua_err); #endif return 0; @@ -64257,17 +64257,17 @@ int lua_cocos2dx_Device_getDPI(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -64282,7 +64282,7 @@ int lua_cocos2dx_Device_getDPI(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:getDPI",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_getDPI'.",&tolua_err); #endif return 0; @@ -64297,12 +64297,12 @@ int lua_register_cocos2dx_Device(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Device"); tolua_cclass(tolua_S,"Device","cc.Device","",nullptr); - + tolua_beginmodule(tolua_S,"Device"); - tolua_function(tolua_S,"setAccelerometerEnabled", lua_cocos2dx_Device_setAccelerometerEnabled); - tolua_function(tolua_S,"setKeepScreenOn", lua_cocos2dx_Device_setKeepScreenOn); - tolua_function(tolua_S,"setAccelerometerInterval", lua_cocos2dx_Device_setAccelerometerInterval); - tolua_function(tolua_S,"getDPI", lua_cocos2dx_Device_getDPI); + tolua_function(tolua_S,"setAccelerometerEnabled", lua_cocos2dx_Device_setAccelerometerEnabled); + tolua_function(tolua_S,"setKeepScreenOn", lua_cocos2dx_Device_setKeepScreenOn); + tolua_function(tolua_S,"setAccelerometerInterval", lua_cocos2dx_Device_setAccelerometerInterval); + tolua_function(tolua_S,"getDPI", lua_cocos2dx_Device_getDPI); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Device).name(); g_luaType[typeName] = "cc.Device"; @@ -64315,31 +64315,31 @@ int lua_cocos2dx_Application_openURL(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_openURL'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Application:openURL"); if(!ok) { @@ -64352,12 +64352,12 @@ int lua_cocos2dx_Application_openURL(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:openURL",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_openURL'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) @@ -64365,28 +64365,28 @@ int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getTargetPlatform'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64399,12 +64399,12 @@ int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getTargetPlatform",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getTargetPlatform'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) @@ -64412,28 +64412,28 @@ int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getCurrentLanguage'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64446,12 +64446,12 @@ int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getCurrentLanguage",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getCurrentLanguage'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) @@ -64459,28 +64459,28 @@ int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getCurrentLanguageCode'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64493,12 +64493,12 @@ int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getCurrentLanguageCode",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getCurrentLanguageCode'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) @@ -64506,31 +64506,31 @@ int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_setAnimationInterval'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Application:setAnimationInterval"); if(!ok) { @@ -64542,29 +64542,29 @@ int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:setAnimationInterval",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_setAnimationInterval'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Application_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -64579,7 +64579,7 @@ int lua_cocos2dx_Application_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Application:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getInstance'.",&tolua_err); #endif return 0; @@ -64594,14 +64594,14 @@ int lua_register_cocos2dx_Application(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Application"); tolua_cclass(tolua_S,"Application","cc.Application","",nullptr); - + tolua_beginmodule(tolua_S,"Application"); - tolua_function(tolua_S,"openURL",lua_cocos2dx_Application_openURL); - tolua_function(tolua_S,"getTargetPlatform",lua_cocos2dx_Application_getTargetPlatform); - tolua_function(tolua_S,"getCurrentLanguage",lua_cocos2dx_Application_getCurrentLanguage); - tolua_function(tolua_S,"getCurrentLanguageCode",lua_cocos2dx_Application_getCurrentLanguageCode); - tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Application_setAnimationInterval); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_Application_getInstance); + tolua_function(tolua_S,"openURL",lua_cocos2dx_Application_openURL); + tolua_function(tolua_S,"getTargetPlatform",lua_cocos2dx_Application_getTargetPlatform); + tolua_function(tolua_S,"getCurrentLanguage",lua_cocos2dx_Application_getCurrentLanguage); + tolua_function(tolua_S,"getCurrentLanguageCode",lua_cocos2dx_Application_getCurrentLanguageCode); + tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Application_setAnimationInterval); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_Application_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Application).name(); g_luaType[typeName] = "cc.Application"; @@ -64613,17 +64613,17 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -64659,7 +64659,7 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithRect",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_createWithRect'.",&tolua_err); #endif return 0; @@ -64668,17 +64668,17 @@ int lua_cocos2dx_GLViewImpl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -64695,7 +64695,7 @@ int lua_cocos2dx_GLViewImpl_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_create'.",&tolua_err); #endif return 0; @@ -64704,17 +64704,17 @@ int lua_cocos2dx_GLViewImpl_createWithFullScreen(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -64731,7 +64731,7 @@ int lua_cocos2dx_GLViewImpl_createWithFullScreen(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithFullScreen",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_createWithFullScreen'.",&tolua_err); #endif return 0; @@ -64746,11 +64746,11 @@ int lua_register_cocos2dx_GLViewImpl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLViewImpl"); tolua_cclass(tolua_S,"GLViewImpl","cc.GLViewImpl","cc.GLView",nullptr); - + tolua_beginmodule(tolua_S,"GLViewImpl"); - tolua_function(tolua_S,"createWithRect", lua_cocos2dx_GLViewImpl_createWithRect); - tolua_function(tolua_S,"create", lua_cocos2dx_GLViewImpl_create); - tolua_function(tolua_S,"createWithFullScreen", lua_cocos2dx_GLViewImpl_createWithFullScreen); + tolua_function(tolua_S,"createWithRect", lua_cocos2dx_GLViewImpl_createWithRect); + tolua_function(tolua_S,"create", lua_cocos2dx_GLViewImpl_create); + tolua_function(tolua_S,"createWithFullScreen", lua_cocos2dx_GLViewImpl_createWithFullScreen); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLViewImpl).name(); g_luaType[typeName] = "cc.GLViewImpl"; @@ -64763,31 +64763,31 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_getAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:getAnimation"); if(!ok) { @@ -64800,12 +64800,12 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:getAnimation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_getAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) @@ -64813,34 +64813,34 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::Animation* arg0; std::string arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimation"); if(!ok) { @@ -64852,12 +64852,12 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimation",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) @@ -64865,28 +64865,28 @@ int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_init'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -64899,12 +64899,12 @@ int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) @@ -64912,34 +64912,34 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationCache:addAnimationsWithDictionary"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimationsWithDictionary"); if(!ok) { @@ -64951,12 +64951,12 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimationsWithDictionary",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) @@ -64964,31 +64964,31 @@ int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_removeAnimation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:removeAnimation"); if(!ok) { @@ -65000,12 +65000,12 @@ int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:removeAnimation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_removeAnimation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) @@ -65013,31 +65013,31 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:addAnimationsWithFile"); if(!ok) { @@ -65049,29 +65049,29 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimationsWithFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_AnimationCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65085,7 +65085,7 @@ int lua_cocos2dx_AnimationCache_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_destroyInstance'.",&tolua_err); #endif return 0; @@ -65094,17 +65094,17 @@ int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65119,7 +65119,7 @@ int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_getInstance'.",&tolua_err); #endif return 0; @@ -65129,15 +65129,15 @@ int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65153,11 +65153,11 @@ int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:AnimationCache",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_constructor'.",&tolua_err); #endif - + return 0; } @@ -65171,17 +65171,17 @@ int lua_register_cocos2dx_AnimationCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationCache"); tolua_cclass(tolua_S,"AnimationCache","cc.AnimationCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"AnimationCache"); - tolua_function(tolua_S,"new",lua_cocos2dx_AnimationCache_constructor); - tolua_function(tolua_S,"getAnimation",lua_cocos2dx_AnimationCache_getAnimation); - tolua_function(tolua_S,"addAnimation",lua_cocos2dx_AnimationCache_addAnimation); - tolua_function(tolua_S,"init",lua_cocos2dx_AnimationCache_init); - tolua_function(tolua_S,"addAnimationsWithDictionary",lua_cocos2dx_AnimationCache_addAnimationsWithDictionary); - tolua_function(tolua_S,"removeAnimation",lua_cocos2dx_AnimationCache_removeAnimation); - tolua_function(tolua_S,"addAnimations",lua_cocos2dx_AnimationCache_addAnimationsWithFile); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AnimationCache_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_AnimationCache_getInstance); + tolua_function(tolua_S,"new",lua_cocos2dx_AnimationCache_constructor); + tolua_function(tolua_S,"getAnimation",lua_cocos2dx_AnimationCache_getAnimation); + tolua_function(tolua_S,"addAnimation",lua_cocos2dx_AnimationCache_addAnimation); + tolua_function(tolua_S,"init",lua_cocos2dx_AnimationCache_init); + tolua_function(tolua_S,"addAnimationsWithDictionary",lua_cocos2dx_AnimationCache_addAnimationsWithDictionary); + tolua_function(tolua_S,"removeAnimation",lua_cocos2dx_AnimationCache_removeAnimation); + tolua_function(tolua_S,"addAnimations",lua_cocos2dx_AnimationCache_addAnimationsWithFile); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AnimationCache_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_AnimationCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationCache).name(); g_luaType[typeName] = "cc.AnimationCache"; @@ -65194,34 +65194,34 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent(lua_State* tolu int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; cocos2d::Texture2D* arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFileContent"); - + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); if(!ok) { @@ -65233,12 +65233,12 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent(lua_State* tolu } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFramesWithFileContent",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) @@ -65249,7 +65249,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif @@ -65266,11 +65266,11 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); return 0; @@ -65281,7 +65281,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0); return 0; @@ -65292,11 +65292,11 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); - + if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1); - + if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); return 0; @@ -65305,12 +65305,12 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFramesWithFile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) @@ -65318,34 +65318,34 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { cocos2d::SpriteFrame* arg0; std::string arg1; - + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFrame"); if(!ok) { @@ -65357,12 +65357,12 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFrame",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) @@ -65370,28 +65370,28 @@ int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65403,12 +65403,12 @@ int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeUnusedSpriteFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) @@ -65416,31 +65416,31 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:getSpriteFrameByName"); if(!ok) { @@ -65453,12 +65453,12 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:getSpriteFrameByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) @@ -65466,31 +65466,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromFile"); if(!ok) { @@ -65502,12 +65502,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) @@ -65515,28 +65515,28 @@ int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_init'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65549,12 +65549,12 @@ int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) @@ -65562,28 +65562,28 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -65595,12 +65595,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFrames",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua_S) @@ -65608,31 +65608,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Texture2D* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); if(!ok) { @@ -65644,12 +65644,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromTexture",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* tolua_S) @@ -65657,31 +65657,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* t int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromFileContent"); if(!ok) { @@ -65693,12 +65693,12 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* t } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromFileContent",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) @@ -65706,31 +65706,31 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFrameByName"); if(!ok) { @@ -65742,29 +65742,29 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFrameByName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_SpriteFrameCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65778,7 +65778,7 @@ int lua_cocos2dx_SpriteFrameCache_destroyInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_destroyInstance'.",&tolua_err); #endif return 0; @@ -65787,17 +65787,17 @@ int lua_cocos2dx_SpriteFrameCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65812,7 +65812,7 @@ int lua_cocos2dx_SpriteFrameCache_getInstance(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_getInstance'.",&tolua_err); #endif return 0; @@ -65827,21 +65827,21 @@ int lua_register_cocos2dx_SpriteFrameCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrameCache"); tolua_cclass(tolua_S,"SpriteFrameCache","cc.SpriteFrameCache","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"SpriteFrameCache"); - tolua_function(tolua_S,"addSpriteFramesWithFileContent",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent); - tolua_function(tolua_S,"addSpriteFrames",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile); - tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_SpriteFrameCache_addSpriteFrame); - tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames); - tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName); - tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile); - tolua_function(tolua_S,"init",lua_cocos2dx_SpriteFrameCache_init); - tolua_function(tolua_S,"removeSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeSpriteFrames); - tolua_function(tolua_S,"removeSpriteFramesFromTexture",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture); - tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent); - tolua_function(tolua_S,"removeSpriteFrameByName",lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName); - tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_SpriteFrameCache_destroyInstance); - tolua_function(tolua_S,"getInstance", lua_cocos2dx_SpriteFrameCache_getInstance); + tolua_function(tolua_S,"addSpriteFramesWithFileContent",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent); + tolua_function(tolua_S,"addSpriteFrames",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile); + tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_SpriteFrameCache_addSpriteFrame); + tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames); + tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName); + tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile); + tolua_function(tolua_S,"init",lua_cocos2dx_SpriteFrameCache_init); + tolua_function(tolua_S,"removeSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeSpriteFrames); + tolua_function(tolua_S,"removeSpriteFramesFromTexture",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture); + tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent); + tolua_function(tolua_S,"removeSpriteFrameByName",lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_SpriteFrameCache_destroyInstance); + tolua_function(tolua_S,"getInstance", lua_cocos2dx_SpriteFrameCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteFrameCache).name(); g_luaType[typeName] = "cc.SpriteFrameCache"; @@ -65854,40 +65854,40 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_addChild'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 4) + if (argc == 4) { cocos2d::Node* arg0; int arg1; cocos2d::Vec2 arg2; cocos2d::Vec2 arg3; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParallaxNode:addChild"); - + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.ParallaxNode:addChild"); - + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.ParallaxNode:addChild"); if(!ok) { @@ -65899,12 +65899,12 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:addChild",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_addChild'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) @@ -65912,31 +65912,31 @@ int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParallaxNode:removeAllChildrenWithCleanup"); if(!ok) { @@ -65948,29 +65948,29 @@ int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:removeAllChildrenWithCleanup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -65985,7 +65985,7 @@ int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParallaxNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_create'.",&tolua_err); #endif return 0; @@ -66000,11 +66000,11 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParallaxNode"); tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"ParallaxNode"); - tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); - tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); + tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParallaxNode).name(); g_luaType[typeName] = "cc.ParallaxNode"; @@ -66017,31 +66017,31 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setPositionOffset"); if(!ok) { @@ -66053,12 +66053,12 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setPositionOffset",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) @@ -66066,31 +66066,31 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getProperty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:getProperty"); if(!ok) { @@ -66103,12 +66103,12 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getProperty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getProperty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) @@ -66116,28 +66116,28 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66150,12 +66150,12 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getPositionOffset",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) @@ -66163,31 +66163,31 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getObject'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:getObject"); if(!ok) { @@ -66200,12 +66200,12 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getObject",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getObject'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) @@ -66216,7 +66216,7 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif @@ -66247,12 +66247,12 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getObjects",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getObjects'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) @@ -66260,31 +66260,31 @@ int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:setGroupName"); if(!ok) { @@ -66296,12 +66296,12 @@ int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setGroupName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) @@ -66312,7 +66312,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif @@ -66343,12 +66343,12 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) @@ -66356,28 +66356,28 @@ int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66390,12 +66390,12 @@ int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getGroupName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) @@ -66403,31 +66403,31 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setProperties"); if(!ok) { @@ -66439,12 +66439,12 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) @@ -66452,31 +66452,31 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setObjects'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueVector arg0; - + ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setObjects"); if(!ok) { @@ -66488,12 +66488,12 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setObjects",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setObjects'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) @@ -66501,15 +66501,15 @@ int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66525,11 +66525,11 @@ int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:TMXObjectGroup",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_constructor'.",&tolua_err); #endif - + return 0; } @@ -66543,19 +66543,19 @@ int lua_register_cocos2dx_TMXObjectGroup(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXObjectGroup"); tolua_cclass(tolua_S,"TMXObjectGroup","cc.TMXObjectGroup","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TMXObjectGroup"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXObjectGroup_constructor); - tolua_function(tolua_S,"setPositionOffset",lua_cocos2dx_TMXObjectGroup_setPositionOffset); - tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXObjectGroup_getProperty); - tolua_function(tolua_S,"getPositionOffset",lua_cocos2dx_TMXObjectGroup_getPositionOffset); - tolua_function(tolua_S,"getObject",lua_cocos2dx_TMXObjectGroup_getObject); - tolua_function(tolua_S,"getObjects",lua_cocos2dx_TMXObjectGroup_getObjects); - tolua_function(tolua_S,"setGroupName",lua_cocos2dx_TMXObjectGroup_setGroupName); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXObjectGroup_getProperties); - tolua_function(tolua_S,"getGroupName",lua_cocos2dx_TMXObjectGroup_getGroupName); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXObjectGroup_setProperties); - tolua_function(tolua_S,"setObjects",lua_cocos2dx_TMXObjectGroup_setObjects); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXObjectGroup_constructor); + tolua_function(tolua_S,"setPositionOffset",lua_cocos2dx_TMXObjectGroup_setPositionOffset); + tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXObjectGroup_getProperty); + tolua_function(tolua_S,"getPositionOffset",lua_cocos2dx_TMXObjectGroup_getPositionOffset); + tolua_function(tolua_S,"getObject",lua_cocos2dx_TMXObjectGroup_getObject); + tolua_function(tolua_S,"getObjects",lua_cocos2dx_TMXObjectGroup_getObjects); + tolua_function(tolua_S,"setGroupName",lua_cocos2dx_TMXObjectGroup_setGroupName); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXObjectGroup_getProperties); + tolua_function(tolua_S,"getGroupName",lua_cocos2dx_TMXObjectGroup_getGroupName); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXObjectGroup_setProperties); + tolua_function(tolua_S,"setObjects",lua_cocos2dx_TMXObjectGroup_setObjects); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXObjectGroup).name(); g_luaType[typeName] = "cc.TMXObjectGroup"; @@ -66568,31 +66568,31 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayerInfo_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayerInfo:setProperties"); if(!ok) { @@ -66604,12 +66604,12 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) @@ -66617,28 +66617,28 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayerInfo_getProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66651,12 +66651,12 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) @@ -66664,15 +66664,15 @@ int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66688,11 +66688,11 @@ int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:TMXLayerInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_constructor'.",&tolua_err); #endif - + return 0; } @@ -66706,11 +66706,11 @@ int lua_register_cocos2dx_TMXLayerInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayerInfo"); tolua_cclass(tolua_S,"TMXLayerInfo","cc.TMXLayerInfo","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TMXLayerInfo"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayerInfo_constructor); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayerInfo_setProperties); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayerInfo_getProperties); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayerInfo_constructor); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayerInfo_setProperties); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayerInfo_getProperties); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXLayerInfo).name(); g_luaType[typeName] = "cc.TMXLayerInfo"; @@ -66723,31 +66723,31 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) int argc = 0; cocos2d::TMXTilesetInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTilesetInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTilesetInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { unsigned int arg0; - + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXTilesetInfo:getRectForGID"); if(!ok) { @@ -66760,12 +66760,12 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTilesetInfo:getRectForGID",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) @@ -66773,15 +66773,15 @@ int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXTilesetInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -66797,11 +66797,11 @@ int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTilesetInfo:TMXTilesetInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTilesetInfo_constructor'.",&tolua_err); #endif - + return 0; } @@ -66815,10 +66815,10 @@ int lua_register_cocos2dx_TMXTilesetInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTilesetInfo"); tolua_cclass(tolua_S,"TMXTilesetInfo","cc.TMXTilesetInfo","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"TMXTilesetInfo"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); - tolua_function(tolua_S,"getRectForGID",lua_cocos2dx_TMXTilesetInfo_getRectForGID); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); + tolua_function(tolua_S,"getRectForGID",lua_cocos2dx_TMXTilesetInfo_getRectForGID); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXTilesetInfo).name(); g_luaType[typeName] = "cc.TMXTilesetInfo"; @@ -66831,31 +66831,31 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setObjectGroups"); if(!ok) { @@ -66867,12 +66867,12 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setObjectGroups",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) @@ -66880,31 +66880,31 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileSize"); if(!ok) { @@ -66916,12 +66916,12 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) @@ -66929,31 +66929,31 @@ int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:initWithTMXFile"); if(!ok) { @@ -66966,12 +66966,12 @@ int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:initWithTMXFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) @@ -66979,28 +66979,28 @@ int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67013,12 +67013,12 @@ int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getOrientation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) @@ -67026,28 +67026,28 @@ int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67060,12 +67060,12 @@ int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:isStoringCharacters",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) @@ -67073,31 +67073,31 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setLayers'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setLayers"); if(!ok) { @@ -67109,12 +67109,12 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setLayers",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setLayers'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) @@ -67122,31 +67122,31 @@ int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:parseXMLFile"); if(!ok) { @@ -67159,12 +67159,12 @@ int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:parseXMLFile",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) @@ -67172,28 +67172,28 @@ int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getParentElement'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67206,12 +67206,12 @@ int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getParentElement",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getParentElement'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) @@ -67219,31 +67219,31 @@ int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:setTMXFileName"); if(!ok) { @@ -67255,12 +67255,12 @@ int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTMXFileName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) @@ -67268,31 +67268,31 @@ int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:parseXMLString"); if(!ok) { @@ -67305,12 +67305,12 @@ int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:parseXMLString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) @@ -67321,7 +67321,7 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -67352,12 +67352,12 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getLayers",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getLayers'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) @@ -67368,7 +67368,7 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -67399,12 +67399,12 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTilesets",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTilesets'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) @@ -67412,28 +67412,28 @@ int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getParentGID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67446,12 +67446,12 @@ int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getParentGID",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getParentGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) @@ -67459,31 +67459,31 @@ int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setParentElement'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setParentElement"); if(!ok) { @@ -67495,12 +67495,12 @@ int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setParentElement",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setParentElement'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) @@ -67508,34 +67508,34 @@ int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_initWithXML'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 2) + if (argc == 2) { std::string arg0; std::string arg1; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:initWithXML"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXMapInfo:initWithXML"); if(!ok) { @@ -67548,12 +67548,12 @@ int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:initWithXML",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_initWithXML'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) @@ -67561,31 +67561,31 @@ int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setParentGID'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setParentGID"); if(!ok) { @@ -67597,12 +67597,12 @@ int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setParentGID",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setParentGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) @@ -67610,28 +67610,28 @@ int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67644,12 +67644,12 @@ int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getLayerAttribs",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) @@ -67657,28 +67657,28 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67691,12 +67691,12 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTileSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) @@ -67704,28 +67704,28 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67738,12 +67738,12 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTileProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) @@ -67754,7 +67754,7 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -67785,12 +67785,12 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getObjectGroups",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) @@ -67798,28 +67798,28 @@ int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -67832,12 +67832,12 @@ int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTMXFileName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) @@ -67845,31 +67845,31 @@ int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:setCurrentString"); if(!ok) { @@ -67881,12 +67881,12 @@ int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setCurrentString",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) @@ -67894,31 +67894,31 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXMapInfo:setProperties"); if(!ok) { @@ -67930,12 +67930,12 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) @@ -67943,31 +67943,31 @@ int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setOrientation"); if(!ok) { @@ -67979,12 +67979,12 @@ int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setOrientation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) @@ -67992,31 +67992,31 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMapIntKey arg0; - + ok &= luaval_to_ccvaluemapintkey(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileProperties"); if(!ok) { @@ -68028,12 +68028,12 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTileProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) @@ -68041,31 +68041,31 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXMapInfo:setMapSize"); if(!ok) { @@ -68077,12 +68077,12 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setMapSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) @@ -68090,31 +68090,31 @@ int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.TMXMapInfo:setStoringCharacters"); if(!ok) { @@ -68126,12 +68126,12 @@ int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setStoringCharacters",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) @@ -68139,28 +68139,28 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68173,12 +68173,12 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getMapSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) @@ -68186,31 +68186,31 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTilesets'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTilesets"); if(!ok) { @@ -68222,12 +68222,12 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTilesets",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTilesets'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) @@ -68238,7 +68238,7 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif @@ -68269,12 +68269,12 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) @@ -68282,28 +68282,28 @@ int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68316,12 +68316,12 @@ int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getCurrentString",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) @@ -68329,31 +68329,31 @@ int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setLayerAttribs"); if(!ok) { @@ -68365,29 +68365,29 @@ int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setLayerAttribs",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXMapInfo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -68404,7 +68404,7 @@ int lua_cocos2dx_TMXMapInfo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_create'.",&tolua_err); #endif return 0; @@ -68413,17 +68413,17 @@ int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -68442,7 +68442,7 @@ int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_createWithXML'.",&tolua_err); #endif return 0; @@ -68452,15 +68452,15 @@ int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68476,11 +68476,11 @@ int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:TMXMapInfo",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_constructor'.",&tolua_err); #endif - + return 0; } @@ -68494,43 +68494,43 @@ int lua_register_cocos2dx_TMXMapInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXMapInfo"); tolua_cclass(tolua_S,"TMXMapInfo","cc.TMXMapInfo","",nullptr); - + tolua_beginmodule(tolua_S,"TMXMapInfo"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXMapInfo_constructor); - tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXMapInfo_setObjectGroups); - tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXMapInfo_setTileSize); - tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXMapInfo_initWithTMXFile); - tolua_function(tolua_S,"getOrientation",lua_cocos2dx_TMXMapInfo_getOrientation); - tolua_function(tolua_S,"isStoringCharacters",lua_cocos2dx_TMXMapInfo_isStoringCharacters); - tolua_function(tolua_S,"setLayers",lua_cocos2dx_TMXMapInfo_setLayers); - tolua_function(tolua_S,"parseXMLFile",lua_cocos2dx_TMXMapInfo_parseXMLFile); - tolua_function(tolua_S,"getParentElement",lua_cocos2dx_TMXMapInfo_getParentElement); - tolua_function(tolua_S,"setTMXFileName",lua_cocos2dx_TMXMapInfo_setTMXFileName); - tolua_function(tolua_S,"parseXMLString",lua_cocos2dx_TMXMapInfo_parseXMLString); - tolua_function(tolua_S,"getLayers",lua_cocos2dx_TMXMapInfo_getLayers); - tolua_function(tolua_S,"getTilesets",lua_cocos2dx_TMXMapInfo_getTilesets); - tolua_function(tolua_S,"getParentGID",lua_cocos2dx_TMXMapInfo_getParentGID); - tolua_function(tolua_S,"setParentElement",lua_cocos2dx_TMXMapInfo_setParentElement); - tolua_function(tolua_S,"initWithXML",lua_cocos2dx_TMXMapInfo_initWithXML); - tolua_function(tolua_S,"setParentGID",lua_cocos2dx_TMXMapInfo_setParentGID); - tolua_function(tolua_S,"getLayerAttribs",lua_cocos2dx_TMXMapInfo_getLayerAttribs); - tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXMapInfo_getTileSize); - tolua_function(tolua_S,"getTileProperties",lua_cocos2dx_TMXMapInfo_getTileProperties); - tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXMapInfo_getObjectGroups); - tolua_function(tolua_S,"getTMXFileName",lua_cocos2dx_TMXMapInfo_getTMXFileName); - tolua_function(tolua_S,"setCurrentString",lua_cocos2dx_TMXMapInfo_setCurrentString); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXMapInfo_setProperties); - tolua_function(tolua_S,"setOrientation",lua_cocos2dx_TMXMapInfo_setOrientation); - tolua_function(tolua_S,"setTileProperties",lua_cocos2dx_TMXMapInfo_setTileProperties); - tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXMapInfo_setMapSize); - tolua_function(tolua_S,"setStoringCharacters",lua_cocos2dx_TMXMapInfo_setStoringCharacters); - tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXMapInfo_getMapSize); - tolua_function(tolua_S,"setTilesets",lua_cocos2dx_TMXMapInfo_setTilesets); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXMapInfo_getProperties); - tolua_function(tolua_S,"getCurrentString",lua_cocos2dx_TMXMapInfo_getCurrentString); - tolua_function(tolua_S,"setLayerAttribs",lua_cocos2dx_TMXMapInfo_setLayerAttribs); - tolua_function(tolua_S,"create", lua_cocos2dx_TMXMapInfo_create); - tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXMapInfo_createWithXML); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXMapInfo_constructor); + tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXMapInfo_setObjectGroups); + tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXMapInfo_setTileSize); + tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXMapInfo_initWithTMXFile); + tolua_function(tolua_S,"getOrientation",lua_cocos2dx_TMXMapInfo_getOrientation); + tolua_function(tolua_S,"isStoringCharacters",lua_cocos2dx_TMXMapInfo_isStoringCharacters); + tolua_function(tolua_S,"setLayers",lua_cocos2dx_TMXMapInfo_setLayers); + tolua_function(tolua_S,"parseXMLFile",lua_cocos2dx_TMXMapInfo_parseXMLFile); + tolua_function(tolua_S,"getParentElement",lua_cocos2dx_TMXMapInfo_getParentElement); + tolua_function(tolua_S,"setTMXFileName",lua_cocos2dx_TMXMapInfo_setTMXFileName); + tolua_function(tolua_S,"parseXMLString",lua_cocos2dx_TMXMapInfo_parseXMLString); + tolua_function(tolua_S,"getLayers",lua_cocos2dx_TMXMapInfo_getLayers); + tolua_function(tolua_S,"getTilesets",lua_cocos2dx_TMXMapInfo_getTilesets); + tolua_function(tolua_S,"getParentGID",lua_cocos2dx_TMXMapInfo_getParentGID); + tolua_function(tolua_S,"setParentElement",lua_cocos2dx_TMXMapInfo_setParentElement); + tolua_function(tolua_S,"initWithXML",lua_cocos2dx_TMXMapInfo_initWithXML); + tolua_function(tolua_S,"setParentGID",lua_cocos2dx_TMXMapInfo_setParentGID); + tolua_function(tolua_S,"getLayerAttribs",lua_cocos2dx_TMXMapInfo_getLayerAttribs); + tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXMapInfo_getTileSize); + tolua_function(tolua_S,"getTileProperties",lua_cocos2dx_TMXMapInfo_getTileProperties); + tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXMapInfo_getObjectGroups); + tolua_function(tolua_S,"getTMXFileName",lua_cocos2dx_TMXMapInfo_getTMXFileName); + tolua_function(tolua_S,"setCurrentString",lua_cocos2dx_TMXMapInfo_setCurrentString); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXMapInfo_setProperties); + tolua_function(tolua_S,"setOrientation",lua_cocos2dx_TMXMapInfo_setOrientation); + tolua_function(tolua_S,"setTileProperties",lua_cocos2dx_TMXMapInfo_setTileProperties); + tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXMapInfo_setMapSize); + tolua_function(tolua_S,"setStoringCharacters",lua_cocos2dx_TMXMapInfo_setStoringCharacters); + tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXMapInfo_getMapSize); + tolua_function(tolua_S,"setTilesets",lua_cocos2dx_TMXMapInfo_setTilesets); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXMapInfo_getProperties); + tolua_function(tolua_S,"getCurrentString",lua_cocos2dx_TMXMapInfo_getCurrentString); + tolua_function(tolua_S,"setLayerAttribs",lua_cocos2dx_TMXMapInfo_setLayerAttribs); + tolua_function(tolua_S,"create", lua_cocos2dx_TMXMapInfo_create); + tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXMapInfo_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXMapInfo).name(); g_luaType[typeName] = "cc.TMXMapInfo"; @@ -68543,31 +68543,31 @@ int lua_cocos2dx_TMXLayer_getPositionAt(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getPositionAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getPositionAt"); if(!ok) { @@ -68580,12 +68580,12 @@ int lua_cocos2dx_TMXLayer_getPositionAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getPositionAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getPositionAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) @@ -68593,31 +68593,31 @@ int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXLayer:setLayerOrientation"); if(!ok) { @@ -68629,12 +68629,12 @@ int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerOrientation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) @@ -68642,28 +68642,28 @@ int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_releaseMap'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68675,12 +68675,12 @@ int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:releaseMap",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_releaseMap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) @@ -68688,28 +68688,28 @@ int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68722,12 +68722,12 @@ int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) @@ -68735,31 +68735,31 @@ int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setMapTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXLayer:setMapTileSize"); if(!ok) { @@ -68771,12 +68771,12 @@ int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setMapTileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setMapTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) @@ -68784,28 +68784,28 @@ int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -68818,12 +68818,12 @@ int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerOrientation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) @@ -68831,31 +68831,31 @@ int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayer:setProperties"); if(!ok) { @@ -68867,12 +68867,12 @@ int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) @@ -68880,31 +68880,31 @@ int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXLayer:setLayerName"); if(!ok) { @@ -68916,12 +68916,12 @@ int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) @@ -68929,31 +68929,31 @@ int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_removeTileAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:removeTileAt"); if(!ok) { @@ -68965,12 +68965,12 @@ int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:removeTileAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_removeTileAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) @@ -68978,37 +68978,37 @@ int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 3) + if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; cocos2d::TMXLayerInfo* arg1; cocos2d::TMXMapInfo* arg2; - + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0); - + ok &= luaval_to_object(tolua_S, 3, "cc.TMXLayerInfo",&arg1); - + ok &= luaval_to_object(tolua_S, 4, "cc.TMXMapInfo",&arg2); if(!ok) { @@ -69021,12 +69021,12 @@ int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:initWithTilesetInfo",argc, 3); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) @@ -69034,28 +69034,28 @@ int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setupTiles'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69067,12 +69067,12 @@ int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setupTiles",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setupTiles'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) @@ -69083,7 +69083,7 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif @@ -69100,15 +69100,15 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) if (argc == 3) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cocos2d::TMXTileFlags_ arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cobj->setTileGID(arg0, arg1, arg2); return 0; @@ -69119,11 +69119,11 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TMXLayer:setTileGID"); - + if (!ok) { break; } cobj->setTileGID(arg0, arg1); return 0; @@ -69132,12 +69132,12 @@ int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setTileGID",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTileGID'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) @@ -69145,28 +69145,28 @@ int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getMapTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69179,12 +69179,12 @@ int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getMapTileSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getMapTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) @@ -69192,31 +69192,31 @@ int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getProperty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXLayer:getProperty"); if(!ok) { @@ -69229,12 +69229,12 @@ int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getProperty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getProperty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) @@ -69242,31 +69242,31 @@ int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXLayer:setLayerSize"); if(!ok) { @@ -69278,12 +69278,12 @@ int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) @@ -69291,28 +69291,28 @@ int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerName'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69325,12 +69325,12 @@ int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) @@ -69338,31 +69338,31 @@ int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setTileSet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::TMXTilesetInfo* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0); if(!ok) { @@ -69374,12 +69374,12 @@ int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setTileSet",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTileSet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) @@ -69387,28 +69387,28 @@ int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileSet'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69421,12 +69421,12 @@ int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getTileSet",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileSet'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) @@ -69437,7 +69437,7 @@ int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif @@ -69468,12 +69468,12 @@ int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) @@ -69481,31 +69481,31 @@ int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileAt'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getTileAt"); if(!ok) { @@ -69518,29 +69518,29 @@ int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getTileAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXLayer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; @@ -69561,7 +69561,7 @@ int lua_cocos2dx_TMXLayer_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXLayer:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_create'.",&tolua_err); #endif return 0; @@ -69571,15 +69571,15 @@ int lua_cocos2dx_TMXLayer_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69595,11 +69595,11 @@ int lua_cocos2dx_TMXLayer_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:TMXLayer",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_constructor'.",&tolua_err); #endif - + return 0; } @@ -69613,30 +69613,30 @@ int lua_register_cocos2dx_TMXLayer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayer"); tolua_cclass(tolua_S,"TMXLayer","cc.TMXLayer","cc.SpriteBatchNode",nullptr); - + tolua_beginmodule(tolua_S,"TMXLayer"); - tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); - tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_TMXLayer_getPositionAt); - tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_TMXLayer_setLayerOrientation); - tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TMXLayer_releaseMap); - tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_TMXLayer_getLayerSize); - tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_TMXLayer_setMapTileSize); - tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_TMXLayer_getLayerOrientation); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayer_setProperties); - tolua_function(tolua_S,"setLayerName",lua_cocos2dx_TMXLayer_setLayerName); - tolua_function(tolua_S,"removeTileAt",lua_cocos2dx_TMXLayer_removeTileAt); - tolua_function(tolua_S,"initWithTilesetInfo",lua_cocos2dx_TMXLayer_initWithTilesetInfo); - tolua_function(tolua_S,"setupTiles",lua_cocos2dx_TMXLayer_setupTiles); - tolua_function(tolua_S,"setTileGID",lua_cocos2dx_TMXLayer_setTileGID); - tolua_function(tolua_S,"getMapTileSize",lua_cocos2dx_TMXLayer_getMapTileSize); - tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXLayer_getProperty); - tolua_function(tolua_S,"setLayerSize",lua_cocos2dx_TMXLayer_setLayerSize); - tolua_function(tolua_S,"getLayerName",lua_cocos2dx_TMXLayer_getLayerName); - tolua_function(tolua_S,"setTileSet",lua_cocos2dx_TMXLayer_setTileSet); - tolua_function(tolua_S,"getTileSet",lua_cocos2dx_TMXLayer_getTileSet); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayer_getProperties); - tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TMXLayer_getTileAt); - tolua_function(tolua_S,"create", lua_cocos2dx_TMXLayer_create); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); + tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_TMXLayer_getPositionAt); + tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_TMXLayer_setLayerOrientation); + tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TMXLayer_releaseMap); + tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_TMXLayer_getLayerSize); + tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_TMXLayer_setMapTileSize); + tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_TMXLayer_getLayerOrientation); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayer_setProperties); + tolua_function(tolua_S,"setLayerName",lua_cocos2dx_TMXLayer_setLayerName); + tolua_function(tolua_S,"removeTileAt",lua_cocos2dx_TMXLayer_removeTileAt); + tolua_function(tolua_S,"initWithTilesetInfo",lua_cocos2dx_TMXLayer_initWithTilesetInfo); + tolua_function(tolua_S,"setupTiles",lua_cocos2dx_TMXLayer_setupTiles); + tolua_function(tolua_S,"setTileGID",lua_cocos2dx_TMXLayer_setTileGID); + tolua_function(tolua_S,"getMapTileSize",lua_cocos2dx_TMXLayer_getMapTileSize); + tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXLayer_getProperty); + tolua_function(tolua_S,"setLayerSize",lua_cocos2dx_TMXLayer_setLayerSize); + tolua_function(tolua_S,"getLayerName",lua_cocos2dx_TMXLayer_getLayerName); + tolua_function(tolua_S,"setTileSet",lua_cocos2dx_TMXLayer_setTileSet); + tolua_function(tolua_S,"getTileSet",lua_cocos2dx_TMXLayer_getTileSet); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayer_getProperties); + tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TMXLayer_getTileAt); + tolua_function(tolua_S,"create", lua_cocos2dx_TMXLayer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXLayer).name(); g_luaType[typeName] = "cc.TMXLayer"; @@ -69649,31 +69649,31 @@ int lua_cocos2dx_TMXTiledMap_setObjectGroups(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Vector arg0; - + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXTiledMap:setObjectGroups"); if(!ok) { @@ -69685,12 +69685,12 @@ int lua_cocos2dx_TMXTiledMap_setObjectGroups(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setObjectGroups",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) @@ -69698,31 +69698,31 @@ int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getProperty'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getProperty"); if(!ok) { @@ -69735,12 +69735,12 @@ int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getProperty",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getProperty'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) @@ -69748,31 +69748,31 @@ int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXTiledMap:setMapSize"); if(!ok) { @@ -69784,12 +69784,12 @@ int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setMapSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) @@ -69797,31 +69797,31 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getObjectGroup"); if(!ok) { @@ -69834,12 +69834,12 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getObjectGroup",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) @@ -69850,7 +69850,7 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif @@ -69881,12 +69881,12 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getObjectGroups",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getObjectGroups'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) @@ -69894,28 +69894,28 @@ int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69928,12 +69928,12 @@ int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getTileSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) @@ -69941,28 +69941,28 @@ int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getMapSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -69975,12 +69975,12 @@ int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getMapSize",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getMapSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) @@ -69988,28 +69988,28 @@ int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -70022,12 +70022,12 @@ int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getProperties",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) @@ -70035,31 +70035,31 @@ int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setTileSize'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::Size arg0; - + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXTiledMap:setTileSize"); if(!ok) { @@ -70071,12 +70071,12 @@ int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setTileSize",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setTileSize'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) @@ -70084,31 +70084,31 @@ int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setProperties'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { cocos2d::ValueMap arg0; - + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXTiledMap:setProperties"); if(!ok) { @@ -70120,12 +70120,12 @@ int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setProperties",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setProperties'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) @@ -70133,31 +70133,31 @@ int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getLayer'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getLayer"); if(!ok) { @@ -70170,12 +70170,12 @@ int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getLayer",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getLayer'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) @@ -70183,28 +70183,28 @@ int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 0) { if(!ok) { @@ -70217,12 +70217,12 @@ int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getMapOrientation",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) @@ -70230,31 +70230,31 @@ int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'", nullptr); return 0; } #endif - + argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 1) { int arg0; - + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXTiledMap:setMapOrientation"); if(!ok) { @@ -70266,29 +70266,29 @@ int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setMapOrientation",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TMXTiledMap_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 1) { std::string arg0; @@ -70305,7 +70305,7 @@ int lua_cocos2dx_TMXTiledMap_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTiledMap:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_create'.",&tolua_err); #endif return 0; @@ -70314,17 +70314,17 @@ int lua_cocos2dx_TMXTiledMap_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 2) { std::string arg0; @@ -70343,7 +70343,7 @@ int lua_cocos2dx_TMXTiledMap_createWithXML(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTiledMap:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_createWithXML'.",&tolua_err); #endif return 0; @@ -70358,23 +70358,23 @@ int lua_register_cocos2dx_TMXTiledMap(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTiledMap"); tolua_cclass(tolua_S,"TMXTiledMap","cc.TMXTiledMap","cc.Node",nullptr); - + tolua_beginmodule(tolua_S,"TMXTiledMap"); - tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXTiledMap_setObjectGroups); - tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXTiledMap_getProperty); - tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXTiledMap_setMapSize); - tolua_function(tolua_S,"getObjectGroup",lua_cocos2dx_TMXTiledMap_getObjectGroup); - tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXTiledMap_getObjectGroups); - tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXTiledMap_getTileSize); - tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXTiledMap_getMapSize); - tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXTiledMap_getProperties); - tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXTiledMap_setTileSize); - tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXTiledMap_setProperties); - tolua_function(tolua_S,"getLayer",lua_cocos2dx_TMXTiledMap_getLayer); - tolua_function(tolua_S,"getMapOrientation",lua_cocos2dx_TMXTiledMap_getMapOrientation); - tolua_function(tolua_S,"setMapOrientation",lua_cocos2dx_TMXTiledMap_setMapOrientation); - tolua_function(tolua_S,"create", lua_cocos2dx_TMXTiledMap_create); - tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXTiledMap_createWithXML); + tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXTiledMap_setObjectGroups); + tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXTiledMap_getProperty); + tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXTiledMap_setMapSize); + tolua_function(tolua_S,"getObjectGroup",lua_cocos2dx_TMXTiledMap_getObjectGroup); + tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXTiledMap_getObjectGroups); + tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXTiledMap_getTileSize); + tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXTiledMap_getMapSize); + tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXTiledMap_getProperties); + tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXTiledMap_setTileSize); + tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXTiledMap_setProperties); + tolua_function(tolua_S,"getLayer",lua_cocos2dx_TMXTiledMap_getLayer); + tolua_function(tolua_S,"getMapOrientation",lua_cocos2dx_TMXTiledMap_getMapOrientation); + tolua_function(tolua_S,"setMapOrientation",lua_cocos2dx_TMXTiledMap_setMapOrientation); + tolua_function(tolua_S,"create", lua_cocos2dx_TMXTiledMap_create); + tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXTiledMap_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXTiledMap).name(); g_luaType[typeName] = "cc.TMXTiledMap"; @@ -70387,18 +70387,18 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70406,7 +70406,7 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 4) { @@ -70414,13 +70414,13 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) std::string arg1; int arg2; int arg3; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TileMapAtlas:initWithTileFile"); - + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TileMapAtlas:initWithTileFile"); - + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TileMapAtlas:initWithTileFile"); - + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.TileMapAtlas:initWithTileFile"); if(!ok) { @@ -70433,12 +70433,12 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:initWithTileFile",argc, 4); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_initWithTileFile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) @@ -70446,18 +70446,18 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70465,7 +70465,7 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70479,12 +70479,12 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:releaseMap",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_releaseMap'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) @@ -70492,18 +70492,18 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70511,12 +70511,12 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; - + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TileMapAtlas:getTileAt"); if(!ok) { @@ -70529,12 +70529,12 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:getTileAt",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_getTileAt'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) @@ -70542,18 +70542,18 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70561,15 +70561,15 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Color3B arg0; cocos2d::Vec2 arg1; - + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.TileMapAtlas:setTile"); - + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TileMapAtlas:setTile"); if(!ok) { @@ -70581,29 +70581,29 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:setTile",argc, 2); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_setTile'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 4) { std::string arg0; @@ -70626,7 +70626,7 @@ int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TileMapAtlas:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_create'.",&tolua_err); #endif return 0; @@ -70636,13 +70636,13 @@ int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - - + + + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70660,11 +70660,11 @@ int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:TileMapAtlas",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_constructor'.",&tolua_err); #endif - + return 0; } @@ -70678,14 +70678,14 @@ int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TileMapAtlas"); tolua_cclass(tolua_S,"TileMapAtlas","cc.TileMapAtlas","cc.AtlasNode",nullptr); - + tolua_beginmodule(tolua_S,"TileMapAtlas"); - tolua_function(tolua_S,"new",lua_cocos2dx_TileMapAtlas_constructor); - tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_TileMapAtlas_initWithTileFile); - tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap); - tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt); - tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); - tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); + tolua_function(tolua_S,"new",lua_cocos2dx_TileMapAtlas_constructor); + tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_TileMapAtlas_initWithTileFile); + tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap); + tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt); + tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); + tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TileMapAtlas).name(); g_luaType[typeName] = "cc.TileMapAtlas"; @@ -70698,18 +70698,18 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70717,12 +70717,12 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; - + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Component:setEnabled"); if(!ok) { @@ -70734,12 +70734,12 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setEnabled",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_setName(lua_State* tolua_S) @@ -70747,18 +70747,18 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70766,12 +70766,12 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; - + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Component:setName"); if(!ok) { @@ -70783,12 +70783,12 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setName",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) @@ -70796,18 +70796,18 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70815,7 +70815,7 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70830,12 +70830,12 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:isEnabled",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_isEnabled'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_update(lua_State* tolua_S) @@ -70843,18 +70843,18 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70862,12 +70862,12 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; - + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Component:update"); if(!ok) { @@ -70879,12 +70879,12 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:update",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_update'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) @@ -70892,18 +70892,18 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70911,7 +70911,7 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70926,12 +70926,12 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getOwner",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_getOwner'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_init(lua_State* tolua_S) @@ -70939,18 +70939,18 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -70958,7 +70958,7 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -70973,12 +70973,12 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:init",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_init'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) @@ -70986,18 +70986,18 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71005,12 +71005,12 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; - + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); if(!ok) { @@ -71022,12 +71022,12 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setOwner",argc, 1); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setOwner'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_getName(lua_State* tolua_S) @@ -71035,18 +71035,18 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - - + + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); - + #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71054,7 +71054,7 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) return 0; } #endif - + argc = lua_gettop(tolua_S)-1; if (argc == 0) { @@ -71069,29 +71069,29 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getName",argc, 0); return 0; - + #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_getName'.",&tolua_err); #endif - + return 0; } int lua_cocos2dx_Component_create(lua_State* tolua_S) { int argc = 0; bool ok = true; - + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif - + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - + argc = lua_gettop(tolua_S) - 1; - + if (argc == 0) { if(!ok) @@ -71106,7 +71106,7 @@ int lua_cocos2dx_Component_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Component:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 -tolua_lerror: + tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_create'.",&tolua_err); #endif return 0; @@ -71121,17 +71121,17 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Component"); tolua_cclass(tolua_S,"Component","cc.Component","cc.Ref",nullptr); - + tolua_beginmodule(tolua_S,"Component"); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Component_setEnabled); - tolua_function(tolua_S,"setName",lua_cocos2dx_Component_setName); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Component_isEnabled); - tolua_function(tolua_S,"update",lua_cocos2dx_Component_update); - tolua_function(tolua_S,"getOwner",lua_cocos2dx_Component_getOwner); - tolua_function(tolua_S,"init",lua_cocos2dx_Component_init); - tolua_function(tolua_S,"setOwner",lua_cocos2dx_Component_setOwner); - tolua_function(tolua_S,"getName",lua_cocos2dx_Component_getName); - tolua_function(tolua_S,"create", lua_cocos2dx_Component_create); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Component_setEnabled); + tolua_function(tolua_S,"setName",lua_cocos2dx_Component_setName); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Component_isEnabled); + tolua_function(tolua_S,"update",lua_cocos2dx_Component_update); + tolua_function(tolua_S,"getOwner",lua_cocos2dx_Component_getOwner); + tolua_function(tolua_S,"init",lua_cocos2dx_Component_init); + tolua_function(tolua_S,"setOwner",lua_cocos2dx_Component_setOwner); + tolua_function(tolua_S,"getName",lua_cocos2dx_Component_getName); + tolua_function(tolua_S,"create", lua_cocos2dx_Component_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Component).name(); g_luaType[typeName] = "cc.Component"; @@ -71140,261 +71140,262 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S) } TOLUA_API int register_all_cocos2dx(lua_State* tolua_S) { - tolua_open(tolua_S); - - tolua_module(tolua_S,"cc",0); - tolua_beginmodule(tolua_S,"cc"); - - lua_register_cocos2dx_Ref(tolua_S); - lua_register_cocos2dx_Console(tolua_S); - lua_register_cocos2dx_Node(tolua_S); - lua_register_cocos2dx_Scene(tolua_S); - lua_register_cocos2dx_TransitionScene(tolua_S); - lua_register_cocos2dx_TransitionEaseScene(tolua_S); - lua_register_cocos2dx_TransitionMoveInL(tolua_S); - lua_register_cocos2dx_TransitionMoveInB(tolua_S); - lua_register_cocos2dx_AtlasNode(tolua_S); - lua_register_cocos2dx_TileMapAtlas(tolua_S); - lua_register_cocos2dx_TransitionMoveInT(tolua_S); - lua_register_cocos2dx_TMXTilesetInfo(tolua_S); - lua_register_cocos2dx_TransitionMoveInR(tolua_S); - lua_register_cocos2dx_Action(tolua_S); - lua_register_cocos2dx_FiniteTimeAction(tolua_S); - lua_register_cocos2dx_ActionInstant(tolua_S); - lua_register_cocos2dx_Hide(tolua_S); - lua_register_cocos2dx_ParticleSystem(tolua_S); - lua_register_cocos2dx_ParticleSystemQuad(tolua_S); - lua_register_cocos2dx_ParticleSpiral(tolua_S); - lua_register_cocos2dx_GridBase(tolua_S); - lua_register_cocos2dx_AnimationCache(tolua_S); - lua_register_cocos2dx_ActionInterval(tolua_S); - lua_register_cocos2dx_ActionCamera(tolua_S); - lua_register_cocos2dx_ProgressFromTo(tolua_S); - lua_register_cocos2dx_MoveBy(tolua_S); - lua_register_cocos2dx_MoveTo(tolua_S); - lua_register_cocos2dx_JumpBy(tolua_S); - lua_register_cocos2dx_EventListener(tolua_S); - lua_register_cocos2dx_EventListenerKeyboard(tolua_S); - lua_register_cocos2dx_EventListenerMouse(tolua_S); - lua_register_cocos2dx_TransitionRotoZoom(tolua_S); - lua_register_cocos2dx_Director(tolua_S); - lua_register_cocos2dx_Scheduler(tolua_S); - lua_register_cocos2dx_ActionEase(tolua_S); - lua_register_cocos2dx_EaseElastic(tolua_S); - lua_register_cocos2dx_EaseElasticOut(tolua_S); - lua_register_cocos2dx_EaseQuadraticActionInOut(tolua_S); - lua_register_cocos2dx_EaseBackOut(tolua_S); - lua_register_cocos2dx_Texture2D(tolua_S); - lua_register_cocos2dx_TransitionSceneOriented(tolua_S); - lua_register_cocos2dx_TransitionFlipX(tolua_S); - lua_register_cocos2dx_GridAction(tolua_S); - lua_register_cocos2dx_TiledGrid3DAction(tolua_S); - lua_register_cocos2dx_FadeOutTRTiles(tolua_S); - lua_register_cocos2dx_FadeOutUpTiles(tolua_S); - lua_register_cocos2dx_FadeOutDownTiles(tolua_S); - lua_register_cocos2dx_StopGrid(tolua_S); - lua_register_cocos2dx_ParticleBatchNode(tolua_S); - lua_register_cocos2dx_SkewTo(tolua_S); - lua_register_cocos2dx_SkewBy(tolua_S); - lua_register_cocos2dx_EaseQuadraticActionOut(tolua_S); - lua_register_cocos2dx_TransitionProgress(tolua_S); - lua_register_cocos2dx_TransitionProgressVertical(tolua_S); - lua_register_cocos2dx_Layer(tolua_S); - lua_register_cocos2dx_TMXTiledMap(tolua_S); - lua_register_cocos2dx_Grid3DAction(tolua_S); - lua_register_cocos2dx_BaseLight(tolua_S); - lua_register_cocos2dx_SpotLight(tolua_S); - lua_register_cocos2dx_FadeTo(tolua_S); - lua_register_cocos2dx_FadeIn(tolua_S); - lua_register_cocos2dx_DirectionLight(tolua_S); - lua_register_cocos2dx_GLProgramState(tolua_S); - lua_register_cocos2dx_EventListenerCustom(tolua_S); - lua_register_cocos2dx_FlipX3D(tolua_S); - lua_register_cocos2dx_FlipY3D(tolua_S); - lua_register_cocos2dx_EaseSineInOut(tolua_S); - lua_register_cocos2dx_TransitionFlipAngular(tolua_S); - lua_register_cocos2dx_EaseElasticInOut(tolua_S); - lua_register_cocos2dx_EaseBounce(tolua_S); - lua_register_cocos2dx_Show(tolua_S); - lua_register_cocos2dx_FadeOut(tolua_S); - lua_register_cocos2dx_CallFunc(tolua_S); - lua_register_cocos2dx_Event(tolua_S); - lua_register_cocos2dx_EventMouse(tolua_S); - lua_register_cocos2dx_GLView(tolua_S); - lua_register_cocos2dx_EaseBezierAction(tolua_S); - lua_register_cocos2dx_ParticleFireworks(tolua_S); - lua_register_cocos2dx_MenuItem(tolua_S); - lua_register_cocos2dx_MenuItemSprite(tolua_S); - lua_register_cocos2dx_MenuItemImage(tolua_S); - lua_register_cocos2dx_ParticleFire(tolua_S); - lua_register_cocos2dx_TransitionZoomFlipAngular(tolua_S); - lua_register_cocos2dx_EaseRateAction(tolua_S); - lua_register_cocos2dx_EaseIn(tolua_S); - lua_register_cocos2dx_EaseExponentialInOut(tolua_S); - lua_register_cocos2dx_EaseBackInOut(tolua_S); - lua_register_cocos2dx_Waves3D(tolua_S); - lua_register_cocos2dx_EaseExponentialOut(tolua_S); - lua_register_cocos2dx_SpriteBatchNode(tolua_S); - lua_register_cocos2dx_Label(tolua_S); - lua_register_cocos2dx_Application(tolua_S); - lua_register_cocos2dx_DelayTime(tolua_S); - lua_register_cocos2dx_LabelAtlas(tolua_S); - lua_register_cocos2dx_ParticleSnow(tolua_S); - lua_register_cocos2dx_EaseElasticIn(tolua_S); - lua_register_cocos2dx_EaseCircleActionInOut(tolua_S); - lua_register_cocos2dx_EaseQuarticActionOut(tolua_S); - lua_register_cocos2dx_EventAcceleration(tolua_S); - lua_register_cocos2dx_EaseCubicActionIn(tolua_S); - lua_register_cocos2dx_TextureCache(tolua_S); - lua_register_cocos2dx_ActionTween(tolua_S); - lua_register_cocos2dx_TransitionFadeTR(tolua_S); - lua_register_cocos2dx_TransitionFadeDown(tolua_S); - lua_register_cocos2dx_ParticleSun(tolua_S); - lua_register_cocos2dx_TransitionProgressHorizontal(tolua_S); - lua_register_cocos2dx_TMXObjectGroup(tolua_S); - lua_register_cocos2dx_TMXLayer(tolua_S); - lua_register_cocos2dx_FlipX(tolua_S); - lua_register_cocos2dx_FlipY(tolua_S); - lua_register_cocos2dx_EventKeyboard(tolua_S); - lua_register_cocos2dx_TransitionSplitCols(tolua_S); - lua_register_cocos2dx_Timer(tolua_S); - lua_register_cocos2dx_RepeatForever(tolua_S); - lua_register_cocos2dx_Place(tolua_S); - lua_register_cocos2dx_EventListenerAcceleration(tolua_S); - lua_register_cocos2dx_TiledGrid3D(tolua_S); - lua_register_cocos2dx_EaseBounceOut(tolua_S); - lua_register_cocos2dx_RenderTexture(tolua_S); - lua_register_cocos2dx_TintBy(tolua_S); - lua_register_cocos2dx_TransitionShrinkGrow(tolua_S); - lua_register_cocos2dx_ClippingNode(tolua_S); - lua_register_cocos2dx_ParticleFlower(tolua_S); - lua_register_cocos2dx_EaseCircleActionIn(tolua_S); - lua_register_cocos2dx_ParticleSmoke(tolua_S); - lua_register_cocos2dx_Image(tolua_S); - lua_register_cocos2dx_LayerMultiplex(tolua_S); - lua_register_cocos2dx_Blink(tolua_S); - lua_register_cocos2dx_JumpTo(tolua_S); - lua_register_cocos2dx_ParticleExplosion(tolua_S); - lua_register_cocos2dx_TransitionJumpZoom(tolua_S); - lua_register_cocos2dx_Touch(tolua_S); - lua_register_cocos2dx_AnimationFrame(tolua_S); - lua_register_cocos2dx_NodeGrid(tolua_S); - lua_register_cocos2dx_TMXLayerInfo(tolua_S); - lua_register_cocos2dx_EaseSineIn(tolua_S); - lua_register_cocos2dx_EaseBounceIn(tolua_S); - lua_register_cocos2dx_Camera(tolua_S); - lua_register_cocos2dx_GLProgram(tolua_S); - lua_register_cocos2dx_ParticleGalaxy(tolua_S); - lua_register_cocos2dx_Twirl(tolua_S); - lua_register_cocos2dx_MenuItemLabel(tolua_S); - lua_register_cocos2dx_EaseQuinticActionIn(tolua_S); - lua_register_cocos2dx_LayerColor(tolua_S); - lua_register_cocos2dx_FadeOutBLTiles(tolua_S); - lua_register_cocos2dx_LayerGradient(tolua_S); - lua_register_cocos2dx_EventListenerTouchAllAtOnce(tolua_S); - lua_register_cocos2dx_GLViewImpl(tolua_S); - lua_register_cocos2dx_ToggleVisibility(tolua_S); - lua_register_cocos2dx_Repeat(tolua_S); - lua_register_cocos2dx_CardinalSplineTo(tolua_S); - lua_register_cocos2dx_CardinalSplineBy(tolua_S); - lua_register_cocos2dx_TransitionFlipY(tolua_S); - lua_register_cocos2dx_TurnOffTiles(tolua_S); - lua_register_cocos2dx_TintTo(tolua_S); - lua_register_cocos2dx_CatmullRomTo(tolua_S); - lua_register_cocos2dx_TransitionFadeBL(tolua_S); - lua_register_cocos2dx_TargetedAction(tolua_S); - lua_register_cocos2dx_DrawNode(tolua_S); - lua_register_cocos2dx_TransitionTurnOffTiles(tolua_S); - lua_register_cocos2dx_RotateTo(tolua_S); - lua_register_cocos2dx_TransitionSplitRows(tolua_S); - lua_register_cocos2dx_Device(tolua_S); - lua_register_cocos2dx_TransitionProgressRadialCCW(tolua_S); - lua_register_cocos2dx_EventListenerFocus(tolua_S); - lua_register_cocos2dx_TransitionPageTurn(tolua_S); - lua_register_cocos2dx_BezierBy(tolua_S); - lua_register_cocos2dx_BezierTo(tolua_S); - lua_register_cocos2dx_Menu(tolua_S); - lua_register_cocos2dx_SpriteFrame(tolua_S); - lua_register_cocos2dx_ActionManager(tolua_S); - lua_register_cocos2dx_UserDefault(tolua_S); - lua_register_cocos2dx_TransitionZoomFlipX(tolua_S); - lua_register_cocos2dx_EventFocus(tolua_S); - lua_register_cocos2dx_EaseQuinticActionInOut(tolua_S); - lua_register_cocos2dx_SpriteFrameCache(tolua_S); - lua_register_cocos2dx_PointLight(tolua_S); - lua_register_cocos2dx_TransitionCrossFade(tolua_S); - lua_register_cocos2dx_Ripple3D(tolua_S); - lua_register_cocos2dx_Lens3D(tolua_S); - lua_register_cocos2dx_ScaleTo(tolua_S); - lua_register_cocos2dx_Spawn(tolua_S); - lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S); - lua_register_cocos2dx_ShakyTiles3D(tolua_S); - lua_register_cocos2dx_PageTurn3D(tolua_S); - lua_register_cocos2dx_TransitionSlideInL(tolua_S); - lua_register_cocos2dx_TransitionSlideInT(tolua_S); - lua_register_cocos2dx_Grid3D(tolua_S); - lua_register_cocos2dx_EaseCircleActionOut(tolua_S); - lua_register_cocos2dx_TransitionProgressInOut(tolua_S); - lua_register_cocos2dx_EaseCubicActionInOut(tolua_S); - lua_register_cocos2dx_EaseBackIn(tolua_S); - lua_register_cocos2dx_SplitRows(tolua_S); - lua_register_cocos2dx_Follow(tolua_S); - lua_register_cocos2dx_Animate(tolua_S); - lua_register_cocos2dx_ShuffleTiles(tolua_S); - lua_register_cocos2dx_ProgressTimer(tolua_S); - lua_register_cocos2dx_ParticleMeteor(tolua_S); - lua_register_cocos2dx_EaseQuarticActionIn(tolua_S); - lua_register_cocos2dx_EaseInOut(tolua_S); - lua_register_cocos2dx_TransitionZoomFlipY(tolua_S); - lua_register_cocos2dx_ScaleBy(tolua_S); - lua_register_cocos2dx_EventTouch(tolua_S); - lua_register_cocos2dx_Animation(tolua_S); - lua_register_cocos2dx_TMXMapInfo(tolua_S); - lua_register_cocos2dx_EaseExponentialIn(tolua_S); - lua_register_cocos2dx_ReuseGrid(tolua_S); - lua_register_cocos2dx_EaseQuinticActionOut(tolua_S); - lua_register_cocos2dx_EventDispatcher(tolua_S); - lua_register_cocos2dx_MenuItemAtlasFont(tolua_S); - lua_register_cocos2dx_Liquid(tolua_S); - lua_register_cocos2dx_OrbitCamera(tolua_S); - lua_register_cocos2dx_ParallaxNode(tolua_S); - lua_register_cocos2dx_ClippingRectangleNode(tolua_S); - lua_register_cocos2dx_EventCustom(tolua_S); - lua_register_cocos2dx_TransitionFade(tolua_S); - lua_register_cocos2dx_Component(tolua_S); - lua_register_cocos2dx_EaseCubicActionOut(tolua_S); - lua_register_cocos2dx_EventListenerTouchOneByOne(tolua_S); - lua_register_cocos2dx_ParticleRain(tolua_S); - lua_register_cocos2dx_Waves(tolua_S); - lua_register_cocos2dx_EaseOut(tolua_S); - lua_register_cocos2dx_MenuItemFont(tolua_S); - lua_register_cocos2dx_TransitionFadeUp(tolua_S); - lua_register_cocos2dx_EaseSineOut(tolua_S); - lua_register_cocos2dx_JumpTiles3D(tolua_S); - lua_register_cocos2dx_MenuItemToggle(tolua_S); - lua_register_cocos2dx_RemoveSelf(tolua_S); - lua_register_cocos2dx_SplitCols(tolua_S); - lua_register_cocos2dx_ProtectedNode(tolua_S); - lua_register_cocos2dx_MotionStreak(tolua_S); - lua_register_cocos2dx_RotateBy(tolua_S); - lua_register_cocos2dx_FileUtils(tolua_S); - lua_register_cocos2dx_Sprite(tolua_S); - lua_register_cocos2dx_ProgressTo(tolua_S); - lua_register_cocos2dx_TransitionProgressOutIn(tolua_S); - lua_register_cocos2dx_CatmullRomBy(tolua_S); - lua_register_cocos2dx_Sequence(tolua_S); - lua_register_cocos2dx_Shaky3D(tolua_S); - lua_register_cocos2dx_TransitionProgressRadialCW(tolua_S); - lua_register_cocos2dx_EaseBounceInOut(tolua_S); - lua_register_cocos2dx_TransitionSlideInR(tolua_S); - lua_register_cocos2dx_AmbientLight(tolua_S); - lua_register_cocos2dx_GLProgramCache(tolua_S); - lua_register_cocos2dx_EaseQuadraticActionIn(tolua_S); - lua_register_cocos2dx_WavesTiles3D(tolua_S); - lua_register_cocos2dx_TransitionSlideInB(tolua_S); - lua_register_cocos2dx_Speed(tolua_S); - lua_register_cocos2dx_ShatteredTiles3D(tolua_S); - - tolua_endmodule(tolua_S); - return 1; + tolua_open(tolua_S); + + tolua_module(tolua_S,"cc",0); + tolua_beginmodule(tolua_S,"cc"); + + lua_register_cocos2dx_Ref(tolua_S); + lua_register_cocos2dx_Console(tolua_S); + lua_register_cocos2dx_Node(tolua_S); + lua_register_cocos2dx_Scene(tolua_S); + lua_register_cocos2dx_TransitionScene(tolua_S); + lua_register_cocos2dx_TransitionEaseScene(tolua_S); + lua_register_cocos2dx_TransitionMoveInL(tolua_S); + lua_register_cocos2dx_TransitionMoveInB(tolua_S); + lua_register_cocos2dx_AtlasNode(tolua_S); + lua_register_cocos2dx_TileMapAtlas(tolua_S); + lua_register_cocos2dx_TransitionMoveInT(tolua_S); + lua_register_cocos2dx_TMXTilesetInfo(tolua_S); + lua_register_cocos2dx_TransitionMoveInR(tolua_S); + lua_register_cocos2dx_Action(tolua_S); + lua_register_cocos2dx_FiniteTimeAction(tolua_S); + lua_register_cocos2dx_ActionInstant(tolua_S); + lua_register_cocos2dx_Hide(tolua_S); + lua_register_cocos2dx_ParticleSystem(tolua_S); + lua_register_cocos2dx_ParticleSystemQuad(tolua_S); + lua_register_cocos2dx_ParticleSpiral(tolua_S); + lua_register_cocos2dx_GridBase(tolua_S); + lua_register_cocos2dx_AnimationCache(tolua_S); + lua_register_cocos2dx_ActionInterval(tolua_S); + lua_register_cocos2dx_ActionCamera(tolua_S); + lua_register_cocos2dx_ProgressFromTo(tolua_S); + lua_register_cocos2dx_MoveBy(tolua_S); + lua_register_cocos2dx_MoveTo(tolua_S); + lua_register_cocos2dx_JumpBy(tolua_S); + lua_register_cocos2dx_EventListener(tolua_S); + lua_register_cocos2dx_EventListenerKeyboard(tolua_S); + lua_register_cocos2dx_EventListenerMouse(tolua_S); + lua_register_cocos2dx_TransitionRotoZoom(tolua_S); + lua_register_cocos2dx_Director(tolua_S); + lua_register_cocos2dx_Scheduler(tolua_S); + lua_register_cocos2dx_ActionEase(tolua_S); + lua_register_cocos2dx_EaseElastic(tolua_S); + lua_register_cocos2dx_EaseElasticOut(tolua_S); + lua_register_cocos2dx_EaseQuadraticActionInOut(tolua_S); + lua_register_cocos2dx_EaseBackOut(tolua_S); + lua_register_cocos2dx_Texture2D(tolua_S); + lua_register_cocos2dx_TransitionSceneOriented(tolua_S); + lua_register_cocos2dx_TransitionFlipX(tolua_S); + lua_register_cocos2dx_GridAction(tolua_S); + lua_register_cocos2dx_TiledGrid3DAction(tolua_S); + lua_register_cocos2dx_FadeOutTRTiles(tolua_S); + lua_register_cocos2dx_FadeOutUpTiles(tolua_S); + lua_register_cocos2dx_FadeOutDownTiles(tolua_S); + lua_register_cocos2dx_StopGrid(tolua_S); + lua_register_cocos2dx_ParticleBatchNode(tolua_S); + lua_register_cocos2dx_SkewTo(tolua_S); + lua_register_cocos2dx_SkewBy(tolua_S); + lua_register_cocos2dx_EaseQuadraticActionOut(tolua_S); + lua_register_cocos2dx_TransitionProgress(tolua_S); + lua_register_cocos2dx_TransitionProgressVertical(tolua_S); + lua_register_cocos2dx_Layer(tolua_S); + lua_register_cocos2dx_TMXTiledMap(tolua_S); + lua_register_cocos2dx_Grid3DAction(tolua_S); + lua_register_cocos2dx_BaseLight(tolua_S); + lua_register_cocos2dx_SpotLight(tolua_S); + lua_register_cocos2dx_FadeTo(tolua_S); + lua_register_cocos2dx_FadeIn(tolua_S); + lua_register_cocos2dx_DirectionLight(tolua_S); + lua_register_cocos2dx_GLProgramState(tolua_S); + lua_register_cocos2dx_EventListenerCustom(tolua_S); + lua_register_cocos2dx_FlipX3D(tolua_S); + lua_register_cocos2dx_FlipY3D(tolua_S); + lua_register_cocos2dx_EaseSineInOut(tolua_S); + lua_register_cocos2dx_TransitionFlipAngular(tolua_S); + lua_register_cocos2dx_EaseElasticInOut(tolua_S); + lua_register_cocos2dx_EaseBounce(tolua_S); + lua_register_cocos2dx_Show(tolua_S); + lua_register_cocos2dx_FadeOut(tolua_S); + lua_register_cocos2dx_CallFunc(tolua_S); + lua_register_cocos2dx_Event(tolua_S); + lua_register_cocos2dx_EventMouse(tolua_S); + lua_register_cocos2dx_GLView(tolua_S); + lua_register_cocos2dx_EaseBezierAction(tolua_S); + lua_register_cocos2dx_ParticleFireworks(tolua_S); + lua_register_cocos2dx_MenuItem(tolua_S); + lua_register_cocos2dx_MenuItemSprite(tolua_S); + lua_register_cocos2dx_MenuItemImage(tolua_S); + lua_register_cocos2dx_ParticleFire(tolua_S); + lua_register_cocos2dx_TransitionZoomFlipAngular(tolua_S); + lua_register_cocos2dx_EaseRateAction(tolua_S); + lua_register_cocos2dx_EaseIn(tolua_S); + lua_register_cocos2dx_EaseExponentialInOut(tolua_S); + lua_register_cocos2dx_EaseBackInOut(tolua_S); + lua_register_cocos2dx_Waves3D(tolua_S); + lua_register_cocos2dx_EaseExponentialOut(tolua_S); + lua_register_cocos2dx_SpriteBatchNode(tolua_S); + lua_register_cocos2dx_Label(tolua_S); + lua_register_cocos2dx_Application(tolua_S); + lua_register_cocos2dx_DelayTime(tolua_S); + lua_register_cocos2dx_LabelAtlas(tolua_S); + lua_register_cocos2dx_ParticleSnow(tolua_S); + lua_register_cocos2dx_EaseElasticIn(tolua_S); + lua_register_cocos2dx_EaseCircleActionInOut(tolua_S); + lua_register_cocos2dx_EaseQuarticActionOut(tolua_S); + lua_register_cocos2dx_EventAcceleration(tolua_S); + lua_register_cocos2dx_EaseCubicActionIn(tolua_S); + lua_register_cocos2dx_TextureCache(tolua_S); + lua_register_cocos2dx_ActionTween(tolua_S); + lua_register_cocos2dx_TransitionFadeTR(tolua_S); + lua_register_cocos2dx_TransitionFadeDown(tolua_S); + lua_register_cocos2dx_ParticleSun(tolua_S); + lua_register_cocos2dx_TransitionProgressHorizontal(tolua_S); + lua_register_cocos2dx_TMXObjectGroup(tolua_S); + lua_register_cocos2dx_TMXLayer(tolua_S); + lua_register_cocos2dx_FlipX(tolua_S); + lua_register_cocos2dx_FlipY(tolua_S); + lua_register_cocos2dx_EventKeyboard(tolua_S); + lua_register_cocos2dx_TransitionSplitCols(tolua_S); + lua_register_cocos2dx_Timer(tolua_S); + lua_register_cocos2dx_RepeatForever(tolua_S); + lua_register_cocos2dx_Place(tolua_S); + lua_register_cocos2dx_EventListenerAcceleration(tolua_S); + lua_register_cocos2dx_TiledGrid3D(tolua_S); + lua_register_cocos2dx_EaseBounceOut(tolua_S); + lua_register_cocos2dx_RenderTexture(tolua_S); + lua_register_cocos2dx_TintBy(tolua_S); + lua_register_cocos2dx_TransitionShrinkGrow(tolua_S); + lua_register_cocos2dx_ClippingNode(tolua_S); + lua_register_cocos2dx_ParticleFlower(tolua_S); + lua_register_cocos2dx_EaseCircleActionIn(tolua_S); + lua_register_cocos2dx_ParticleSmoke(tolua_S); + lua_register_cocos2dx_Image(tolua_S); + lua_register_cocos2dx_LayerMultiplex(tolua_S); + lua_register_cocos2dx_Blink(tolua_S); + lua_register_cocos2dx_JumpTo(tolua_S); + lua_register_cocos2dx_ParticleExplosion(tolua_S); + lua_register_cocos2dx_TransitionJumpZoom(tolua_S); + lua_register_cocos2dx_Touch(tolua_S); + lua_register_cocos2dx_AnimationFrame(tolua_S); + lua_register_cocos2dx_NodeGrid(tolua_S); + lua_register_cocos2dx_TMXLayerInfo(tolua_S); + lua_register_cocos2dx_EaseSineIn(tolua_S); + lua_register_cocos2dx_EaseBounceIn(tolua_S); + lua_register_cocos2dx_Camera(tolua_S); + lua_register_cocos2dx_GLProgram(tolua_S); + lua_register_cocos2dx_ParticleGalaxy(tolua_S); + lua_register_cocos2dx_Twirl(tolua_S); + lua_register_cocos2dx_MenuItemLabel(tolua_S); + lua_register_cocos2dx_EaseQuinticActionIn(tolua_S); + lua_register_cocos2dx_LayerColor(tolua_S); + lua_register_cocos2dx_FadeOutBLTiles(tolua_S); + lua_register_cocos2dx_LayerGradient(tolua_S); + lua_register_cocos2dx_EventListenerTouchAllAtOnce(tolua_S); + lua_register_cocos2dx_GLViewImpl(tolua_S); + lua_register_cocos2dx_ToggleVisibility(tolua_S); + lua_register_cocos2dx_Repeat(tolua_S); + lua_register_cocos2dx_CardinalSplineTo(tolua_S); + lua_register_cocos2dx_CardinalSplineBy(tolua_S); + lua_register_cocos2dx_TransitionFlipY(tolua_S); + lua_register_cocos2dx_TurnOffTiles(tolua_S); + lua_register_cocos2dx_TintTo(tolua_S); + lua_register_cocos2dx_CatmullRomTo(tolua_S); + lua_register_cocos2dx_TransitionFadeBL(tolua_S); + lua_register_cocos2dx_TargetedAction(tolua_S); + lua_register_cocos2dx_DrawNode(tolua_S); + lua_register_cocos2dx_TransitionTurnOffTiles(tolua_S); + lua_register_cocos2dx_RotateTo(tolua_S); + lua_register_cocos2dx_TransitionSplitRows(tolua_S); + lua_register_cocos2dx_Device(tolua_S); + lua_register_cocos2dx_TransitionProgressRadialCCW(tolua_S); + lua_register_cocos2dx_EventListenerFocus(tolua_S); + lua_register_cocos2dx_TransitionPageTurn(tolua_S); + lua_register_cocos2dx_BezierBy(tolua_S); + lua_register_cocos2dx_BezierTo(tolua_S); + lua_register_cocos2dx_Menu(tolua_S); + lua_register_cocos2dx_SpriteFrame(tolua_S); + lua_register_cocos2dx_ActionManager(tolua_S); + lua_register_cocos2dx_UserDefault(tolua_S); + lua_register_cocos2dx_TransitionZoomFlipX(tolua_S); + lua_register_cocos2dx_EventFocus(tolua_S); + lua_register_cocos2dx_EaseQuinticActionInOut(tolua_S); + lua_register_cocos2dx_SpriteFrameCache(tolua_S); + lua_register_cocos2dx_PointLight(tolua_S); + lua_register_cocos2dx_TransitionCrossFade(tolua_S); + lua_register_cocos2dx_Ripple3D(tolua_S); + lua_register_cocos2dx_Lens3D(tolua_S); + lua_register_cocos2dx_ScaleTo(tolua_S); + lua_register_cocos2dx_Spawn(tolua_S); + lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S); + lua_register_cocos2dx_ShakyTiles3D(tolua_S); + lua_register_cocos2dx_PageTurn3D(tolua_S); + lua_register_cocos2dx_TransitionSlideInL(tolua_S); + lua_register_cocos2dx_TransitionSlideInT(tolua_S); + lua_register_cocos2dx_Grid3D(tolua_S); + lua_register_cocos2dx_EaseCircleActionOut(tolua_S); + lua_register_cocos2dx_TransitionProgressInOut(tolua_S); + lua_register_cocos2dx_EaseCubicActionInOut(tolua_S); + lua_register_cocos2dx_EaseBackIn(tolua_S); + lua_register_cocos2dx_SplitRows(tolua_S); + lua_register_cocos2dx_Follow(tolua_S); + lua_register_cocos2dx_Animate(tolua_S); + lua_register_cocos2dx_ShuffleTiles(tolua_S); + lua_register_cocos2dx_ProgressTimer(tolua_S); + lua_register_cocos2dx_ParticleMeteor(tolua_S); + lua_register_cocos2dx_EaseQuarticActionIn(tolua_S); + lua_register_cocos2dx_EaseInOut(tolua_S); + lua_register_cocos2dx_TransitionZoomFlipY(tolua_S); + lua_register_cocos2dx_ScaleBy(tolua_S); + lua_register_cocos2dx_EventTouch(tolua_S); + lua_register_cocos2dx_Animation(tolua_S); + lua_register_cocos2dx_TMXMapInfo(tolua_S); + lua_register_cocos2dx_EaseExponentialIn(tolua_S); + lua_register_cocos2dx_ReuseGrid(tolua_S); + lua_register_cocos2dx_EaseQuinticActionOut(tolua_S); + lua_register_cocos2dx_EventDispatcher(tolua_S); + lua_register_cocos2dx_MenuItemAtlasFont(tolua_S); + lua_register_cocos2dx_Liquid(tolua_S); + lua_register_cocos2dx_OrbitCamera(tolua_S); + lua_register_cocos2dx_ParallaxNode(tolua_S); + lua_register_cocos2dx_ClippingRectangleNode(tolua_S); + lua_register_cocos2dx_EventCustom(tolua_S); + lua_register_cocos2dx_TransitionFade(tolua_S); + lua_register_cocos2dx_Component(tolua_S); + lua_register_cocos2dx_EaseCubicActionOut(tolua_S); + lua_register_cocos2dx_EventListenerTouchOneByOne(tolua_S); + lua_register_cocos2dx_ParticleRain(tolua_S); + lua_register_cocos2dx_Waves(tolua_S); + lua_register_cocos2dx_EaseOut(tolua_S); + lua_register_cocos2dx_MenuItemFont(tolua_S); + lua_register_cocos2dx_TransitionFadeUp(tolua_S); + lua_register_cocos2dx_EaseSineOut(tolua_S); + lua_register_cocos2dx_JumpTiles3D(tolua_S); + lua_register_cocos2dx_MenuItemToggle(tolua_S); + lua_register_cocos2dx_RemoveSelf(tolua_S); + lua_register_cocos2dx_SplitCols(tolua_S); + lua_register_cocos2dx_ProtectedNode(tolua_S); + lua_register_cocos2dx_MotionStreak(tolua_S); + lua_register_cocos2dx_RotateBy(tolua_S); + lua_register_cocos2dx_FileUtils(tolua_S); + lua_register_cocos2dx_Sprite(tolua_S); + lua_register_cocos2dx_ProgressTo(tolua_S); + lua_register_cocos2dx_TransitionProgressOutIn(tolua_S); + lua_register_cocos2dx_CatmullRomBy(tolua_S); + lua_register_cocos2dx_Sequence(tolua_S); + lua_register_cocos2dx_Shaky3D(tolua_S); + lua_register_cocos2dx_TransitionProgressRadialCW(tolua_S); + lua_register_cocos2dx_EaseBounceInOut(tolua_S); + lua_register_cocos2dx_TransitionSlideInR(tolua_S); + lua_register_cocos2dx_AmbientLight(tolua_S); + lua_register_cocos2dx_GLProgramCache(tolua_S); + lua_register_cocos2dx_EaseQuadraticActionIn(tolua_S); + lua_register_cocos2dx_WavesTiles3D(tolua_S); + lua_register_cocos2dx_TransitionSlideInB(tolua_S); + lua_register_cocos2dx_Speed(tolua_S); + lua_register_cocos2dx_ShatteredTiles3D(tolua_S); + + tolua_endmodule(tolua_S); + return 1; } + From fdb498a8d28ef4d4d4f66898ba300985c8247795 Mon Sep 17 00:00:00 2001 From: lvlong Date: Fri, 26 Dec 2014 13:37:02 +0800 Subject: [PATCH 18/21] camera test --- tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 86e9ae5e3b..444a4d0f13 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -791,7 +791,7 @@ void CameraClippingDemo::update(float dt) for (const auto& iter: children) { const AABB& aabb = static_cast(iter)->getAABB(); - if (_cameraFirst->isVisibleInFrustum(aabb)) + if (_cameraFirst->isVisibleInFrustum(&aabb)) { aabb.getCorners(corners); _drawAABB->drawCube(corners, Color4F(0, 1, 0, 1)); From 25ce54b43b4e307a7528b56ae1eda648b1c27466 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 26 Dec 2014 15:46:45 +0800 Subject: [PATCH 19/21] reset --- .../lua-bindings/auto/api/AttachNode.lua | 14 ++++-------- .../lua-bindings/auto/api/Camera.lua | 22 +++++++------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua index 9ae15250db..e61a0d0d48 100644 --- a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua @@ -12,14 +12,6 @@ -- @param #cc.Bone3D attachBone -- @return AttachNode#AttachNode ret (return value: cc.AttachNode) --------------------------------- --- --- @function [parent=#AttachNode] visit --- @param self --- @param #cc.Renderer renderer --- @param #mat4_table parentTransform --- @param #unsigned int parentFlags - -------------------------------- -- -- @function [parent=#AttachNode] getWorldToNodeTransform @@ -28,8 +20,10 @@ -------------------------------- -- --- @function [parent=#AttachNode] getNodeToWorldTransform +-- @function [parent=#AttachNode] visit -- @param self --- @return mat4_table#mat4_table ret (return value: mat4_table) +-- @param #cc.Renderer renderer +-- @param #mat4_table parentTransform +-- @param #unsigned int parentFlags return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Camera.lua b/cocos/scripting/lua-bindings/auto/api/Camera.lua index 0826a03728..8f80b80254 100644 --- a/cocos/scripting/lua-bindings/auto/api/Camera.lua +++ b/cocos/scripting/lua-bindings/auto/api/Camera.lua @@ -37,13 +37,6 @@ -- @param self -- @return int#int ret (return value: int) --------------------------------- --- Enable frustum culling --- @function [parent=#Camera] enableFrustumCulling --- @param self --- @param #bool enalbe --- @param #bool clipZ - -------------------------------- -- Creates a view matrix based on the specified input parameters.
-- param eyePosition The eye position.
@@ -55,19 +48,20 @@ -- @param #vec3_table target -- @param #vec3_table up --------------------------------- --- Is this aabb visible in frustum --- @function [parent=#Camera] isVisibleInFrustum --- @param self --- @param #cc.AABB aabb --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#Camera] setCameraFlag -- @param self -- @param #int flag +-------------------------------- +-- Convert the specified point of viewport from screenspace coordinate into the worldspace coordinate. +-- @function [parent=#Camera] unproject +-- @param self +-- @param #size_table viewport +-- @param #vec3_table src +-- @param #vec3_table dst + -------------------------------- -- create default camera, the camera type depends on Director::getProjection -- @function [parent=#Camera] create From b0a6720cb254713431da9c601fb72163fd6c57a1 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 26 Dec 2014 15:52:27 +0800 Subject: [PATCH 20/21] reset auto lua, fix #9515 --- .../lua-bindings/auto/api/AttachNode.lua | 18 ++++++++++----- .../lua-bindings/auto/api/Camera.lua | 22 ++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua index e61a0d0d48..9ae15250db 100644 --- a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua @@ -12,12 +12,6 @@ -- @param #cc.Bone3D attachBone -- @return AttachNode#AttachNode ret (return value: cc.AttachNode) --------------------------------- --- --- @function [parent=#AttachNode] getWorldToNodeTransform --- @param self --- @return mat4_table#mat4_table ret (return value: mat4_table) - -------------------------------- -- -- @function [parent=#AttachNode] visit @@ -26,4 +20,16 @@ -- @param #mat4_table parentTransform -- @param #unsigned int parentFlags +-------------------------------- +-- +-- @function [parent=#AttachNode] getWorldToNodeTransform +-- @param self +-- @return mat4_table#mat4_table ret (return value: mat4_table) + +-------------------------------- +-- +-- @function [parent=#AttachNode] getNodeToWorldTransform +-- @param self +-- @return mat4_table#mat4_table ret (return value: mat4_table) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Camera.lua b/cocos/scripting/lua-bindings/auto/api/Camera.lua index 8f80b80254..0826a03728 100644 --- a/cocos/scripting/lua-bindings/auto/api/Camera.lua +++ b/cocos/scripting/lua-bindings/auto/api/Camera.lua @@ -37,6 +37,13 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- Enable frustum culling +-- @function [parent=#Camera] enableFrustumCulling +-- @param self +-- @param #bool enalbe +-- @param #bool clipZ + -------------------------------- -- Creates a view matrix based on the specified input parameters.
-- param eyePosition The eye position.
@@ -48,20 +55,19 @@ -- @param #vec3_table target -- @param #vec3_table up +-------------------------------- +-- Is this aabb visible in frustum +-- @function [parent=#Camera] isVisibleInFrustum +-- @param self +-- @param #cc.AABB aabb +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Camera] setCameraFlag -- @param self -- @param #int flag --------------------------------- --- Convert the specified point of viewport from screenspace coordinate into the worldspace coordinate. --- @function [parent=#Camera] unproject --- @param self --- @param #size_table viewport --- @param #vec3_table src --- @param #vec3_table dst - -------------------------------- -- create default camera, the camera type depends on Director::getProjection -- @function [parent=#Camera] create From afb01dcd9a8d64a7934e6039f91d1892cf7453bc Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 26 Dec 2014 16:19:02 +0800 Subject: [PATCH 21/21] config linux --- cocos/3d/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/3d/CMakeLists.txt b/cocos/3d/CMakeLists.txt index 0e35a5a63e..3acd5a5254 100644 --- a/cocos/3d/CMakeLists.txt +++ b/cocos/3d/CMakeLists.txt @@ -11,11 +11,13 @@ set(COCOS_3D_SRC 3d/CCAttachNode.cpp 3d/CCBundle3D.cpp 3d/CCBundleReader.cpp + 3d/CCFrustum.cpp 3d/CCMesh.cpp 3d/CCMeshSkin.cpp 3d/CCMeshVertexIndexData.cpp 3d/CCOBB.cpp 3d/CCObjLoader.cpp + 3d/CCPlane.cpp 3d/CCRay.cpp 3d/CCSkeleton3D.cpp 3d/CCSprite3D.cpp