From 534868368e591aa8213557825cf2a272c5c79517 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Tue, 5 May 2015 05:48:55 +0000 Subject: [PATCH] [AUTO]: updating luabinding & jsbinding automatically --- .../auto/api/jsb_cocos2dx_3d_auto_api.js | 10 +- .../auto/api/jsb_cocos2dx_auto_api.js | 80 +- .../api/jsb_cocos2dx_extension_auto_api.js | 22 +- .../auto/api/jsb_cocos2dx_studio_auto_api.js | 4 +- .../auto/api/jsb_cocos2dx_ui_auto_api.js | 44 +- .../js-bindings/auto/jsb_cocos2dx_auto.cpp | 23 + .../js-bindings/auto/jsb_cocos2dx_auto.hpp | 1 + .../lua-bindings/auto/api/ActionEase.lua | 8 + .../lua-bindings/auto/api/ActionInterval.lua | 7 + .../auto/api/ActionTimelineData.lua | 13 + .../auto/api/ActionTimelineNode.lua | 13 +- .../lua-bindings/auto/api/ActionTween.lua | 15 + .../lua-bindings/auto/api/AmbientLight.lua | 6 + .../lua-bindings/auto/api/Animate.lua | 13 + .../lua-bindings/auto/api/Animate3D.lua | 32 + .../lua-bindings/auto/api/Animation.lua | 32 + .../lua-bindings/auto/api/Animation3D.lua | 21 + .../lua-bindings/auto/api/AnimationFrame.lua | 15 + .../lua-bindings/auto/api/Armature.lua | 9 +- .../lua-bindings/auto/api/AssetsManagerEx.lua | 8 + .../lua-bindings/auto/api/AsyncTaskPool.lua | 6 + .../lua-bindings/auto/api/AtlasNode.lua | 26 + .../lua-bindings/auto/api/AttachNode.lua | 6 + .../lua-bindings/auto/api/BatchNode.lua | 12 +- .../lua-bindings/auto/api/BezierBy.lua | 15 + .../lua-bindings/auto/api/BezierTo.lua | 14 + .../lua-bindings/auto/api/BillBoard.lua | 6 + .../scripting/lua-bindings/auto/api/Blink.lua | 15 + .../scripting/lua-bindings/auto/api/Bone.lua | 32 +- .../lua-bindings/auto/api/Button.lua | 22 + .../lua-bindings/auto/api/CallFunc.lua | 6 + .../lua-bindings/auto/api/Camera.lua | 46 + .../lua-bindings/auto/api/CheckBox.lua | 18 + .../lua-bindings/auto/api/ClippingNode.lua | 14 + .../lua-bindings/auto/api/Control.lua | 12 + .../lua-bindings/auto/api/ControlButton.lua | 48 +- .../auto/api/ControlColourPicker.lua | 12 +- .../lua-bindings/auto/api/DelayTime.lua | 6 + .../lua-bindings/auto/api/DirectionLight.lua | 6 + .../lua-bindings/auto/api/DrawNode.lua | 12 + .../lua-bindings/auto/api/EaseBackIn.lua | 6 + .../lua-bindings/auto/api/EaseBackInOut.lua | 6 + .../lua-bindings/auto/api/EaseBackOut.lua | 6 + .../auto/api/EaseBezierAction.lua | 6 + .../lua-bindings/auto/api/EaseBounceIn.lua | 6 + .../lua-bindings/auto/api/EaseBounceInOut.lua | 6 + .../lua-bindings/auto/api/EaseBounceOut.lua | 6 + .../auto/api/EaseCircleActionIn.lua | 6 + .../auto/api/EaseCircleActionInOut.lua | 6 + .../auto/api/EaseCircleActionOut.lua | 6 + .../auto/api/EaseCubicActionIn.lua | 6 + .../auto/api/EaseCubicActionInOut.lua | 6 + .../auto/api/EaseCubicActionOut.lua | 6 + .../lua-bindings/auto/api/EaseElastic.lua | 11 + .../lua-bindings/auto/api/EaseElasticIn.lua | 6 + .../auto/api/EaseElasticInOut.lua | 6 + .../lua-bindings/auto/api/EaseElasticOut.lua | 6 + .../auto/api/EaseExponentialIn.lua | 6 + .../auto/api/EaseExponentialInOut.lua | 6 + .../auto/api/EaseExponentialOut.lua | 6 + .../lua-bindings/auto/api/EaseIn.lua | 6 + .../lua-bindings/auto/api/EaseInOut.lua | 6 + .../lua-bindings/auto/api/EaseOut.lua | 6 + .../auto/api/EaseQuadraticActionIn.lua | 6 + .../auto/api/EaseQuadraticActionInOut.lua | 6 + .../auto/api/EaseQuadraticActionOut.lua | 6 + .../auto/api/EaseQuarticActionIn.lua | 6 + .../auto/api/EaseQuarticActionInOut.lua | 6 + .../auto/api/EaseQuarticActionOut.lua | 6 + .../auto/api/EaseQuinticActionIn.lua | 6 + .../auto/api/EaseQuinticActionInOut.lua | 6 + .../auto/api/EaseQuinticActionOut.lua | 6 + .../lua-bindings/auto/api/EaseRateAction.lua | 11 + .../lua-bindings/auto/api/EaseSineIn.lua | 6 + .../lua-bindings/auto/api/EaseSineInOut.lua | 6 + .../lua-bindings/auto/api/EaseSineOut.lua | 6 + .../scripting/lua-bindings/auto/api/Event.lua | 7 + .../auto/api/EventAssetsManagerEx.lua | 15 + .../lua-bindings/auto/api/EventListener.lua | 12 +- .../auto/api/EventListenerAcceleration.lua | 13 + .../auto/api/EventListenerAssetsManagerEx.lua | 14 + .../auto/api/EventListenerCustom.lua | 6 + .../auto/api/EventListenerFocus.lua | 12 + .../auto/api/EventListenerKeyboard.lua | 12 + .../auto/api/EventListenerMouse.lua | 12 + .../auto/api/EventListenerTouchAllAtOnce.lua | 12 + .../auto/api/EventListenerTouchOneByOne.lua | 12 + .../lua-bindings/auto/api/FadeIn.lua | 6 + .../lua-bindings/auto/api/FadeOut.lua | 6 + .../lua-bindings/auto/api/FadeOutBLTiles.lua | 6 + .../auto/api/FadeOutDownTiles.lua | 6 + .../lua-bindings/auto/api/FadeOutTRTiles.lua | 6 + .../lua-bindings/auto/api/FadeOutUpTiles.lua | 6 + .../lua-bindings/auto/api/FadeTo.lua | 15 + .../lua-bindings/auto/api/FileUtils.lua | 10 + .../scripting/lua-bindings/auto/api/FlipX.lua | 13 + .../lua-bindings/auto/api/FlipX3D.lua | 26 + .../scripting/lua-bindings/auto/api/FlipY.lua | 13 + .../lua-bindings/auto/api/FlipY3D.lua | 6 + .../lua-bindings/auto/api/Follow.lua | 17 + .../lua-bindings/auto/api/GridAction.lua | 11 + .../scripting/lua-bindings/auto/api/HBox.lua | 13 + .../scripting/lua-bindings/auto/api/Hide.lua | 6 + .../lua-bindings/auto/api/ImageView.lua | 14 + .../lua-bindings/auto/api/JumpBy.lua | 17 + .../lua-bindings/auto/api/JumpTiles3D.lua | 51 +- .../lua-bindings/auto/api/JumpTo.lua | 17 + .../lua-bindings/auto/api/LabelAtlas.lua | 6 + .../scripting/lua-bindings/auto/api/Layer.lua | 12 + .../lua-bindings/auto/api/LayerColor.lua | 38 +- .../lua-bindings/auto/api/LayerGradient.lua | 22 + .../lua-bindings/auto/api/LayerMultiplex.lua | 20 + .../lua-bindings/auto/api/Layout.lua | 6 + .../lua-bindings/auto/api/Lens3D.lua | 51 +- .../lua-bindings/auto/api/Liquid.lua | 51 +- .../lua-bindings/auto/api/ListView.lua | 6 + .../scripting/lua-bindings/auto/api/Menu.lua | 19 + .../lua-bindings/auto/api/MenuItem.lua | 6 + .../auto/api/MenuItemAtlasFont.lua | 18 + .../lua-bindings/auto/api/MenuItemFont.lua | 52 +- .../lua-bindings/auto/api/MenuItemImage.lua | 22 + .../lua-bindings/auto/api/MenuItemLabel.lua | 22 +- .../lua-bindings/auto/api/MenuItemSprite.lua | 16 + .../lua-bindings/auto/api/MenuItemToggle.lua | 13 + .../scripting/lua-bindings/auto/api/Mesh.lua | 91 +- .../lua-bindings/auto/api/MotionStreak.lua | 18 + .../lua-bindings/auto/api/MoveBy.lua | 15 + .../lua-bindings/auto/api/MoveTo.lua | 15 + .../scripting/lua-bindings/auto/api/Node.lua | 12 + .../lua-bindings/auto/api/NodeGrid.lua | 6 + .../lua-bindings/auto/api/OrbitCamera.lua | 19 + .../auto/api/PUParticleSystem3D.lua | 21 + .../lua-bindings/auto/api/PageView.lua | 6 + .../lua-bindings/auto/api/ParallaxNode.lua | 9 + .../auto/api/ParticleBatchNode.lua | 22 + .../auto/api/ParticleExplosion.lua | 19 + .../lua-bindings/auto/api/ParticleFire.lua | 19 + .../auto/api/ParticleFireworks.lua | 19 + .../lua-bindings/auto/api/ParticleFlower.lua | 19 + .../lua-bindings/auto/api/ParticleGalaxy.lua | 19 + .../lua-bindings/auto/api/ParticleMeteor.lua | 19 + .../lua-bindings/auto/api/ParticleRain.lua | 19 + .../lua-bindings/auto/api/ParticleSmoke.lua | 19 + .../lua-bindings/auto/api/ParticleSnow.lua | 19 + .../lua-bindings/auto/api/ParticleSpiral.lua | 19 + .../lua-bindings/auto/api/ParticleSun.lua | 19 + .../lua-bindings/auto/api/ParticleSystem.lua | 38 + .../auto/api/ParticleSystem3D.lua | 154 +- .../auto/api/ParticleSystemQuad.lua | 6 + .../scripting/lua-bindings/auto/api/Place.lua | 13 + .../lua-bindings/auto/api/PointLight.lua | 6 + .../lua-bindings/auto/api/ProgressFromTo.lua | 19 + .../lua-bindings/auto/api/ProgressTimer.lua | 13 + .../lua-bindings/auto/api/ProgressTo.lua | 17 + .../lua-bindings/auto/api/ProtectedNode.lua | 6 + .../lua-bindings/auto/api/RelativeBox.lua | 13 + .../lua-bindings/auto/api/RemoveSelf.lua | 13 + .../lua-bindings/auto/api/Repeat.lua | 14 + .../lua-bindings/auto/api/RepeatForever.lua | 13 + .../lua-bindings/auto/api/ReuseGrid.lua | 15 + .../lua-bindings/auto/api/RichText.lua | 6 + .../lua-bindings/auto/api/Ripple3D.lua | 25 + .../lua-bindings/auto/api/RotateBy.lua | 17 + .../lua-bindings/auto/api/RotateTo.lua | 16 + .../lua-bindings/auto/api/Scale9Sprite.lua | 17 +- .../lua-bindings/auto/api/ScaleBy.lua | 6 + .../lua-bindings/auto/api/ScaleTo.lua | 18 + .../scripting/lua-bindings/auto/api/Scene.lua | 32 + .../lua-bindings/auto/api/ScrollView.lua | 6 + .../lua-bindings/auto/api/Sequence.lua | 14 + .../lua-bindings/auto/api/Shaky3D.lua | 21 + .../lua-bindings/auto/api/ShakyTiles3D.lua | 21 + .../auto/api/ShatteredTiles3D.lua | 21 + .../scripting/lua-bindings/auto/api/Show.lua | 6 + .../lua-bindings/auto/api/ShuffleTiles.lua | 19 + .../lua-bindings/auto/api/Skeleton3D.lua | 19 + .../auto/api/SkeletonAnimation.lua | 6 + .../auto/api/SkeletonRenderer.lua | 100 +- .../lua-bindings/auto/api/SkewBy.lua | 15 + .../lua-bindings/auto/api/SkewTo.lua | 15 + .../scripting/lua-bindings/auto/api/Skin.lua | 38 +- .../lua-bindings/auto/api/Skybox.lua | 19 + .../lua-bindings/auto/api/Slider.lua | 6 + .../scripting/lua-bindings/auto/api/Spawn.lua | 14 + .../scripting/lua-bindings/auto/api/Speed.lua | 28 +- .../lua-bindings/auto/api/SplitCols.lua | 17 + .../lua-bindings/auto/api/SplitRows.lua | 17 + .../lua-bindings/auto/api/SpotLight.lua | 6 + .../lua-bindings/auto/api/Sprite.lua | 52 + .../lua-bindings/auto/api/Sprite3D.lua | 98 +- .../lua-bindings/auto/api/Sprite3DCache.lua | 6 + .../lua-bindings/auto/api/SpriteBatchNode.lua | 219 +- .../lua-bindings/auto/api/SpriteFrame.lua | 30 + .../lua-bindings/auto/api/StopGrid.lua | 6 + .../lua-bindings/auto/api/TargetedAction.lua | 14 + .../scripting/lua-bindings/auto/api/Text.lua | 15 + .../lua-bindings/auto/api/TextField.lua | 6 + .../lua-bindings/auto/api/TextureCube.lua | 6 + .../lua-bindings/auto/api/TintBy.lua | 16 + .../lua-bindings/auto/api/TintTo.lua | 16 + .../auto/api/ToggleVisibility.lua | 6 + .../auto/api/TransitionCrossFade.lua | 6 + .../lua-bindings/auto/api/TransitionFade.lua | 16 + .../auto/api/TransitionFadeBL.lua | 6 + .../auto/api/TransitionFadeDown.lua | 6 + .../auto/api/TransitionFadeTR.lua | 6 + .../auto/api/TransitionFadeUp.lua | 6 + .../auto/api/TransitionFlipAngular.lua | 6 + .../lua-bindings/auto/api/TransitionFlipX.lua | 6 + .../lua-bindings/auto/api/TransitionFlipY.lua | 6 + .../auto/api/TransitionJumpZoom.lua | 6 + .../auto/api/TransitionMoveInB.lua | 6 + .../auto/api/TransitionMoveInL.lua | 6 + .../auto/api/TransitionMoveInR.lua | 6 + .../auto/api/TransitionMoveInT.lua | 6 + .../auto/api/TransitionPageTurn.lua | 6 + .../auto/api/TransitionProgress.lua | 6 + .../auto/api/TransitionProgressHorizontal.lua | 6 + .../auto/api/TransitionProgressInOut.lua | 6 + .../auto/api/TransitionProgressOutIn.lua | 6 + .../auto/api/TransitionProgressRadialCCW.lua | 6 + .../auto/api/TransitionProgressRadialCW.lua | 6 + .../auto/api/TransitionProgressVertical.lua | 6 + .../auto/api/TransitionRotoZoom.lua | 6 + .../lua-bindings/auto/api/TransitionScene.lua | 14 + .../auto/api/TransitionSceneOriented.lua | 15 + .../auto/api/TransitionShrinkGrow.lua | 6 + .../auto/api/TransitionSlideInB.lua | 6 + .../auto/api/TransitionSlideInL.lua | 6 + .../auto/api/TransitionSlideInR.lua | 6 + .../auto/api/TransitionSlideInT.lua | 6 + .../auto/api/TransitionSplitCols.lua | 6 + .../auto/api/TransitionSplitRows.lua | 6 + .../auto/api/TransitionTurnOffTiles.lua | 6 + .../auto/api/TransitionZoomFlipAngular.lua | 6 + .../auto/api/TransitionZoomFlipX.lua | 6 + .../auto/api/TransitionZoomFlipY.lua | 6 + .../lua-bindings/auto/api/TurnOffTiles.lua | 19 + .../scripting/lua-bindings/auto/api/Twirl.lua | 23 + .../scripting/lua-bindings/auto/api/VBox.lua | 13 + .../lua-bindings/auto/api/VideoPlayer.lua | 6 + .../scripting/lua-bindings/auto/api/Waves.lua | 55 +- .../lua-bindings/auto/api/Waves3D.lua | 51 +- .../lua-bindings/auto/api/WavesTiles3D.lua | 51 +- .../lua-bindings/auto/api/WebView.lua | 72 +- .../lua-bindings/auto/api/Widget.lua | 46 + .../auto/lua_cocos2dx_3d_auto.cpp | 1859 +- .../auto/lua_cocos2dx_3d_auto.hpp | 23 + .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 17195 ++++++++++++++-- .../lua-bindings/auto/lua_cocos2dx_auto.hpp | 315 + .../lua_cocos2dx_experimental_video_auto.cpp | 38 + .../lua_cocos2dx_experimental_video_auto.hpp | 1 + ...lua_cocos2dx_experimental_webview_auto.cpp | 456 +- ...lua_cocos2dx_experimental_webview_auto.hpp | 1 + .../auto/lua_cocos2dx_extension_auto.cpp | 2021 +- .../auto/lua_cocos2dx_extension_auto.hpp | 11 + .../auto/lua_cocos2dx_spine_auto.cpp | 1216 +- .../auto/lua_cocos2dx_spine_auto.hpp | 5 + .../auto/lua_cocos2dx_studio_auto.cpp | 358 +- .../auto/lua_cocos2dx_studio_auto.hpp | 1 - .../auto/lua_cocos2dx_ui_auto.cpp | 799 +- .../auto/lua_cocos2dx_ui_auto.hpp | 12 + 262 files changed, 24538 insertions(+), 3878 deletions(-) diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js index b08d852ab7..99432ad589 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_3d_auto_api.js @@ -342,7 +342,7 @@ int /** * @method getRootCount - * @return {int} + * @return {long} */ getRootCount : function ( ) @@ -364,7 +364,7 @@ bone3d /** * @method getBoneCount - * @return {int} + * @return {long} */ getBoneCount : function ( ) @@ -512,7 +512,7 @@ materialdatas /** * @method getMeshCount - * @return {int} + * @return {long} */ getMeshCount : function ( ) @@ -927,7 +927,7 @@ isVisible : function ( /** * @method getIndexCount - * @return {int} + * @return {long} */ getIndexCount : function ( ) @@ -955,7 +955,7 @@ meshindexdata /** * @method getMeshVertexAttribCount - * @return {int} + * @return {long} */ getMeshVertexAttribCount : function ( ) diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js index 33c76e3aa4..bba7db7765 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js @@ -1444,7 +1444,7 @@ getAnchorPoint : function ( /** * @method getNumberOfRunningActions - * @return {int} + * @return {long} */ getNumberOfRunningActions : function ( ) @@ -1472,7 +1472,7 @@ isVisible : function ( /** * @method getChildrenCount - * @return {int} + * @return {long} */ getChildrenCount : function ( ) @@ -5751,6 +5751,18 @@ str return ; }, +/** + * @method getSuitableFOpen + * @param {String} arg0 + * @return {String} + */ +getSuitableFOpen : function ( +str +) +{ + return ; +}, + /** * @method setWritablePath * @param {String} arg0 @@ -6756,7 +6768,7 @@ node /** * @method getNumberOfRunningActionsInTarget * @param {cc.Node} arg0 - * @return {int} + * @return {long} */ getNumberOfRunningActionsInTarget : function ( node @@ -10209,7 +10221,7 @@ mat4 /** * @method getUniformCount - * @return {int} + * @return {long} */ getUniformCount : function ( ) @@ -10263,7 +10275,7 @@ int /** * @method getVertexAttribCount - * @return {int} + * @return {long} */ getVertexAttribCount : function ( ) @@ -10456,7 +10468,7 @@ getBlendFunc : function ( /** * @method getQuadsToDraw - * @return {int} + * @return {long} */ getQuadsToDraw : function ( ) @@ -10494,10 +10506,10 @@ int /** * @method setQuadsToDraw - * @param {int} arg0 + * @param {long} arg0 */ setQuadsToDraw : function ( -int +long ) { }, @@ -11333,12 +11345,12 @@ bool /** * @method initWithTexture * @param {cc.Texture2D} arg0 - * @param {int} arg1 + * @param {long} arg1 * @return {bool} */ initWithTexture : function ( texture2d, -int +long ) { return false; @@ -11357,7 +11369,7 @@ getBlendFunc : function ( /** * @method lowestAtlasIndexInChild * @param {cc.Sprite} arg0 - * @return {int} + * @return {long} */ lowestAtlasIndexInChild : function ( sprite @@ -11370,7 +11382,7 @@ sprite * @method atlasIndexForChild * @param {cc.Sprite} arg0 * @param {int} arg1 - * @return {int} + * @return {long} */ atlasIndexForChild : function ( sprite, @@ -11393,12 +11405,12 @@ textureatlas /** * @method initWithFile * @param {String} arg0 - * @param {int} arg1 + * @param {long} arg1 * @return {bool} */ initWithFile : function ( str, -int +long ) { return false; @@ -11435,11 +11447,11 @@ getTextureAtlas : function ( /** * @method insertQuadFromSprite * @param {cc.Sprite} arg0 - * @param {int} arg1 + * @param {long} arg1 */ insertQuadFromSprite : function ( sprite, -int +long ) { }, @@ -11457,12 +11469,12 @@ texture2d /** * @method rebuildIndexInOrder * @param {cc.Sprite} arg0 - * @param {int} arg1 - * @return {int} + * @param {long} arg1 + * @return {long} */ rebuildIndexInOrder : function ( sprite, -int +long ) { return 0; @@ -11471,7 +11483,7 @@ int /** * @method highestAtlasIndexInChild * @param {cc.Sprite} arg0 - * @return {int} + * @return {long} */ highestAtlasIndexInChild : function ( sprite @@ -11482,11 +11494,11 @@ sprite /** * @method removeChildAtIndex - * @param {int} arg0 + * @param {long} arg0 * @param {bool} arg1 */ removeChildAtIndex : function ( -int, +long, bool ) { @@ -11515,12 +11527,12 @@ blendfunc /** * @method create * @param {String} arg0 - * @param {int} arg1 + * @param {long} arg1 * @return {cc.SpriteBatchNode} */ create : function ( str, -int +long ) { return cc.SpriteBatchNode; @@ -11529,12 +11541,12 @@ int /** * @method createWithTexture * @param {cc.Texture2D} arg0 - * @param {int} arg1 + * @param {long} arg1 * @return {cc.SpriteBatchNode} */ createWithTexture : function ( texture2d, -int +long ) { return cc.SpriteBatchNode; @@ -15219,7 +15231,7 @@ spriteframe /** * @method getAtlasIndex - * @return {int} + * @return {long} */ getAtlasIndex : function ( ) @@ -15250,11 +15262,11 @@ getBlendFunc : function ( /** * @method setDisplayFrameWithAnimationName * @param {String} arg0 - * @param {int} arg1 + * @param {long} arg1 */ setDisplayFrameWithAnimationName : function ( str, -int +long ) { }, @@ -15291,10 +15303,10 @@ isDirty : function ( /** * @method setAtlasIndex - * @param {int} arg0 + * @param {long} arg0 */ setAtlasIndex : function ( -int +long ) { }, @@ -15487,7 +15499,7 @@ hasPremultipliedAlpha : function ( /** * @method getDataLen - * @return {int} + * @return {long} */ getDataLen : function ( ) @@ -15624,7 +15636,7 @@ getMipmaps : function ( /** * @method initWithRawData * @param {unsigned char} arg0 - * @param {int} arg1 + * @param {long} arg1 * @param {int} arg2 * @param {int} arg3 * @param {int} arg4 @@ -15633,7 +15645,7 @@ getMipmaps : function ( */ initWithRawData : function ( char, -int, +long, int, int, int, diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js index c99cd305e4..89a1e3796d 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_extension_auto_api.js @@ -2144,7 +2144,7 @@ reset : function ( /** * @method getIdx - * @return {int} + * @return {long} */ getIdx : function ( ) @@ -2154,10 +2154,10 @@ getIdx : function ( /** * @method setIdx - * @param {int} arg0 + * @param {long} arg0 */ setIdx : function ( -int +long ) { }, @@ -2190,10 +2190,10 @@ cc.TableView = { /** * @method updateCellAtIndex - * @param {int} arg0 + * @param {long} arg0 */ updateCellAtIndex : function ( -int +long ) { }, @@ -2238,10 +2238,10 @@ getVerticalFillOrder : function ( /** * @method removeCellAtIndex - * @param {int} arg0 + * @param {long} arg0 */ removeCellAtIndex : function ( -int +long ) { }, @@ -2280,21 +2280,21 @@ reloadData : function ( /** * @method insertCellAtIndex - * @param {int} arg0 + * @param {long} arg0 */ insertCellAtIndex : function ( -int +long ) { }, /** * @method cellAtIndex - * @param {int} arg0 + * @param {long} arg0 * @return {cc.TableViewCell} */ cellAtIndex : function ( -int +long ) { return cc.TableViewCell; diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_studio_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_studio_auto_api.js index ab44c438d3..cfad8eb3da 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_studio_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_studio_auto_api.js @@ -405,7 +405,7 @@ str /** * @method getMovementCount - * @return {int} + * @return {long} */ getMovementCount : function ( ) @@ -1776,7 +1776,7 @@ bool /** * @method getMovementCount - * @return {int} + * @return {long} */ getMovementCount : function ( ) diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js index 4353a33b94..93a53d1097 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js @@ -2090,7 +2090,7 @@ size /** * @method getStringLength - * @return {int} + * @return {long} */ getStringLength : function ( ) @@ -2244,7 +2244,7 @@ ccui.TextAtlas = { /** * @method getStringLength - * @return {int} + * @return {long} */ getStringLength : function ( ) @@ -2839,7 +2839,7 @@ ccui.ListView = { /** * @method getIndex * @param {ccui.Widget} arg0 - * @return {int} + * @return {long} */ getIndex : function ( widget @@ -2888,17 +2888,17 @@ getItems : function ( /** * @method removeItem - * @param {int} arg0 + * @param {long} arg0 */ removeItem : function ( -int +long ) { }, /** * @method getCurSelectedIndex - * @return {int} + * @return {long} */ getCurSelectedIndex : function ( ) @@ -2908,10 +2908,10 @@ getCurSelectedIndex : function ( /** * @method insertDefaultItem - * @param {int} arg0 + * @param {long} arg0 */ insertDefaultItem : function ( -int +long ) { }, @@ -2962,11 +2962,11 @@ getItemsMargin : function ( /** * @method getItem - * @param {int} arg0 + * @param {long} arg0 * @return {ccui.Widget} */ getItem : function ( -int +long ) { return ccui.Widget; @@ -3001,11 +3001,11 @@ pushBackDefaultItem : function ( /** * @method insertCustomItem * @param {ccui.Widget} arg0 - * @param {int} arg1 + * @param {long} arg1 */ insertCustomItem : function ( widget, -int +long ) { }, @@ -3988,7 +3988,7 @@ str /** * @method getStringLength - * @return {int} + * @return {long} */ getStringLength : function ( ) @@ -4068,7 +4068,7 @@ getCustomScrollThreshold : function ( /** * @method getCurPageIndex - * @return {int} + * @return {long} */ getCurPageIndex : function ( ) @@ -4079,12 +4079,12 @@ getCurPageIndex : function ( /** * @method addWidgetToPage * @param {ccui.Widget} arg0 - * @param {int} arg1 + * @param {long} arg1 * @param {bool} arg2 */ addWidgetToPage : function ( widget, -int, +long, bool ) { @@ -4102,11 +4102,11 @@ isUsingCustomScrollThreshold : function ( /** * @method getPage - * @param {int} arg0 + * @param {long} arg0 * @return {ccui.Layout} */ getPage : function ( -int +long ) { return ccui.Layout; @@ -4156,20 +4156,20 @@ int /** * @method scrollToPage - * @param {int} arg0 + * @param {long} arg0 */ scrollToPage : function ( -int +long ) { }, /** * @method removePageAtIndex - * @param {int} arg0 + * @param {long} arg0 */ removePageAtIndex : function ( -int +long ) { }, diff --git a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp index ed50caabe5..99ef6c287c 100644 --- a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -16014,6 +16014,28 @@ bool js_cocos2dx_FileUtils_fullPathFromRelativeFile(JSContext *cx, uint32_t argc JS_ReportError(cx, "js_cocos2dx_FileUtils_fullPathFromRelativeFile : wrong number of arguments: %d, was expecting %d", argc, 2); return false; } +bool js_cocos2dx_FileUtils_getSuitableFOpen(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::FileUtils* cobj = (cocos2d::FileUtils *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_FileUtils_getSuitableFOpen : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_FileUtils_getSuitableFOpen : Error processing arguments"); + std::string ret = cobj->getSuitableFOpen(arg0); + jsval jsret = JSVAL_NULL; + jsret = std_string_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_FileUtils_getSuitableFOpen : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_FileUtils_setWritablePath(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -16244,6 +16266,7 @@ void js_register_cocos2dx_FileUtils(JSContext *cx, JS::HandleObject global) { JS_FN("isFileExist", js_cocos2dx_FileUtils_isFileExist, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("purgeCachedEntries", js_cocos2dx_FileUtils_purgeCachedEntries, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("fullPathFromRelativeFile", js_cocos2dx_FileUtils_fullPathFromRelativeFile, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getSuitableFOpen", js_cocos2dx_FileUtils_getSuitableFOpen, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setWritablePath", js_cocos2dx_FileUtils_setWritablePath, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setPopupNotify", js_cocos2dx_FileUtils_setPopupNotify, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("isDirectoryExist", js_cocos2dx_FileUtils_isDirectoryExist, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), diff --git a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp index 3421c8324e..b02f32a820 100644 --- a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp +++ b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp @@ -877,6 +877,7 @@ bool js_cocos2dx_FileUtils_addSearchPath(JSContext *cx, uint32_t argc, jsval *vp bool js_cocos2dx_FileUtils_isFileExist(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_purgeCachedEntries(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_fullPathFromRelativeFile(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_FileUtils_getSuitableFOpen(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_setWritablePath(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_setPopupNotify(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_isDirectoryExist(JSContext *cx, uint32_t argc, jsval *vp); diff --git a/cocos/scripting/lua-bindings/auto/api/ActionEase.lua b/cocos/scripting/lua-bindings/auto/api/ActionEase.lua index 24db8b8405..c3c85757a7 100644 --- a/cocos/scripting/lua-bindings/auto/api/ActionEase.lua +++ b/cocos/scripting/lua-bindings/auto/api/ActionEase.lua @@ -4,6 +4,14 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- brief Initializes the action.
+-- return Return true when the initialization success, otherwise return false. +-- @function [parent=#ActionEase] initWithAction +-- @param self +-- @param #cc.ActionInterval action +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Get the pointer of the inner action.
-- return The pointer of the inner action. diff --git a/cocos/scripting/lua-bindings/auto/api/ActionInterval.lua b/cocos/scripting/lua-bindings/auto/api/ActionInterval.lua index 0d536409a3..77000422d6 100644 --- a/cocos/scripting/lua-bindings/auto/api/ActionInterval.lua +++ b/cocos/scripting/lua-bindings/auto/api/ActionInterval.lua @@ -11,6 +11,13 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- initializes the action +-- @function [parent=#ActionInterval] initWithDuration +-- @param self +-- @param #float d +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets the ampliture rate, extension in GridAction
-- param amp The ampliture rate. diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua b/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua index eccd323d86..b70cb083e4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua +++ b/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua @@ -11,6 +11,13 @@ -- @param #int actionTag -- @return ActionTimelineData#ActionTimelineData self (return value: ccs.ActionTimelineData) +-------------------------------- +-- +-- @function [parent=#ActionTimelineData] init +-- @param self +-- @param #int actionTag +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ActionTimelineData] getActionTag @@ -24,4 +31,10 @@ -- @param #int actionTag -- @return ActionTimelineData#ActionTimelineData ret (return value: ccs.ActionTimelineData) +-------------------------------- +-- +-- @function [parent=#ActionTimelineData] ActionTimelineData +-- @param self +-- @return ActionTimelineData#ActionTimelineData self (return value: ccs.ActionTimelineData) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTimelineNode.lua b/cocos/scripting/lua-bindings/auto/api/ActionTimelineNode.lua index 0eadb114b5..f756458057 100644 --- a/cocos/scripting/lua-bindings/auto/api/ActionTimelineNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/ActionTimelineNode.lua @@ -24,14 +24,13 @@ -- @return ActionTimelineNode#ActionTimelineNode self (return value: ccs.ActionTimelineNode) -------------------------------- --- @overload self, cc.Node, ccs.ActionTimeline --- @overload self --- @function [parent=#ActionTimelineNode] init +-- +-- @function [parent=#ActionTimelineNode] init -- @param self -- @param #cc.Node root -- @param #ccs.ActionTimeline action -- @return bool#bool ret (return value: bool) - + -------------------------------- -- -- @function [parent=#ActionTimelineNode] setRoot @@ -47,6 +46,12 @@ -- @param #ccs.ActionTimeline action -- @return ActionTimelineNode#ActionTimelineNode ret (return value: ccs.ActionTimelineNode) +-------------------------------- +-- +-- @function [parent=#ActionTimelineNode] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ActionTimelineNode] ActionTimelineNode diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTween.lua b/cocos/scripting/lua-bindings/auto/api/ActionTween.lua index 9c55deb2c6..f6c333c383 100644 --- a/cocos/scripting/lua-bindings/auto/api/ActionTween.lua +++ b/cocos/scripting/lua-bindings/auto/api/ActionTween.lua @@ -4,6 +4,21 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- brief Initializes the action with the property name (key), and the from and to parameters.
+-- param duration The duration of the ActionTween. It's a value in seconds.
+-- param key The key of property which should be updated.
+-- param from The value of the specified property when the action begin.
+-- param to The value of the specified property when the action end.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#ActionTween] initWithDuration +-- @param self +-- @param #float duration +-- @param #string key +-- @param #float from +-- @param #float to +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create and initializes the action with the property name (key), and the from and to parameters.
-- param duration The duration of the ActionTween. It's a value in seconds.
diff --git a/cocos/scripting/lua-bindings/auto/api/AmbientLight.lua b/cocos/scripting/lua-bindings/auto/api/AmbientLight.lua index 25e55e49f2..1ddb8b2e88 100644 --- a/cocos/scripting/lua-bindings/auto/api/AmbientLight.lua +++ b/cocos/scripting/lua-bindings/auto/api/AmbientLight.lua @@ -19,4 +19,10 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- +-- @function [parent=#AmbientLight] AmbientLight +-- @param self +-- @return AmbientLight#AmbientLight self (return value: cc.AmbientLight) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Animate.lua b/cocos/scripting/lua-bindings/auto/api/Animate.lua index ebd60bcb0c..219d5cfe36 100644 --- a/cocos/scripting/lua-bindings/auto/api/Animate.lua +++ b/cocos/scripting/lua-bindings/auto/api/Animate.lua @@ -11,6 +11,13 @@ -- @param self -- @return Animation#Animation ret (return value: cc.Animation) +-------------------------------- +-- initializes the action with an Animation and will restore the original frame when the animation is over +-- @function [parent=#Animate] initWithAnimation +-- @param self +-- @param #cc.Animation animation +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets the Animation object to be animated
-- param animation certain animation. @@ -60,4 +67,10 @@ -- @param #float t -- @return Animate#Animate self (return value: cc.Animate) +-------------------------------- +-- +-- @function [parent=#Animate] Animate +-- @param self +-- @return Animate#Animate self (return value: cc.Animate) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Animate3D.lua b/cocos/scripting/lua-bindings/auto/api/Animate3D.lua index 6d5ecc2e8a..8a5ee48bc5 100644 --- a/cocos/scripting/lua-bindings/auto/api/Animate3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Animate3D.lua @@ -24,6 +24,22 @@ -- @param #float weight -- @return Animate3D#Animate3D self (return value: cc.Animate3D) +-------------------------------- +-- +-- @function [parent=#Animate3D] removeFromMap +-- @param self +-- @return Animate3D#Animate3D self (return value: cc.Animate3D) + +-------------------------------- +-- +-- @function [parent=#Animate3D] initWithFrames +-- @param self +-- @param #cc.Animation3D animation +-- @param #int startFrame +-- @param #int endFrame +-- @param #float frameRate +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Animate3D] getOriginInterval @@ -37,6 +53,16 @@ -- @param #float speed -- @return Animate3D#Animate3D self (return value: cc.Animate3D) +-------------------------------- +-- @overload self, cc.Animation3D, float, float +-- @overload self, cc.Animation3D +-- @function [parent=#Animate3D] init +-- @param self +-- @param #cc.Animation3D animation +-- @param #float fromTime +-- @param #float duration +-- @return bool#bool ret (return value: bool) + -------------------------------- -- get & set origin interval -- @function [parent=#Animate3D] setOriginInterval @@ -133,4 +159,10 @@ -- @param #float dt -- @return Animate3D#Animate3D self (return value: cc.Animate3D) +-------------------------------- +-- +-- @function [parent=#Animate3D] Animate3D +-- @param self +-- @return Animate3D#Animate3D self (return value: cc.Animate3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Animation.lua b/cocos/scripting/lua-bindings/auto/api/Animation.lua index 2a17cf9963..a079304367 100644 --- a/cocos/scripting/lua-bindings/auto/api/Animation.lua +++ b/cocos/scripting/lua-bindings/auto/api/Animation.lua @@ -40,6 +40,22 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- Initializes a Animation with AnimationFrame.
+-- since v2.0 +-- @function [parent=#Animation] initWithAnimationFrames +-- @param self +-- @param #array_table arrayOfAnimationFrameNames +-- @param #float delayPerUnit +-- @param #unsigned int loops +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- Initializes a Animation. +-- @function [parent=#Animation] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets the array of AnimationFrames.
-- param frames The array of AnimationFrames. @@ -95,6 +111,16 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- Initializes a Animation with frames and a delay between frames.
+-- since v0.99.5 +-- @function [parent=#Animation] initWithSpriteFrames +-- @param self +-- @param #array_table arrayOfSpriteFrameNames +-- @param #float delay +-- @param #unsigned int loops +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Checks whether to restore the original frame when animation finishes.
-- return Restore the original frame when animation finishes. @@ -133,4 +159,10 @@ -- @param #unsigned int loops -- @return Animation#Animation ret (return value: cc.Animation) +-------------------------------- +-- +-- @function [parent=#Animation] Animation +-- @param self +-- @return Animation#Animation self (return value: cc.Animation) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Animation3D.lua b/cocos/scripting/lua-bindings/auto/api/Animation3D.lua index c04f1611bf..1ca8318378 100644 --- a/cocos/scripting/lua-bindings/auto/api/Animation3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Animation3D.lua @@ -4,6 +4,21 @@ -- @extend Ref -- @parent_module cc +-------------------------------- +-- init Animation3D with file name and animation name +-- @function [parent=#Animation3D] initWithFile +-- @param self +-- @param #string filename +-- @param #string animationName +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- init Animation3D from bundle data +-- @function [parent=#Animation3D] init +-- @param self +-- @param #cc.Animation3DData data +-- @return bool#bool ret (return value: bool) + -------------------------------- -- get duration -- @function [parent=#Animation3D] getDuration @@ -18,4 +33,10 @@ -- @param #string animationName -- @return Animation3D#Animation3D ret (return value: cc.Animation3D) +-------------------------------- +-- +-- @function [parent=#Animation3D] Animation3D +-- @param self +-- @return Animation3D#Animation3D self (return value: cc.Animation3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/AnimationFrame.lua b/cocos/scripting/lua-bindings/auto/api/AnimationFrame.lua index 34daedb90b..4271b76d41 100644 --- a/cocos/scripting/lua-bindings/auto/api/AnimationFrame.lua +++ b/cocos/scripting/lua-bindings/auto/api/AnimationFrame.lua @@ -55,6 +55,15 @@ -- @param #map_table userInfo -- @return AnimationFrame#AnimationFrame self (return value: cc.AnimationFrame) +-------------------------------- +-- initializes the animation frame with a spriteframe, number of delay units and a notification user info +-- @function [parent=#AnimationFrame] initWithSpriteFrame +-- @param self +-- @param #cc.SpriteFrame spriteFrame +-- @param #float delayUnits +-- @param #map_table userInfo +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates the animation frame with a spriteframe, number of delay units and a notification user info.
-- param spriteFrame The animation frame with a spriteframe.
@@ -68,4 +77,10 @@ -- @param #map_table userInfo -- @return AnimationFrame#AnimationFrame ret (return value: cc.AnimationFrame) +-------------------------------- +-- js ctor +-- @function [parent=#AnimationFrame] AnimationFrame +-- @param self +-- @return AnimationFrame#AnimationFrame self (return value: cc.AnimationFrame) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Armature.lua b/cocos/scripting/lua-bindings/auto/api/Armature.lua index f073636a34..35919a874c 100644 --- a/cocos/scripting/lua-bindings/auto/api/Armature.lua +++ b/cocos/scripting/lua-bindings/auto/api/Armature.lua @@ -79,9 +79,8 @@ -- @return BatchNode#BatchNode ret (return value: ccs.BatchNode) -------------------------------- --- @overload self, string --- @overload self -- @overload self, string, ccs.Bone +-- @overload self, string -- @function [parent=#Armature] init -- @param self -- @param #string name @@ -204,6 +203,12 @@ -- @param #float dt -- @return Armature#Armature self (return value: ccs.Armature) +-------------------------------- +-- Init the empty armature +-- @function [parent=#Armature] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Armature] getNodeToParentTransform diff --git a/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua b/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua index 3e61b13eb4..749818d36a 100644 --- a/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua +++ b/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua @@ -60,4 +60,12 @@ -- @param #string storagePath -- @return AssetsManagerEx#AssetsManagerEx ret (return value: cc.AssetsManagerEx) +-------------------------------- +-- +-- @function [parent=#AssetsManagerEx] AssetsManagerEx +-- @param self +-- @param #string manifestUrl +-- @param #string storagePath +-- @return AssetsManagerEx#AssetsManagerEx self (return value: cc.AssetsManagerEx) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/AsyncTaskPool.lua b/cocos/scripting/lua-bindings/auto/api/AsyncTaskPool.lua index e3fc6b77b5..084c8f0aed 100644 --- a/cocos/scripting/lua-bindings/auto/api/AsyncTaskPool.lua +++ b/cocos/scripting/lua-bindings/auto/api/AsyncTaskPool.lua @@ -23,4 +23,10 @@ -- @param self -- @return AsyncTaskPool#AsyncTaskPool ret (return value: cc.AsyncTaskPool) +-------------------------------- +-- +-- @function [parent=#AsyncTaskPool] AsyncTaskPool +-- @param self +-- @return AsyncTaskPool#AsyncTaskPool self (return value: cc.AsyncTaskPool) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/AtlasNode.lua b/cocos/scripting/lua-bindings/auto/api/AtlasNode.lua index 1fa3648524..0ec869e186 100644 --- a/cocos/scripting/lua-bindings/auto/api/AtlasNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/AtlasNode.lua @@ -11,6 +11,16 @@ -- @param self -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) +-------------------------------- +-- Initializes an AtlasNode with an Atlas file the width and height of each item and the quantity of items to render +-- @function [parent=#AtlasNode] initWithTileFile +-- @param self +-- @param #string tile +-- @param #int tileWidth +-- @param #int tileHeight +-- @param #int itemsToRender +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#AtlasNode] getTexture @@ -61,6 +71,16 @@ -- @param #cc.Texture2D texture -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) +-------------------------------- +-- Initializes an AtlasNode with a texture the width and height of each item measured in points and the quantity of items to render +-- @function [parent=#AtlasNode] initWithTexture +-- @param self +-- @param #cc.Texture2D texture +-- @param #int tileWidth +-- @param #int tileHeight +-- @param #int itemsToRender +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#AtlasNode] setQuadsToDraw @@ -124,4 +144,10 @@ -- @param #unsigned char opacity -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) +-------------------------------- +-- +-- @function [parent=#AtlasNode] AtlasNode +-- @param self +-- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua index 51aaf581b7..6b3a7a8de7 100644 --- a/cocos/scripting/lua-bindings/auto/api/AttachNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/AttachNode.lua @@ -39,4 +39,10 @@ -- @param self -- @return mat4_table#mat4_table ret (return value: mat4_table) +-------------------------------- +-- +-- @function [parent=#AttachNode] AttachNode +-- @param self +-- @return AttachNode#AttachNode self (return value: cc.AttachNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/BatchNode.lua b/cocos/scripting/lua-bindings/auto/api/BatchNode.lua index 6a511c84e4..c95ef4fb03 100644 --- a/cocos/scripting/lua-bindings/auto/api/BatchNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/BatchNode.lua @@ -4,12 +4,6 @@ -- @extend Node -- @parent_module ccs --------------------------------- --- js NA --- @function [parent=#BatchNode] init --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#BatchNode] create @@ -26,6 +20,12 @@ -- @param #int tag -- @return BatchNode#BatchNode self (return value: ccs.BatchNode) +-------------------------------- +-- js NA +-- @function [parent=#BatchNode] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#BatchNode] draw diff --git a/cocos/scripting/lua-bindings/auto/api/BezierBy.lua b/cocos/scripting/lua-bindings/auto/api/BezierBy.lua index ed37b6b69c..f065cf828e 100644 --- a/cocos/scripting/lua-bindings/auto/api/BezierBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/BezierBy.lua @@ -4,6 +4,15 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action with a duration and a bezier configuration
+-- param t in seconds +-- @function [parent=#BezierBy] initWithDuration +-- @param self +-- @param #float t +-- @param #cc._ccBezierConfig c +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#BezierBy] startWithTarget @@ -30,4 +39,10 @@ -- @param #float time -- @return BezierBy#BezierBy self (return value: cc.BezierBy) +-------------------------------- +-- +-- @function [parent=#BezierBy] BezierBy +-- @param self +-- @return BezierBy#BezierBy self (return value: cc.BezierBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/BezierTo.lua b/cocos/scripting/lua-bindings/auto/api/BezierTo.lua index abd930d1d6..630d31ee1c 100644 --- a/cocos/scripting/lua-bindings/auto/api/BezierTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/BezierTo.lua @@ -4,6 +4,14 @@ -- @extend BezierBy -- @parent_module cc +-------------------------------- +-- param t In seconds. +-- @function [parent=#BezierTo] initWithDuration +-- @param self +-- @param #float t +-- @param #cc._ccBezierConfig c +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#BezierTo] startWithTarget @@ -23,4 +31,10 @@ -- @param self -- @return BezierTo#BezierTo ret (return value: cc.BezierTo) +-------------------------------- +-- +-- @function [parent=#BezierTo] BezierTo +-- @param self +-- @return BezierTo#BezierTo self (return value: cc.BezierTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/BillBoard.lua b/cocos/scripting/lua-bindings/auto/api/BillBoard.lua index 5c284f759e..b3782dd90c 100644 --- a/cocos/scripting/lua-bindings/auto/api/BillBoard.lua +++ b/cocos/scripting/lua-bindings/auto/api/BillBoard.lua @@ -48,4 +48,10 @@ -- @param #unsigned int parentFlags -- @return BillBoard#BillBoard self (return value: cc.BillBoard) +-------------------------------- +-- +-- @function [parent=#BillBoard] BillBoard +-- @param self +-- @return BillBoard#BillBoard self (return value: cc.BillBoard) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Blink.lua b/cocos/scripting/lua-bindings/auto/api/Blink.lua index 1302b5d217..1d49e087f1 100644 --- a/cocos/scripting/lua-bindings/auto/api/Blink.lua +++ b/cocos/scripting/lua-bindings/auto/api/Blink.lua @@ -4,6 +4,15 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action
+-- param duration in seconds +-- @function [parent=#Blink] initWithDuration +-- @param self +-- @param #float duration +-- @param #int blinks +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates the action.
-- param duration Duration time, in seconds.
@@ -47,4 +56,10 @@ -- @param #float time -- @return Blink#Blink self (return value: cc.Blink) +-------------------------------- +-- +-- @function [parent=#Blink] Blink +-- @param self +-- @return Blink#Blink self (return value: cc.Blink) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Bone.lua b/cocos/scripting/lua-bindings/auto/api/Bone.lua index fedf116d0d..9987c6c34c 100644 --- a/cocos/scripting/lua-bindings/auto/api/Bone.lua +++ b/cocos/scripting/lua-bindings/auto/api/Bone.lua @@ -102,13 +102,13 @@ -- @return Bone#Bone self (return value: ccs.Bone) -------------------------------- --- @overload self, string --- @overload self --- @function [parent=#Bone] init +-- Initializes a Bone with the specified name
+-- param name Bone's name. +-- @function [parent=#Bone] init -- @param self -- @param #string name -- @return bool#bool ret (return value: bool) - + -------------------------------- -- Set parent bone.
-- If parent is NUll, then also remove this bone from armature.
@@ -241,10 +241,9 @@ -------------------------------- -- --- @function [parent=#Bone] updateDisplayedColor +-- @function [parent=#Bone] getNodeToWorldTransform -- @param self --- @param #color3b_table parentColor --- @return Bone#Bone self (return value: ccs.Bone) +-- @return mat4_table#mat4_table ret (return value: mat4_table) -------------------------------- -- @@ -253,12 +252,6 @@ -- @param #int zOrder -- @return Bone#Bone self (return value: ccs.Bone) --------------------------------- --- --- @function [parent=#Bone] getNodeToWorldTransform --- @param self --- @return mat4_table#mat4_table ret (return value: mat4_table) - -------------------------------- -- -- @function [parent=#Bone] update @@ -273,6 +266,19 @@ -- @param #unsigned char parentOpacity -- @return Bone#Bone self (return value: ccs.Bone) +-------------------------------- +-- Initializes an empty Bone with nothing init. +-- @function [parent=#Bone] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#Bone] updateDisplayedColor +-- @param self +-- @param #color3b_table parentColor +-- @return Bone#Bone self (return value: ccs.Bone) + -------------------------------- -- js ctor -- @function [parent=#Bone] Bone diff --git a/cocos/scripting/lua-bindings/auto/api/Button.lua b/cocos/scripting/lua-bindings/auto/api/Button.lua index ad12d1df66..2ff96ab759 100644 --- a/cocos/scripting/lua-bindings/auto/api/Button.lua +++ b/cocos/scripting/lua-bindings/auto/api/Button.lua @@ -4,6 +4,12 @@ -- @extend Widget -- @parent_module ccui +-------------------------------- +-- +-- @function [parent=#Button] getNormalTextureSize +-- @param self +-- @return size_table#size_table ret (return value: size_table) + -------------------------------- -- Query the button title content.
-- return Get the button's title content. @@ -85,6 +91,16 @@ -- @param #int texType -- @return Button#Button self (return value: ccui.Button) +-------------------------------- +-- +-- @function [parent=#Button] init +-- @param self +-- @param #string normalImage +-- @param #string selectedImage +-- @param #string disableImage +-- @param #int texType +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Change the content of button's title.
-- param text The title in std::string. @@ -233,6 +249,12 @@ -- @param self -- @return Node#Node ret (return value: cc.Node) +-------------------------------- +-- +-- @function [parent=#Button] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Button] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/CallFunc.lua b/cocos/scripting/lua-bindings/auto/api/CallFunc.lua index 6c9d4edbcb..56a0db4da0 100644 --- a/cocos/scripting/lua-bindings/auto/api/CallFunc.lua +++ b/cocos/scripting/lua-bindings/auto/api/CallFunc.lua @@ -44,4 +44,10 @@ -- @param self -- @return CallFunc#CallFunc ret (return value: cc.CallFunc) +-------------------------------- +-- +-- @function [parent=#CallFunc] CallFunc +-- @param self +-- @return CallFunc#CallFunc self (return value: cc.CallFunc) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Camera.lua b/cocos/scripting/lua-bindings/auto/api/Camera.lua index cd0429362f..8e5f1c03b2 100644 --- a/cocos/scripting/lua-bindings/auto/api/Camera.lua +++ b/cocos/scripting/lua-bindings/auto/api/Camera.lua @@ -4,6 +4,23 @@ -- @extend Node -- @parent_module cc +-------------------------------- +-- Set the scene,this method shall not be invoke manually +-- @function [parent=#Camera] setScene +-- @param self +-- @param #cc.Scene scene +-- @return Camera#Camera self (return value: cc.Camera) + +-------------------------------- +-- +-- @function [parent=#Camera] initPerspective +-- @param self +-- @param #float fieldOfView +-- @param #float aspectRatio +-- @param #float nearPlane +-- @param #float farPlane +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Gets the camera's projection matrix.
-- return The camera projection matrix. @@ -37,6 +54,12 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- init camera +-- @function [parent=#Camera] initDefault +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Camera] project @@ -75,6 +98,23 @@ -- @param #int flag -- @return Camera#Camera self (return value: cc.Camera) +-------------------------------- +-- +-- @function [parent=#Camera] initOrthographic +-- @param self +-- @param #float zoomX +-- @param #float zoomY +-- @param #float nearPlane +-- @param #float farPlane +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- set additional matrix for the projection matrix, it multiplys mat to projection matrix when called, used by WP8 +-- @function [parent=#Camera] setAdditionalProjection +-- @param self +-- @param #mat4_table mat +-- @return Camera#Camera self (return value: cc.Camera) + -------------------------------- -- get depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default -- @function [parent=#Camera] getDepth @@ -134,4 +174,10 @@ -- @param self -- @return Camera#Camera ret (return value: cc.Camera) +-------------------------------- +-- +-- @function [parent=#Camera] Camera +-- @param self +-- @return Camera#Camera self (return value: cc.Camera) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/CheckBox.lua b/cocos/scripting/lua-bindings/auto/api/CheckBox.lua index 50b6f40b3f..5437482dea 100644 --- a/cocos/scripting/lua-bindings/auto/api/CheckBox.lua +++ b/cocos/scripting/lua-bindings/auto/api/CheckBox.lua @@ -58,6 +58,18 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#CheckBox] init +-- @param self +-- @param #string backGround +-- @param #string backGroundSeleted +-- @param #string cross +-- @param #string backGroundDisabled +-- @param #string frontCrossDisabled +-- @param #int texType +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Load all textures for initializing a checkbox.
-- param background The background image name.
@@ -139,6 +151,12 @@ -- @param self -- @return Node#Node ret (return value: cc.Node) +-------------------------------- +-- +-- @function [parent=#CheckBox] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#CheckBox] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua b/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua index ff3e4e82b4..382bfb603a 100644 --- a/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua @@ -43,6 +43,14 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- Initializes a clipping node with an other node as its stencil.
+-- The stencil node will be retained, and its parent will be set to this clipping node. +-- @function [parent=#ClippingNode] init +-- @param self +-- @param #cc.Node stencil +-- @return bool#bool ret (return value: bool) + -------------------------------- -- The Node to use as a stencil to do the clipping.
-- The stencil node will be retained.
@@ -94,4 +102,10 @@ -- @param #unsigned int parentFlags -- @return ClippingNode#ClippingNode self (return value: cc.ClippingNode) +-------------------------------- +-- Initializes a clipping node without a stencil. +-- @function [parent=#ClippingNode] init +-- @param self +-- @return bool#bool ret (return value: bool) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Control.lua b/cocos/scripting/lua-bindings/auto/api/Control.lua index cce5ab426a..33b609aa68 100644 --- a/cocos/scripting/lua-bindings/auto/api/Control.lua +++ b/cocos/scripting/lua-bindings/auto/api/Control.lua @@ -124,6 +124,12 @@ -- @param #cc.Event event -- @return Control#Control self (return value: cc.Control) +-------------------------------- +-- +-- @function [parent=#Control] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Control] onTouchEnded @@ -140,4 +146,10 @@ -- @param #cc.Event event -- @return bool#bool ret (return value: bool) +-------------------------------- +-- js ctor +-- @function [parent=#Control] Control +-- @param self +-- @return Control#Control self (return value: cc.Control) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ControlButton.lua b/cocos/scripting/lua-bindings/auto/api/ControlButton.lua index 559ba3f823..a1eb4fd4e4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlButton.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlButton.lua @@ -56,6 +56,13 @@ -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) +-------------------------------- +-- +-- @function [parent=#ControlButton] initWithBackgroundSprite +-- @param self +-- @param #ccui.Scale9Sprite sprite +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ControlButton] getTitleTTFSizeForState @@ -106,6 +113,13 @@ -- @param #bool var -- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-------------------------------- +-- +-- @function [parent=#ControlButton] setBackgroundSprite +-- @param self +-- @param #ccui.Scale9Sprite var +-- @return ControlButton#ControlButton self (return value: cc.ControlButton) + -------------------------------- -- Returns the background sprite used for a state.
-- param state The state that uses the background sprite. Possible values are
@@ -121,6 +135,15 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- +-- @function [parent=#ControlButton] initWithTitleAndFontNameAndFontSize +-- @param self +-- @param #string title +-- @param #string fontName +-- @param #float fontSize +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets the font of the label, changes the label to a BMFont if neccessary.
-- param fntFile The name of the font to change to
@@ -210,10 +233,10 @@ -------------------------------- -- --- @function [parent=#ControlButton] setBackgroundSprite +-- @function [parent=#ControlButton] getTitleBMFontForState -- @param self --- @param #ccui.Scale9Sprite var --- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-- @param #int state +-- @return string#string ret (return value: string) -------------------------------- -- @@ -259,10 +282,11 @@ -------------------------------- -- --- @function [parent=#ControlButton] getTitleBMFontForState +-- @function [parent=#ControlButton] initWithLabelAndBackgroundSprite -- @param self --- @param #int state --- @return string#string ret (return value: string) +-- @param #cc.Node label +-- @param #ccui.Scale9Sprite backgroundSprite +-- @return bool#bool ret (return value: bool) -------------------------------- -- @@ -358,6 +382,12 @@ -- @param #unsigned char parentOpacity -- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-------------------------------- +-- +-- @function [parent=#ControlButton] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ControlButton] setHighlighted @@ -379,4 +409,10 @@ -- @param #unsigned char var -- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-------------------------------- +-- js ctor +-- @function [parent=#ControlButton] ControlButton +-- @param self +-- @return ControlButton#ControlButton self (return value: cc.ControlButton) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua b/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua index b93c2a77d8..929b6c693b 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua @@ -31,12 +31,6 @@ -- @param #cc.Sprite var -- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) --------------------------------- --- --- @function [parent=#ControlColourPicker] init --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#ControlColourPicker] setcolourPicker @@ -78,6 +72,12 @@ -- @param #bool bEnabled -- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) +-------------------------------- +-- +-- @function [parent=#ControlColourPicker] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ControlColourPicker] setColor diff --git a/cocos/scripting/lua-bindings/auto/api/DelayTime.lua b/cocos/scripting/lua-bindings/auto/api/DelayTime.lua index 61f50ecbf4..431c0b318a 100644 --- a/cocos/scripting/lua-bindings/auto/api/DelayTime.lua +++ b/cocos/scripting/lua-bindings/auto/api/DelayTime.lua @@ -32,4 +32,10 @@ -- @param self -- @return DelayTime#DelayTime ret (return value: cc.DelayTime) +-------------------------------- +-- +-- @function [parent=#DelayTime] DelayTime +-- @param self +-- @return DelayTime#DelayTime self (return value: cc.DelayTime) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/DirectionLight.lua b/cocos/scripting/lua-bindings/auto/api/DirectionLight.lua index ac1de8fd00..e40dbc6fa1 100644 --- a/cocos/scripting/lua-bindings/auto/api/DirectionLight.lua +++ b/cocos/scripting/lua-bindings/auto/api/DirectionLight.lua @@ -41,4 +41,10 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- +-- @function [parent=#DirectionLight] DirectionLight +-- @param self +-- @return DirectionLight#DirectionLight self (return value: cc.DirectionLight) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/DrawNode.lua b/cocos/scripting/lua-bindings/auto/api/DrawNode.lua index 24536f4b5a..402441ce43 100644 --- a/cocos/scripting/lua-bindings/auto/api/DrawNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/DrawNode.lua @@ -225,4 +225,16 @@ -- @param #unsigned int flags -- @return DrawNode#DrawNode self (return value: cc.DrawNode) +-------------------------------- +-- +-- @function [parent=#DrawNode] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#DrawNode] DrawNode +-- @param self +-- @return DrawNode#DrawNode self (return value: cc.DrawNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBackIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseBackIn.lua index a1d69d275e..f6d464441a 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBackIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBackIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return ActionEase#ActionEase ret (return value: cc.ActionEase) +-------------------------------- +-- +-- @function [parent=#EaseBackIn] EaseBackIn +-- @param self +-- @return EaseBackIn#EaseBackIn self (return value: cc.EaseBackIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBackInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseBackInOut.lua index 1f19f2b33f..46f9e10691 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBackInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBackInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseBackInOut#EaseBackInOut ret (return value: cc.EaseBackInOut) +-------------------------------- +-- +-- @function [parent=#EaseBackInOut] EaseBackInOut +-- @param self +-- @return EaseBackInOut#EaseBackInOut self (return value: cc.EaseBackInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBackOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseBackOut.lua index 76603dbfc0..96a34e5472 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBackOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBackOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return ActionEase#ActionEase ret (return value: cc.ActionEase) +-------------------------------- +-- +-- @function [parent=#EaseBackOut] EaseBackOut +-- @param self +-- @return EaseBackOut#EaseBackOut self (return value: cc.EaseBackOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua b/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua index 3d99b563d6..e009a72331 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua @@ -42,4 +42,10 @@ -- @param self -- @return EaseBezierAction#EaseBezierAction ret (return value: cc.EaseBezierAction) +-------------------------------- +-- +-- @function [parent=#EaseBezierAction] EaseBezierAction +-- @param self +-- @return EaseBezierAction#EaseBezierAction self (return value: cc.EaseBezierAction) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBounceIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseBounceIn.lua index b99a0583d2..bd091b967b 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBounceIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBounceIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseBounce#EaseBounce ret (return value: cc.EaseBounce) +-------------------------------- +-- +-- @function [parent=#EaseBounceIn] EaseBounceIn +-- @param self +-- @return EaseBounceIn#EaseBounceIn self (return value: cc.EaseBounceIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBounceInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseBounceInOut.lua index cadfebe3bb..f9d05a63f0 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBounceInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBounceInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseBounceInOut#EaseBounceInOut ret (return value: cc.EaseBounceInOut) +-------------------------------- +-- +-- @function [parent=#EaseBounceInOut] EaseBounceInOut +-- @param self +-- @return EaseBounceInOut#EaseBounceInOut self (return value: cc.EaseBounceInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseBounceOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseBounceOut.lua index d1cb4f0986..1a0b6121e2 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseBounceOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseBounceOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseBounce#EaseBounce ret (return value: cc.EaseBounce) +-------------------------------- +-- +-- @function [parent=#EaseBounceOut] EaseBounceOut +-- @param self +-- @return EaseBounceOut#EaseBounceOut self (return value: cc.EaseBounceOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseCircleActionIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseCircleActionIn.lua index a1d37f89ff..0e0b442539 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseCircleActionIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseCircleActionIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseCircleActionIn#EaseCircleActionIn ret (return value: cc.EaseCircleActionIn) +-------------------------------- +-- +-- @function [parent=#EaseCircleActionIn] EaseCircleActionIn +-- @param self +-- @return EaseCircleActionIn#EaseCircleActionIn self (return value: cc.EaseCircleActionIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseCircleActionInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseCircleActionInOut.lua index 3d5dab279c..d899e09199 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseCircleActionInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseCircleActionInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseCircleActionInOut#EaseCircleActionInOut ret (return value: cc.EaseCircleActionInOut) +-------------------------------- +-- +-- @function [parent=#EaseCircleActionInOut] EaseCircleActionInOut +-- @param self +-- @return EaseCircleActionInOut#EaseCircleActionInOut self (return value: cc.EaseCircleActionInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseCircleActionOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseCircleActionOut.lua index be855aeac0..e5d5f3430c 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseCircleActionOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseCircleActionOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseCircleActionOut#EaseCircleActionOut ret (return value: cc.EaseCircleActionOut) +-------------------------------- +-- +-- @function [parent=#EaseCircleActionOut] EaseCircleActionOut +-- @param self +-- @return EaseCircleActionOut#EaseCircleActionOut self (return value: cc.EaseCircleActionOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseCubicActionIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseCubicActionIn.lua index 9fc8ddd109..dd9d8045cb 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseCubicActionIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseCubicActionIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseCubicActionIn#EaseCubicActionIn ret (return value: cc.EaseCubicActionIn) +-------------------------------- +-- +-- @function [parent=#EaseCubicActionIn] EaseCubicActionIn +-- @param self +-- @return EaseCubicActionIn#EaseCubicActionIn self (return value: cc.EaseCubicActionIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseCubicActionInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseCubicActionInOut.lua index f7af0db394..c51262f067 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseCubicActionInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseCubicActionInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseCubicActionInOut#EaseCubicActionInOut ret (return value: cc.EaseCubicActionInOut) +-------------------------------- +-- +-- @function [parent=#EaseCubicActionInOut] EaseCubicActionInOut +-- @param self +-- @return EaseCubicActionInOut#EaseCubicActionInOut self (return value: cc.EaseCubicActionInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseCubicActionOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseCubicActionOut.lua index f0c57231b4..c8fd825d54 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseCubicActionOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseCubicActionOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseCubicActionOut#EaseCubicActionOut ret (return value: cc.EaseCubicActionOut) +-------------------------------- +-- +-- @function [parent=#EaseCubicActionOut] EaseCubicActionOut +-- @param self +-- @return EaseCubicActionOut#EaseCubicActionOut self (return value: cc.EaseCubicActionOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseElastic.lua b/cocos/scripting/lua-bindings/auto/api/EaseElastic.lua index 1f43d96576..f2530e020a 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseElastic.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseElastic.lua @@ -12,6 +12,17 @@ -- @param #float fPeriod -- @return EaseElastic#EaseElastic self (return value: cc.EaseElastic) +-------------------------------- +-- brief Initializes the action with the inner action and the period in radians.
+-- param action The pointer of the inner action.
+-- param period Period of the wave in radians. Default is 0.3.
+-- return Return true when the initialization success, otherwise return false. +-- @function [parent=#EaseElastic] initWithAction +-- @param self +-- @param #cc.ActionInterval action +-- @param #float period +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Get period of the wave in radians. Default value is 0.3.
-- return Return the period of the wave in radians. diff --git a/cocos/scripting/lua-bindings/auto/api/EaseElasticIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseElasticIn.lua index 347dc1c96a..732f240ec6 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseElasticIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseElasticIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseElastic#EaseElastic ret (return value: cc.EaseElastic) +-------------------------------- +-- +-- @function [parent=#EaseElasticIn] EaseElasticIn +-- @param self +-- @return EaseElasticIn#EaseElasticIn self (return value: cc.EaseElasticIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseElasticInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseElasticInOut.lua index c330f82841..f5cf09bcbb 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseElasticInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseElasticInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseElasticInOut#EaseElasticInOut ret (return value: cc.EaseElasticInOut) +-------------------------------- +-- +-- @function [parent=#EaseElasticInOut] EaseElasticInOut +-- @param self +-- @return EaseElasticInOut#EaseElasticInOut self (return value: cc.EaseElasticInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseElasticOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseElasticOut.lua index 7e853443cc..69008f9ee6 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseElasticOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseElasticOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseElastic#EaseElastic ret (return value: cc.EaseElastic) +-------------------------------- +-- +-- @function [parent=#EaseElasticOut] EaseElasticOut +-- @param self +-- @return EaseElasticOut#EaseElasticOut self (return value: cc.EaseElasticOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseExponentialIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseExponentialIn.lua index 9f7a513fed..10025634cb 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseExponentialIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseExponentialIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return ActionEase#ActionEase ret (return value: cc.ActionEase) +-------------------------------- +-- +-- @function [parent=#EaseExponentialIn] EaseExponentialIn +-- @param self +-- @return EaseExponentialIn#EaseExponentialIn self (return value: cc.EaseExponentialIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseExponentialInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseExponentialInOut.lua index cf3ebb290d..50a4fb80cd 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseExponentialInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseExponentialInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseExponentialInOut#EaseExponentialInOut ret (return value: cc.EaseExponentialInOut) +-------------------------------- +-- +-- @function [parent=#EaseExponentialInOut] EaseExponentialInOut +-- @param self +-- @return EaseExponentialInOut#EaseExponentialInOut self (return value: cc.EaseExponentialInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseExponentialOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseExponentialOut.lua index cfb95679ae..d6de81a933 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseExponentialOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseExponentialOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return ActionEase#ActionEase ret (return value: cc.ActionEase) +-------------------------------- +-- +-- @function [parent=#EaseExponentialOut] EaseExponentialOut +-- @param self +-- @return EaseExponentialOut#EaseExponentialOut self (return value: cc.EaseExponentialOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseIn.lua index c9ae2120e7..2f6805b514 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseIn.lua @@ -34,4 +34,10 @@ -- @param self -- @return EaseIn#EaseIn ret (return value: cc.EaseIn) +-------------------------------- +-- +-- @function [parent=#EaseIn] EaseIn +-- @param self +-- @return EaseIn#EaseIn self (return value: cc.EaseIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseInOut.lua index 2994b23ff3..ad7b7e7e84 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseInOut.lua @@ -34,4 +34,10 @@ -- @param self -- @return EaseInOut#EaseInOut ret (return value: cc.EaseInOut) +-------------------------------- +-- +-- @function [parent=#EaseInOut] EaseInOut +-- @param self +-- @return EaseInOut#EaseInOut self (return value: cc.EaseInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseOut.lua index 415fd68e43..b17b1fb49f 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseOut.lua @@ -34,4 +34,10 @@ -- @param self -- @return EaseOut#EaseOut ret (return value: cc.EaseOut) +-------------------------------- +-- +-- @function [parent=#EaseOut] EaseOut +-- @param self +-- @return EaseOut#EaseOut self (return value: cc.EaseOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionIn.lua index 1c56ee6cc4..77f6a137aa 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuadraticActionIn#EaseQuadraticActionIn ret (return value: cc.EaseQuadraticActionIn) +-------------------------------- +-- +-- @function [parent=#EaseQuadraticActionIn] EaseQuadraticActionIn +-- @param self +-- @return EaseQuadraticActionIn#EaseQuadraticActionIn self (return value: cc.EaseQuadraticActionIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionInOut.lua index fc4c7978ef..9b05f54e27 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuadraticActionInOut#EaseQuadraticActionInOut ret (return value: cc.EaseQuadraticActionInOut) +-------------------------------- +-- +-- @function [parent=#EaseQuadraticActionInOut] EaseQuadraticActionInOut +-- @param self +-- @return EaseQuadraticActionInOut#EaseQuadraticActionInOut self (return value: cc.EaseQuadraticActionInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionOut.lua index 948ab294d6..37ad7b6922 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuadraticActionOut#EaseQuadraticActionOut ret (return value: cc.EaseQuadraticActionOut) +-------------------------------- +-- +-- @function [parent=#EaseQuadraticActionOut] EaseQuadraticActionOut +-- @param self +-- @return EaseQuadraticActionOut#EaseQuadraticActionOut self (return value: cc.EaseQuadraticActionOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionIn.lua index c42f968e85..80cf04e256 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuarticActionIn#EaseQuarticActionIn ret (return value: cc.EaseQuarticActionIn) +-------------------------------- +-- +-- @function [parent=#EaseQuarticActionIn] EaseQuarticActionIn +-- @param self +-- @return EaseQuarticActionIn#EaseQuarticActionIn self (return value: cc.EaseQuarticActionIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionInOut.lua index 6155717180..021b0d64e7 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuarticActionInOut#EaseQuarticActionInOut ret (return value: cc.EaseQuarticActionInOut) +-------------------------------- +-- +-- @function [parent=#EaseQuarticActionInOut] EaseQuarticActionInOut +-- @param self +-- @return EaseQuarticActionInOut#EaseQuarticActionInOut self (return value: cc.EaseQuarticActionInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionOut.lua index 8bcb0ffb46..445fadc518 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuarticActionOut#EaseQuarticActionOut ret (return value: cc.EaseQuarticActionOut) +-------------------------------- +-- +-- @function [parent=#EaseQuarticActionOut] EaseQuarticActionOut +-- @param self +-- @return EaseQuarticActionOut#EaseQuarticActionOut self (return value: cc.EaseQuarticActionOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionIn.lua index 714c9ad73a..e939791a86 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuinticActionIn#EaseQuinticActionIn ret (return value: cc.EaseQuinticActionIn) +-------------------------------- +-- +-- @function [parent=#EaseQuinticActionIn] EaseQuinticActionIn +-- @param self +-- @return EaseQuinticActionIn#EaseQuinticActionIn self (return value: cc.EaseQuinticActionIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionInOut.lua index 645d7ba705..8703bbf24f 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuinticActionInOut#EaseQuinticActionInOut ret (return value: cc.EaseQuinticActionInOut) +-------------------------------- +-- +-- @function [parent=#EaseQuinticActionInOut] EaseQuinticActionInOut +-- @param self +-- @return EaseQuinticActionInOut#EaseQuinticActionInOut self (return value: cc.EaseQuinticActionInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionOut.lua index 9f2dafaafc..3cbeb0269b 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseQuinticActionOut#EaseQuinticActionOut ret (return value: cc.EaseQuinticActionOut) +-------------------------------- +-- +-- @function [parent=#EaseQuinticActionOut] EaseQuinticActionOut +-- @param self +-- @return EaseQuinticActionOut#EaseQuinticActionOut self (return value: cc.EaseQuinticActionOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseRateAction.lua b/cocos/scripting/lua-bindings/auto/api/EaseRateAction.lua index db384a9e5b..e487a913d7 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseRateAction.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseRateAction.lua @@ -12,6 +12,17 @@ -- @param #float rate -- @return EaseRateAction#EaseRateAction self (return value: cc.EaseRateAction) +-------------------------------- +-- brief Initializes the action with the inner action and the rate parameter.
+-- param pAction The pointer of the inner action.
+-- param fRate The value of the rate parameter.
+-- return Return true when the initialization success, otherwise return false. +-- @function [parent=#EaseRateAction] initWithAction +-- @param self +-- @param #cc.ActionInterval pAction +-- @param #float fRate +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Get the rate value of the ease rate action.
-- return Return the rate value of the ease rate action. diff --git a/cocos/scripting/lua-bindings/auto/api/EaseSineIn.lua b/cocos/scripting/lua-bindings/auto/api/EaseSineIn.lua index 2bdcae15fa..87d107ec3f 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseSineIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseSineIn.lua @@ -32,4 +32,10 @@ -- @param self -- @return ActionEase#ActionEase ret (return value: cc.ActionEase) +-------------------------------- +-- +-- @function [parent=#EaseSineIn] EaseSineIn +-- @param self +-- @return EaseSineIn#EaseSineIn self (return value: cc.EaseSineIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseSineInOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseSineInOut.lua index e33c5966a7..41b4041bab 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseSineInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseSineInOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return EaseSineInOut#EaseSineInOut ret (return value: cc.EaseSineInOut) +-------------------------------- +-- +-- @function [parent=#EaseSineInOut] EaseSineInOut +-- @param self +-- @return EaseSineInOut#EaseSineInOut self (return value: cc.EaseSineInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EaseSineOut.lua b/cocos/scripting/lua-bindings/auto/api/EaseSineOut.lua index 82f7f6ec18..9894eb2a7c 100644 --- a/cocos/scripting/lua-bindings/auto/api/EaseSineOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/EaseSineOut.lua @@ -32,4 +32,10 @@ -- @param self -- @return ActionEase#ActionEase ret (return value: cc.ActionEase) +-------------------------------- +-- +-- @function [parent=#EaseSineOut] EaseSineOut +-- @param self +-- @return EaseSineOut#EaseSineOut self (return value: cc.EaseSineOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Event.lua b/cocos/scripting/lua-bindings/auto/api/Event.lua index eddee7221a..3602ff2aa8 100644 --- a/cocos/scripting/lua-bindings/auto/api/Event.lua +++ b/cocos/scripting/lua-bindings/auto/api/Event.lua @@ -33,4 +33,11 @@ -- @param self -- @return Event#Event self (return value: cc.Event) +-------------------------------- +-- Constructor +-- @function [parent=#Event] Event +-- @param self +-- @param #int type +-- @return Event#Event self (return value: cc.Event) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua b/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua index e5be0a16ef..576c27321b 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua @@ -52,4 +52,19 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- Constructor +-- @function [parent=#EventAssetsManagerEx] EventAssetsManagerEx +-- @param self +-- @param #string eventName +-- @param #cc.AssetsManagerEx manager +-- @param #int code +-- @param #float percent +-- @param #float percentByFile +-- @param #string assetId +-- @param #string message +-- @param #int curle_code +-- @param #int curlm_code +-- @return EventAssetsManagerEx#EventAssetsManagerEx self (return value: cc.EventAssetsManagerEx) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListener.lua b/cocos/scripting/lua-bindings/auto/api/EventListener.lua index 017e73e5f1..4c650ff9d7 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListener.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListener.lua @@ -16,12 +16,6 @@ -- @param #bool enabled -- @return EventListener#EventListener self (return value: cc.EventListener) --------------------------------- --- Clones the listener, its subclasses have to override this method. --- @function [parent=#EventListener] clone --- @param self --- @return EventListener#EventListener ret (return value: cc.EventListener) - -------------------------------- -- Checks whether the listener is enabled.
-- return True if the listenrt is enabled. @@ -29,6 +23,12 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- Clones the listener, its subclasses have to override this method. +-- @function [parent=#EventListener] clone +-- @param self +-- @return EventListener#EventListener ret (return value: cc.EventListener) + -------------------------------- -- Checks whether the listener is available.
-- return True if the listener is available. diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerAcceleration.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerAcceleration.lua index 33760d7da4..83d16b7531 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerAcceleration.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerAcceleration.lua @@ -4,6 +4,13 @@ -- @extend EventListener -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#EventListenerAcceleration] init +-- @param self +-- @param #function callback +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / Overrides -- @function [parent=#EventListenerAcceleration] clone @@ -16,4 +23,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#EventListenerAcceleration] EventListenerAcceleration +-- @param self +-- @return EventListenerAcceleration#EventListenerAcceleration self (return value: cc.EventListenerAcceleration) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua index 3d487d9aa8..e8277a121f 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerAssetsManagerEx.lua @@ -4,6 +4,14 @@ -- @extend EventListenerCustom -- @parent_module cc +-------------------------------- +-- Initializes event with type and callback function +-- @function [parent=#EventListenerAssetsManagerEx] init +-- @param self +-- @param #cc.AssetsManagerEx AssetsManagerEx +-- @param #function callback +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#EventListenerAssetsManagerEx] clone @@ -16,4 +24,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- Constructor +-- @function [parent=#EventListenerAssetsManagerEx] EventListenerAssetsManagerEx +-- @param self +-- @return EventListenerAssetsManagerEx#EventListenerAssetsManagerEx self (return value: cc.EventListenerAssetsManagerEx) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerCustom.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerCustom.lua index c634a11605..371230e830 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerCustom.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerCustom.lua @@ -16,4 +16,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- Constructor +-- @function [parent=#EventListenerCustom] EventListenerCustom +-- @param self +-- @return EventListenerCustom#EventListenerCustom self (return value: cc.EventListenerCustom) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerFocus.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerFocus.lua index 7e6c399722..24d44a1ef7 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerFocus.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerFocus.lua @@ -4,6 +4,12 @@ -- @extend EventListener -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#EventListenerFocus] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / Overrides -- @function [parent=#EventListenerFocus] clone @@ -16,4 +22,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#EventListenerFocus] EventListenerFocus +-- @param self +-- @return EventListenerFocus#EventListenerFocus self (return value: cc.EventListenerFocus) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerKeyboard.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerKeyboard.lua index 9c8fcc5110..06a4a8767a 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerKeyboard.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerKeyboard.lua @@ -4,6 +4,12 @@ -- @extend EventListener -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#EventListenerKeyboard] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / Overrides -- @function [parent=#EventListenerKeyboard] clone @@ -16,4 +22,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#EventListenerKeyboard] EventListenerKeyboard +-- @param self +-- @return EventListenerKeyboard#EventListenerKeyboard self (return value: cc.EventListenerKeyboard) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerMouse.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerMouse.lua index 4015a24615..a1c66086d4 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerMouse.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerMouse.lua @@ -4,6 +4,12 @@ -- @extend EventListener -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#EventListenerMouse] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / Overrides -- @function [parent=#EventListenerMouse] clone @@ -16,4 +22,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#EventListenerMouse] EventListenerMouse +-- @param self +-- @return EventListenerMouse#EventListenerMouse self (return value: cc.EventListenerMouse) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerTouchAllAtOnce.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerTouchAllAtOnce.lua index 3c6425d423..ae33105374 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerTouchAllAtOnce.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerTouchAllAtOnce.lua @@ -4,6 +4,12 @@ -- @extend EventListener -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#EventListenerTouchAllAtOnce] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / Overrides -- @function [parent=#EventListenerTouchAllAtOnce] clone @@ -16,4 +22,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#EventListenerTouchAllAtOnce] EventListenerTouchAllAtOnce +-- @param self +-- @return EventListenerTouchAllAtOnce#EventListenerTouchAllAtOnce self (return value: cc.EventListenerTouchAllAtOnce) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventListenerTouchOneByOne.lua b/cocos/scripting/lua-bindings/auto/api/EventListenerTouchOneByOne.lua index 9677b381ff..5a5a5206a9 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventListenerTouchOneByOne.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventListenerTouchOneByOne.lua @@ -19,6 +19,12 @@ -- @param #bool needSwallow -- @return EventListenerTouchOneByOne#EventListenerTouchOneByOne self (return value: cc.EventListenerTouchOneByOne) +-------------------------------- +-- +-- @function [parent=#EventListenerTouchOneByOne] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / Overrides -- @function [parent=#EventListenerTouchOneByOne] clone @@ -31,4 +37,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#EventListenerTouchOneByOne] EventListenerTouchOneByOne +-- @param self +-- @return EventListenerTouchOneByOne#EventListenerTouchOneByOne self (return value: cc.EventListenerTouchOneByOne) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeIn.lua b/cocos/scripting/lua-bindings/auto/api/FadeIn.lua index 56fdad29d9..41d310ef17 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeIn.lua @@ -39,4 +39,10 @@ -- @param self -- @return FadeTo#FadeTo ret (return value: cc.FadeTo) +-------------------------------- +-- +-- @function [parent=#FadeIn] FadeIn +-- @param self +-- @return FadeIn#FadeIn self (return value: cc.FadeIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeOut.lua b/cocos/scripting/lua-bindings/auto/api/FadeOut.lua index af0956e800..e25f43baf2 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeOut.lua @@ -38,4 +38,10 @@ -- @param self -- @return FadeTo#FadeTo ret (return value: cc.FadeTo) +-------------------------------- +-- +-- @function [parent=#FadeOut] FadeOut +-- @param self +-- @return FadeOut#FadeOut self (return value: cc.FadeOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeOutBLTiles.lua b/cocos/scripting/lua-bindings/auto/api/FadeOutBLTiles.lua index db4a3312a9..188296af88 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeOutBLTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeOutBLTiles.lua @@ -29,4 +29,10 @@ -- @param #float time -- @return float#float ret (return value: float) +-------------------------------- +-- +-- @function [parent=#FadeOutBLTiles] FadeOutBLTiles +-- @param self +-- @return FadeOutBLTiles#FadeOutBLTiles self (return value: cc.FadeOutBLTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeOutDownTiles.lua b/cocos/scripting/lua-bindings/auto/api/FadeOutDownTiles.lua index f4fcd0b74e..1542945397 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeOutDownTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeOutDownTiles.lua @@ -29,4 +29,10 @@ -- @param #float time -- @return float#float ret (return value: float) +-------------------------------- +-- +-- @function [parent=#FadeOutDownTiles] FadeOutDownTiles +-- @param self +-- @return FadeOutDownTiles#FadeOutDownTiles self (return value: cc.FadeOutDownTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua b/cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua index bb18c5e6ad..687e487ed1 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua @@ -65,4 +65,10 @@ -- @param #float time -- @return FadeOutTRTiles#FadeOutTRTiles self (return value: cc.FadeOutTRTiles) +-------------------------------- +-- +-- @function [parent=#FadeOutTRTiles] FadeOutTRTiles +-- @param self +-- @return FadeOutTRTiles#FadeOutTRTiles self (return value: cc.FadeOutTRTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua b/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua index 65465948da..ab0d1c58e9 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua @@ -37,4 +37,10 @@ -- @param #float time -- @return float#float ret (return value: float) +-------------------------------- +-- +-- @function [parent=#FadeOutUpTiles] FadeOutUpTiles +-- @param self +-- @return FadeOutUpTiles#FadeOutUpTiles self (return value: cc.FadeOutUpTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FadeTo.lua b/cocos/scripting/lua-bindings/auto/api/FadeTo.lua index da89a78b98..5e80bf9c5d 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeTo.lua @@ -4,6 +4,15 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action with duration and opacity
+-- param duration in seconds +-- @function [parent=#FadeTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #unsigned char opacity +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates an action with duration and opacity.
-- param duration Duration time, in seconds.
@@ -41,4 +50,10 @@ -- @param #float time -- @return FadeTo#FadeTo self (return value: cc.FadeTo) +-------------------------------- +-- +-- @function [parent=#FadeTo] FadeTo +-- @param self +-- @return FadeTo#FadeTo self (return value: cc.FadeTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FileUtils.lua b/cocos/scripting/lua-bindings/auto/api/FileUtils.lua index fad17b87d0..d85eb6101d 100644 --- a/cocos/scripting/lua-bindings/auto/api/FileUtils.lua +++ b/cocos/scripting/lua-bindings/auto/api/FileUtils.lua @@ -274,6 +274,16 @@ -- @param #string relativeFile -- @return string#string ret (return value: string) +-------------------------------- +-- Windows fopen can't support UTF-8 filename
+-- Need convert all parameters fopen and other 3rd-party libs
+-- param filename std::string name file for convertation from utf-8
+-- return std::string ansi filename in current locale +-- @function [parent=#FileUtils] getSuitableFOpen +-- @param self +-- @param #string filenameUtf8 +-- @return string#string ret (return value: string) + -------------------------------- -- Sets writable path. -- @function [parent=#FileUtils] setWritablePath diff --git a/cocos/scripting/lua-bindings/auto/api/FlipX.lua b/cocos/scripting/lua-bindings/auto/api/FlipX.lua index d4aec03f60..3a7a1df020 100644 --- a/cocos/scripting/lua-bindings/auto/api/FlipX.lua +++ b/cocos/scripting/lua-bindings/auto/api/FlipX.lua @@ -4,6 +4,13 @@ -- @extend ActionInstant -- @parent_module cc +-------------------------------- +-- init the action +-- @function [parent=#FlipX] initWithFlipX +-- @param self +-- @param #bool x +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create the action.
-- param x Flips the sprite horizontally if true.
@@ -32,4 +39,10 @@ -- @param self -- @return FlipX#FlipX ret (return value: cc.FlipX) +-------------------------------- +-- +-- @function [parent=#FlipX] FlipX +-- @param self +-- @return FlipX#FlipX self (return value: cc.FlipX) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FlipX3D.lua b/cocos/scripting/lua-bindings/auto/api/FlipX3D.lua index 5c110b9dd8..62c0c8d802 100644 --- a/cocos/scripting/lua-bindings/auto/api/FlipX3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/FlipX3D.lua @@ -4,6 +4,26 @@ -- @extend Grid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes an action with duration and grid size.
+-- param gridSize Specify the grid size of the FlipX3D action.
+-- param duration Specify the duration of the FlipX3D action. It's a value in seconds.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#FlipX3D] initWithSize +-- @param self +-- @param #size_table gridSize +-- @param #float duration +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- brief Initializes an action with duration.
+-- param duration Specify the duration of the FlipX3D action. It's a value in seconds.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#FlipX3D] initWithDuration +-- @param self +-- @param #float duration +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create the action with duration.
-- param duration Specify the duration of the FilpX3D action. It's a value in seconds.
@@ -26,4 +46,10 @@ -- @param #float time -- @return FlipX3D#FlipX3D self (return value: cc.FlipX3D) +-------------------------------- +-- +-- @function [parent=#FlipX3D] FlipX3D +-- @param self +-- @return FlipX3D#FlipX3D self (return value: cc.FlipX3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FlipY.lua b/cocos/scripting/lua-bindings/auto/api/FlipY.lua index a5249b575d..fc7452ec9c 100644 --- a/cocos/scripting/lua-bindings/auto/api/FlipY.lua +++ b/cocos/scripting/lua-bindings/auto/api/FlipY.lua @@ -4,6 +4,13 @@ -- @extend ActionInstant -- @parent_module cc +-------------------------------- +-- init the action +-- @function [parent=#FlipY] initWithFlipY +-- @param self +-- @param #bool y +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create the action.
-- param y Flips the sprite vertically if true.
@@ -32,4 +39,10 @@ -- @param self -- @return FlipY#FlipY ret (return value: cc.FlipY) +-------------------------------- +-- +-- @function [parent=#FlipY] FlipY +-- @param self +-- @return FlipY#FlipY self (return value: cc.FlipY) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/FlipY3D.lua b/cocos/scripting/lua-bindings/auto/api/FlipY3D.lua index 1ae5c1f211..a22abc7bf0 100644 --- a/cocos/scripting/lua-bindings/auto/api/FlipY3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/FlipY3D.lua @@ -26,4 +26,10 @@ -- @param #float time -- @return FlipY3D#FlipY3D self (return value: cc.FlipY3D) +-------------------------------- +-- +-- @function [parent=#FlipY3D] FlipY3D +-- @param self +-- @return FlipY3D#FlipY3D self (return value: cc.FlipY3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Follow.lua b/cocos/scripting/lua-bindings/auto/api/Follow.lua index 22f7b57f6a..742c0f4f2f 100644 --- a/cocos/scripting/lua-bindings/auto/api/Follow.lua +++ b/cocos/scripting/lua-bindings/auto/api/Follow.lua @@ -12,6 +12,17 @@ -- @param #bool value -- @return Follow#Follow self (return value: cc.Follow) +-------------------------------- +-- Initializes the action with a set boundary or with no boundary.
+-- param followedNode The node to be followed.
+-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work
+-- with no boundary. +-- @function [parent=#Follow] initWithTarget +-- @param self +-- @param #cc.Node followedNode +-- @param #rect_table rect +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Return boundarySet.
-- return Return boundarySet. @@ -62,4 +73,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- js ctor +-- @function [parent=#Follow] Follow +-- @param self +-- @return Follow#Follow self (return value: cc.Follow) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/GridAction.lua b/cocos/scripting/lua-bindings/auto/api/GridAction.lua index ebb385306a..a22d4f0fc4 100644 --- a/cocos/scripting/lua-bindings/auto/api/GridAction.lua +++ b/cocos/scripting/lua-bindings/auto/api/GridAction.lua @@ -11,6 +11,17 @@ -- @param self -- @return GridBase#GridBase ret (return value: cc.GridBase) +-------------------------------- +-- brief Initializes the action with size and duration.
+-- param duration The duration of the GridAction. It's a value in seconds.
+-- param gridSize The size of the GridAction should be.
+-- return Return true when the initialization success, otherwise return false. +-- @function [parent=#GridAction] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#GridAction] startWithTarget diff --git a/cocos/scripting/lua-bindings/auto/api/HBox.lua b/cocos/scripting/lua-bindings/auto/api/HBox.lua index 2270c8036f..e50ec6d8bd 100644 --- a/cocos/scripting/lua-bindings/auto/api/HBox.lua +++ b/cocos/scripting/lua-bindings/auto/api/HBox.lua @@ -4,6 +4,13 @@ -- @extend Layout -- @parent_module ccui +-------------------------------- +-- +-- @function [parent=#HBox] initWithSize +-- @param self +-- @param #size_table size +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, size_table -- @overload self @@ -12,6 +19,12 @@ -- @param #size_table size -- @return HBox#HBox ret (return value: ccui.HBox) +-------------------------------- +-- +-- @function [parent=#HBox] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Default constructor
-- js ctor
diff --git a/cocos/scripting/lua-bindings/auto/api/Hide.lua b/cocos/scripting/lua-bindings/auto/api/Hide.lua index eaf0a678f3..3d31b8d7db 100644 --- a/cocos/scripting/lua-bindings/auto/api/Hide.lua +++ b/cocos/scripting/lua-bindings/auto/api/Hide.lua @@ -30,4 +30,10 @@ -- @param self -- @return ActionInstant#ActionInstant ret (return value: cc.ActionInstant) +-------------------------------- +-- +-- @function [parent=#Hide] Hide +-- @param self +-- @return Hide#Hide self (return value: cc.Hide) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ImageView.lua b/cocos/scripting/lua-bindings/auto/api/ImageView.lua index 61c84a2538..ce23c347e8 100644 --- a/cocos/scripting/lua-bindings/auto/api/ImageView.lua +++ b/cocos/scripting/lua-bindings/auto/api/ImageView.lua @@ -14,6 +14,14 @@ -- @param #int texType -- @return ImageView#ImageView self (return value: ccui.ImageView) +-------------------------------- +-- +-- @function [parent=#ImageView] init +-- @param self +-- @param #string imageFileName +-- @param #int texType +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Enable scale9 renderer.
-- param enabled Set to true will use scale9 renderer, false otherwise. @@ -75,6 +83,12 @@ -- @param self -- @return Node#Node ret (return value: cc.Node) +-------------------------------- +-- +-- @function [parent=#ImageView] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ImageView] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/JumpBy.lua b/cocos/scripting/lua-bindings/auto/api/JumpBy.lua index 167aa0df79..6497d1dea1 100644 --- a/cocos/scripting/lua-bindings/auto/api/JumpBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/JumpBy.lua @@ -4,6 +4,17 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action
+-- param duration in seconds +-- @function [parent=#JumpBy] initWithDuration +-- @param self +-- @param #float duration +-- @param #vec2_table position +-- @param #float height +-- @param #int jumps +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates the action.
-- param duration Duration time, in seconds.
@@ -45,4 +56,10 @@ -- @param #float time -- @return JumpBy#JumpBy self (return value: cc.JumpBy) +-------------------------------- +-- +-- @function [parent=#JumpBy] JumpBy +-- @param self +-- @return JumpBy#JumpBy self (return value: cc.JumpBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua b/cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua index 57eb0b775d..9a18e87256 100644 --- a/cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua @@ -4,6 +4,36 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Set the ampliture rate of the effect.
+-- param amplitudeRate The value of amplitude rate will be set. +-- @function [parent=#JumpTiles3D] setAmplitudeRate +-- @param self +-- @param #float amplitudeRate +-- @return JumpTiles3D#JumpTiles3D self (return value: cc.JumpTiles3D) + +-------------------------------- +-- brief Initializes the action with the number of jumps, the sin amplitude, the grid size and the duration.
+-- param duration Specify the duration of the JumpTiles3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param numberOfJumps Specify the jump tiles count.
+-- param amplitude Specify the amplitude of the JumpTiles3D action.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#JumpTiles3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int numberOfJumps +-- @param #float amplitude +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- brief Get the amplitude of the effect.
+-- return Return the amplitude of the effect. +-- @function [parent=#JumpTiles3D] getAmplitude +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- brief Get the amplitude rate of the effect.
-- return Return the amplitude rate of the effect. @@ -19,21 +49,6 @@ -- @param #float amplitude -- @return JumpTiles3D#JumpTiles3D self (return value: cc.JumpTiles3D) --------------------------------- --- brief Set the ampliture rate of the effect.
--- param amplitudeRate The value of amplitude rate will be set. --- @function [parent=#JumpTiles3D] setAmplitudeRate --- @param self --- @param #float amplitudeRate --- @return JumpTiles3D#JumpTiles3D self (return value: cc.JumpTiles3D) - --------------------------------- --- brief Get the amplitude of the effect.
--- return Return the amplitude of the effect. --- @function [parent=#JumpTiles3D] getAmplitude --- @param self --- @return float#float ret (return value: float) - -------------------------------- -- brief Create the action with the number of jumps, the sin amplitude, the grid size and the duration.
-- param duration Specify the duration of the JumpTiles3D action. It's a value in seconds.
@@ -62,4 +77,10 @@ -- @param #float time -- @return JumpTiles3D#JumpTiles3D self (return value: cc.JumpTiles3D) +-------------------------------- +-- +-- @function [parent=#JumpTiles3D] JumpTiles3D +-- @param self +-- @return JumpTiles3D#JumpTiles3D self (return value: cc.JumpTiles3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/JumpTo.lua b/cocos/scripting/lua-bindings/auto/api/JumpTo.lua index bb6faf2ca4..b120247a27 100644 --- a/cocos/scripting/lua-bindings/auto/api/JumpTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/JumpTo.lua @@ -4,6 +4,17 @@ -- @extend JumpBy -- @parent_module cc +-------------------------------- +-- initializes the action
+-- param duration In seconds. +-- @function [parent=#JumpTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #vec2_table position +-- @param #float height +-- @param #int jumps +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates the action.
-- param duration Duration time, in seconds.
@@ -38,4 +49,10 @@ -- @param self -- @return JumpTo#JumpTo ret (return value: cc.JumpTo) +-------------------------------- +-- +-- @function [parent=#JumpTo] JumpTo +-- @param self +-- @return JumpTo#JumpTo self (return value: cc.JumpTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua b/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua index 05555c7610..afb6e1b2ea 100644 --- a/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua +++ b/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua @@ -55,4 +55,10 @@ -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- +-- @function [parent=#LabelAtlas] LabelAtlas +-- @param self +-- @return LabelAtlas#LabelAtlas self (return value: cc.LabelAtlas) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Layer.lua b/cocos/scripting/lua-bindings/auto/api/Layer.lua index 8b1a51a55a..579d137133 100644 --- a/cocos/scripting/lua-bindings/auto/api/Layer.lua +++ b/cocos/scripting/lua-bindings/auto/api/Layer.lua @@ -11,10 +11,22 @@ -- @param self -- @return Layer#Layer ret (return value: cc.Layer) +-------------------------------- +-- +-- @function [parent=#Layer] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Layer] getDescription -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- +-- @function [parent=#Layer] Layer +-- @param self +-- @return Layer#Layer self (return value: cc.Layer) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/LayerColor.lua b/cocos/scripting/lua-bindings/auto/api/LayerColor.lua index a9b096ecc8..f3051a1aae 100644 --- a/cocos/scripting/lua-bindings/auto/api/LayerColor.lua +++ b/cocos/scripting/lua-bindings/auto/api/LayerColor.lua @@ -22,14 +22,6 @@ -- @param self -- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) --------------------------------- --- Change height in Points.
--- param h The height of layer. --- @function [parent=#LayerColor] changeHeight --- @param self --- @param #float h --- @return LayerColor#LayerColor self (return value: cc.LayerColor) - -------------------------------- -- code
-- When this function bound into js or lua,the parameter will be changed
@@ -49,6 +41,24 @@ -- @param #float w -- @return LayerColor#LayerColor self (return value: cc.LayerColor) +-------------------------------- +-- @overload self, color4b_table +-- @overload self, color4b_table, float, float +-- @function [parent=#LayerColor] initWithColor +-- @param self +-- @param #color4b_table color +-- @param #float width +-- @param #float height +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- Change height in Points.
+-- param h The height of layer. +-- @function [parent=#LayerColor] changeHeight +-- @param self +-- @param #float h +-- @return LayerColor#LayerColor self (return value: cc.LayerColor) + -------------------------------- -- @overload self, color4b_table, float, float -- @overload self @@ -69,6 +79,12 @@ -- @param #unsigned int flags -- @return LayerColor#LayerColor self (return value: cc.LayerColor) +-------------------------------- +-- +-- @function [parent=#LayerColor] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#LayerColor] getDescription @@ -82,4 +98,10 @@ -- @param #size_table var -- @return LayerColor#LayerColor self (return value: cc.LayerColor) +-------------------------------- +-- +-- @function [parent=#LayerColor] LayerColor +-- @param self +-- @return LayerColor#LayerColor self (return value: cc.LayerColor) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua b/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua index 66b255c0c8..2d9f133b4e 100644 --- a/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua +++ b/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua @@ -74,6 +74,16 @@ -- @param #color3b_table endColor -- @return LayerGradient#LayerGradient self (return value: cc.LayerGradient) +-------------------------------- +-- @overload self, color4b_table, color4b_table, vec2_table +-- @overload self, color4b_table, color4b_table +-- @function [parent=#LayerGradient] initWithColor +-- @param self +-- @param #color4b_table start +-- @param #color4b_table end +-- @param #vec2_table v +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Returns the end color of the gradient.
-- return The end color. @@ -107,10 +117,22 @@ -- @param #vec2_table v -- @return LayerGradient#LayerGradient ret (return value: cc.LayerGradient) +-------------------------------- +-- +-- @function [parent=#LayerGradient] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#LayerGradient] getDescription -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- +-- @function [parent=#LayerGradient] LayerGradient +-- @param self +-- @return LayerGradient#LayerGradient self (return value: cc.LayerGradient) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/LayerMultiplex.lua b/cocos/scripting/lua-bindings/auto/api/LayerMultiplex.lua index a1c8cd791d..4b3854ada6 100644 --- a/cocos/scripting/lua-bindings/auto/api/LayerMultiplex.lua +++ b/cocos/scripting/lua-bindings/auto/api/LayerMultiplex.lua @@ -4,6 +4,14 @@ -- @extend Layer -- @parent_module cc +-------------------------------- +-- initializes a MultiplexLayer with an array of layers
+-- since v2.1 +-- @function [parent=#LayerMultiplex] initWithArray +-- @param self +-- @param #array_table arrayOfLayers +-- @return bool#bool ret (return value: bool) + -------------------------------- -- release the current layer and switches to another layer indexed by n.
-- The current (old) layer will be removed from it's parent with 'cleanup=true'.
@@ -30,10 +38,22 @@ -- @param #int n -- @return LayerMultiplex#LayerMultiplex self (return value: cc.LayerMultiplex) +-------------------------------- +-- +-- @function [parent=#LayerMultiplex] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#LayerMultiplex] getDescription -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- js ctor +-- @function [parent=#LayerMultiplex] LayerMultiplex +-- @param self +-- @return LayerMultiplex#LayerMultiplex self (return value: cc.LayerMultiplex) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Layout.lua b/cocos/scripting/lua-bindings/auto/api/Layout.lua index 4fd83e3178..820860e004 100644 --- a/cocos/scripting/lua-bindings/auto/api/Layout.lua +++ b/cocos/scripting/lua-bindings/auto/api/Layout.lua @@ -316,6 +316,12 @@ -- @param #bool cleanup -- @return Layout#Layout self (return value: ccui.Layout) +-------------------------------- +-- +-- @function [parent=#Layout] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Default constructor
-- js ctor
diff --git a/cocos/scripting/lua-bindings/auto/api/Lens3D.lua b/cocos/scripting/lua-bindings/auto/api/Lens3D.lua index 004787619d..064e734bf0 100644 --- a/cocos/scripting/lua-bindings/auto/api/Lens3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Lens3D.lua @@ -4,14 +4,6 @@ -- @extend Grid3DAction -- @parent_module cc --------------------------------- --- brief Set the center position of lens effect.
--- param position The center position will be set. --- @function [parent=#Lens3D] setPosition --- @param self --- @param #vec2_table position --- @return Lens3D#Lens3D self (return value: cc.Lens3D) - -------------------------------- -- brief Set whether lens is concave.
-- param concave Whether lens is concave. @@ -20,6 +12,21 @@ -- @param #bool concave -- @return Lens3D#Lens3D self (return value: cc.Lens3D) +-------------------------------- +-- brief Initializes the action with center position, radius, grid size and duration.
+-- param duration Specify the duration of the Lens3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param position Specify the center position of the lens effect.
+-- param radius Specify the radius of the lens effect.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#Lens3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #vec2_table position +-- @param #float radius +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Set the value of lens effect.
-- param lensEffect The value of lens effect will be set. @@ -28,13 +35,6 @@ -- @param #float lensEffect -- @return Lens3D#Lens3D self (return value: cc.Lens3D) --------------------------------- --- brief Get the center position of lens effect.
--- return The center position of lens effect. --- @function [parent=#Lens3D] getPosition --- @param self --- @return vec2_table#vec2_table ret (return value: vec2_table) - -------------------------------- -- brief Get the value of lens effect. Default value is 0.7.
-- return The value of lens effect. @@ -42,6 +42,21 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- brief Set the center position of lens effect.
+-- param position The center position will be set. +-- @function [parent=#Lens3D] setPosition +-- @param self +-- @param #vec2_table position +-- @return Lens3D#Lens3D self (return value: cc.Lens3D) + +-------------------------------- +-- brief Get the center position of lens effect.
+-- return The center position of lens effect. +-- @function [parent=#Lens3D] getPosition +-- @param self +-- @return vec2_table#vec2_table ret (return value: vec2_table) + -------------------------------- -- brief Create the action with center position, radius, a grid size and duration.
-- param duration Specify the duration of the Lens3D action. It's a value in seconds.
@@ -70,4 +85,10 @@ -- @param #float time -- @return Lens3D#Lens3D self (return value: cc.Lens3D) +-------------------------------- +-- +-- @function [parent=#Lens3D] Lens3D +-- @param self +-- @return Lens3D#Lens3D self (return value: cc.Lens3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Liquid.lua b/cocos/scripting/lua-bindings/auto/api/Liquid.lua index 34e8ba0c9e..1c3fe8dd6a 100644 --- a/cocos/scripting/lua-bindings/auto/api/Liquid.lua +++ b/cocos/scripting/lua-bindings/auto/api/Liquid.lua @@ -4,6 +4,36 @@ -- @extend Grid3DAction -- @parent_module cc +-------------------------------- +-- brief Set the ampliture rate of the effect.
+-- param amplitudeRate The value of amplitude rate will be set. +-- @function [parent=#Liquid] setAmplitudeRate +-- @param self +-- @param #float amplitudeRate +-- @return Liquid#Liquid self (return value: cc.Liquid) + +-------------------------------- +-- brief Initializes the action with amplitude, grid size, waves count and duration.
+-- param duration Specify the duration of the Liquid action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param waves Specify the waves count of the Liquid action.
+-- param amplitude Specify the amplitude of the Liquid action.
+-- return If the initialization sucess, return true; otherwise, return false. +-- @function [parent=#Liquid] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int waves +-- @param #float amplitude +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- brief Get the amplitude of the effect.
+-- return Return the amplitude of the effect. +-- @function [parent=#Liquid] getAmplitude +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- brief Get the amplitude rate of the effect.
-- return Return the amplitude rate of the effect. @@ -19,21 +49,6 @@ -- @param #float amplitude -- @return Liquid#Liquid self (return value: cc.Liquid) --------------------------------- --- brief Set the ampliture rate of the effect.
--- param amplitudeRate The value of amplitude rate will be set. --- @function [parent=#Liquid] setAmplitudeRate --- @param self --- @param #float amplitudeRate --- @return Liquid#Liquid self (return value: cc.Liquid) - --------------------------------- --- brief Get the amplitude of the effect.
--- return Return the amplitude of the effect. --- @function [parent=#Liquid] getAmplitude --- @param self --- @return float#float ret (return value: float) - -------------------------------- -- brief Create the action with amplitude, grid size, waves count and duration.
-- param duration Specify the duration of the Liquid action. It's a value in seconds.
@@ -62,4 +77,10 @@ -- @param #float time -- @return Liquid#Liquid self (return value: cc.Liquid) +-------------------------------- +-- +-- @function [parent=#Liquid] Liquid +-- @param self +-- @return Liquid#Liquid self (return value: cc.Liquid) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ListView.lua b/cocos/scripting/lua-bindings/auto/api/ListView.lua index 039d642788..14ea4b5978 100644 --- a/cocos/scripting/lua-bindings/auto/api/ListView.lua +++ b/cocos/scripting/lua-bindings/auto/api/ListView.lua @@ -214,6 +214,12 @@ -- @param #bool cleaup -- @return ListView#ListView self (return value: ccui.ListView) +-------------------------------- +-- +-- @function [parent=#ListView] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Default constructor
-- js ctor
diff --git a/cocos/scripting/lua-bindings/auto/api/Menu.lua b/cocos/scripting/lua-bindings/auto/api/Menu.lua index 796dc85bab..0c16d34052 100644 --- a/cocos/scripting/lua-bindings/auto/api/Menu.lua +++ b/cocos/scripting/lua-bindings/auto/api/Menu.lua @@ -4,6 +4,13 @@ -- @extend Layer -- @parent_module cc +-------------------------------- +-- initializes a Menu with a NSArray of MenuItem objects +-- @function [parent=#Menu] initWithArray +-- @param self +-- @param #array_table arrayOfItems +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Set whether the menu is visible.
-- The default value is true, a menu is default to visible.
@@ -75,6 +82,12 @@ -- @param #bool cleanup -- @return Menu#Menu self (return value: cc.Menu) +-------------------------------- +-- initializes an empty Menu +-- @function [parent=#Menu] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Menu] setOpacityModifyRGB @@ -88,4 +101,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- js ctor +-- @function [parent=#Menu] Menu +-- @param self +-- @return Menu#Menu self (return value: cc.Menu) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItem.lua b/cocos/scripting/lua-bindings/auto/api/MenuItem.lua index 7d2af73f00..00cdee3c3c 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItem.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItem.lua @@ -53,4 +53,10 @@ -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- js ctor +-- @function [parent=#MenuItem] MenuItem +-- @param self +-- @return MenuItem#MenuItem self (return value: cc.MenuItem) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItemAtlasFont.lua b/cocos/scripting/lua-bindings/auto/api/MenuItemAtlasFont.lua index 620ca3f118..66c6e6ae31 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItemAtlasFont.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItemAtlasFont.lua @@ -4,4 +4,22 @@ -- @extend MenuItemLabel -- @parent_module cc +-------------------------------- +-- Initializes a menu item from a string and atlas with a target/selector. +-- @function [parent=#MenuItemAtlasFont] initWithString +-- @param self +-- @param #string value +-- @param #string charMapFile +-- @param #int itemWidth +-- @param #int itemHeight +-- @param #char startCharMap +-- @param #function callback +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- js ctor +-- @function [parent=#MenuItemAtlasFont] MenuItemAtlasFont +-- @param self +-- @return MenuItemAtlasFont#MenuItemAtlasFont self (return value: cc.MenuItemAtlasFont) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua b/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua index bfe0a7f05c..6bcf79a5d5 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua @@ -4,14 +4,6 @@ -- @extend MenuItemLabel -- @parent_module cc --------------------------------- --- get font size .
--- js getFontSize
--- js NA --- @function [parent=#MenuItemFont] getFontSizeObj --- @param self --- @return int#int ret (return value: int) - -------------------------------- -- Returns the name of the Font.
-- js getFontNameObj
@@ -20,17 +12,6 @@ -- @param self -- @return string#string ret (return value: string) --------------------------------- --- Set font size.
--- c++ can not overload static and non-static member functions with the same parameter types.
--- so change the name to setFontSizeObj.
--- js setFontSize
--- js NA --- @function [parent=#MenuItemFont] setFontSizeObj --- @param self --- @param #int size --- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont) - -------------------------------- -- Set the font name .
-- c++ can not overload static and non-static member functions with the same parameter types.
@@ -42,6 +23,33 @@ -- @param #string name -- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont) +-------------------------------- +-- Initializes a menu item from a string with a target/selector. +-- @function [parent=#MenuItemFont] initWithString +-- @param self +-- @param #string value +-- @param #function callback +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- get font size .
+-- js getFontSize
+-- js NA +-- @function [parent=#MenuItemFont] getFontSizeObj +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- Set font size.
+-- c++ can not overload static and non-static member functions with the same parameter types.
+-- so change the name to setFontSizeObj.
+-- js setFontSize
+-- js NA +-- @function [parent=#MenuItemFont] setFontSizeObj +-- @param self +-- @param #int size +-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont) + -------------------------------- -- Set the default font name. -- @function [parent=#MenuItemFont] setFontName @@ -68,4 +76,10 @@ -- @param #int size -- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont) +-------------------------------- +-- js ctor +-- @function [parent=#MenuItemFont] MenuItemFont +-- @param self +-- @return MenuItemFont#MenuItemFont self (return value: cc.MenuItemFont) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItemImage.lua b/cocos/scripting/lua-bindings/auto/api/MenuItemImage.lua index 4843ebd4bf..ec164aafd7 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItemImage.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItemImage.lua @@ -25,4 +25,26 @@ -- @param #cc.SpriteFrame frame -- @return MenuItemImage#MenuItemImage self (return value: cc.MenuItemImage) +-------------------------------- +-- +-- @function [parent=#MenuItemImage] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- Initializes a menu item with a normal, selected and disabled image with a callable object. +-- @function [parent=#MenuItemImage] initWithNormalImage +-- @param self +-- @param #string normalImage +-- @param #string selectedImage +-- @param #string disabledImage +-- @param #function callback +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- js ctor +-- @function [parent=#MenuItemImage] MenuItemImage +-- @param self +-- @return MenuItemImage#MenuItemImage self (return value: cc.MenuItemImage) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItemLabel.lua b/cocos/scripting/lua-bindings/auto/api/MenuItemLabel.lua index dd591a5e3b..2e3a3fd8ba 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItemLabel.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItemLabel.lua @@ -4,6 +4,13 @@ -- @extend MenuItem -- @parent_module cc +-------------------------------- +-- Sets the label that is rendered. +-- @function [parent=#MenuItemLabel] setLabel +-- @param self +-- @param #cc.Node node +-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel) + -------------------------------- -- Gets the color that will be used to disable the item. -- @function [parent=#MenuItemLabel] getDisabledColor @@ -18,11 +25,12 @@ -- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel) -------------------------------- --- Sets the label that is rendered. --- @function [parent=#MenuItemLabel] setLabel +-- Initializes a MenuItemLabel with a Label, target and selector. +-- @function [parent=#MenuItemLabel] initWithLabel -- @param self --- @param #cc.Node node --- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel) +-- @param #cc.Node label +-- @param #function callback +-- @return bool#bool ret (return value: bool) -------------------------------- -- Sets the color that will be used to disable the item. @@ -62,4 +70,10 @@ -- @param self -- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel) +-------------------------------- +-- js ctor +-- @function [parent=#MenuItemLabel] MenuItemLabel +-- @param self +-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItemSprite.lua b/cocos/scripting/lua-bindings/auto/api/MenuItemSprite.lua index 4f49e7cae5..a62615ce5e 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItemSprite.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItemSprite.lua @@ -32,6 +32,16 @@ -- @param #cc.Node image -- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite) +-------------------------------- +-- Initializes a menu item with a normal, selected and disabled image with a callable object. +-- @function [parent=#MenuItemSprite] initWithNormalSprite +-- @param self +-- @param #cc.Node normalSprite +-- @param #cc.Node selectedSprite +-- @param #cc.Node disabledSprite +-- @param #function callback +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets the image used when the item is selected. -- @function [parent=#MenuItemSprite] setSelectedImage @@ -63,4 +73,10 @@ -- @param self -- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite) +-------------------------------- +-- +-- @function [parent=#MenuItemSprite] MenuItemSprite +-- @param self +-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MenuItemToggle.lua b/cocos/scripting/lua-bindings/auto/api/MenuItemToggle.lua index cd47ff89b4..573f7ef26b 100644 --- a/cocos/scripting/lua-bindings/auto/api/MenuItemToggle.lua +++ b/cocos/scripting/lua-bindings/auto/api/MenuItemToggle.lua @@ -11,6 +11,13 @@ -- @param #array_table items -- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle) +-------------------------------- +-- Initializes a menu item with a item. +-- @function [parent=#MenuItemToggle] initWithItem +-- @param self +-- @param #cc.MenuItem item +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Gets the index of the selected item. -- @function [parent=#MenuItemToggle] getSelectedIndex @@ -62,4 +69,10 @@ -- @param self -- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle) +-------------------------------- +-- js ctor +-- @function [parent=#MenuItemToggle] MenuItemToggle +-- @param self +-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Mesh.lua b/cocos/scripting/lua-bindings/auto/api/Mesh.lua index 2fef75fef8..637b9dfbb7 100644 --- a/cocos/scripting/lua-bindings/auto/api/Mesh.lua +++ b/cocos/scripting/lua-bindings/auto/api/Mesh.lua @@ -4,12 +4,6 @@ -- @extend Ref -- @parent_module cc --------------------------------- --- get mesh vertex attribute count --- @function [parent=#Mesh] getMeshVertexAttribCount --- @param self --- @return long#long ret (return value: long) - -------------------------------- -- @overload self, cc.Texture2D -- @overload self, string @@ -24,19 +18,6 @@ -- @param self -- @return Texture2D#Texture2D ret (return value: cc.Texture2D) --------------------------------- --- name getter --- @function [parent=#Mesh] getName --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- --- @function [parent=#Mesh] setBlendFunc --- @param self --- @param #cc.BlendFunc blendFunc --- @return Mesh#Mesh self (return value: cc.Mesh) - -------------------------------- -- get per vertex size in bytes -- @function [parent=#Mesh] getVertexSizeInBytes @@ -44,10 +25,10 @@ -- @return int#int ret (return value: int) -------------------------------- --- --- @function [parent=#Mesh] getBlendFunc +-- name getter +-- @function [parent=#Mesh] getName -- @param self --- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) +-- @return string#string ret (return value: string) -------------------------------- -- get MeshVertexAttribute by index @@ -56,12 +37,72 @@ -- @param #int idx -- @return MeshVertexAttrib#MeshVertexAttrib ret (return value: cc.MeshVertexAttrib) +-------------------------------- +-- calculate the AABB of the mesh
+-- note the AABB is in the local space, not the world space +-- @function [parent=#Mesh] calculateAABB +-- @param self +-- @return Mesh#Mesh self (return value: cc.Mesh) + +-------------------------------- +-- +-- @function [parent=#Mesh] getBlendFunc +-- @param self +-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) + +-------------------------------- +-- name setter +-- @function [parent=#Mesh] setName +-- @param self +-- @param #string name +-- @return Mesh#Mesh self (return value: cc.Mesh) + -------------------------------- -- -- @function [parent=#Mesh] isVisible -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- Bind to the MeshCommand +-- @function [parent=#Mesh] bindMeshCommand +-- @param self +-- @return Mesh#Mesh self (return value: cc.Mesh) + +-------------------------------- +-- Mesh index data setter +-- @function [parent=#Mesh] setMeshIndexData +-- @param self +-- @param #cc.MeshIndexData indexdata +-- @return Mesh#Mesh self (return value: cc.Mesh) + +-------------------------------- +-- get mesh vertex attribute count +-- @function [parent=#Mesh] getMeshVertexAttribCount +-- @param self +-- @return long#long ret (return value: long) + +-------------------------------- +-- +-- @function [parent=#Mesh] setBlendFunc +-- @param self +-- @param #cc.BlendFunc blendFunc +-- @return Mesh#Mesh self (return value: cc.Mesh) + +-------------------------------- +-- skin setter +-- @function [parent=#Mesh] setSkin +-- @param self +-- @param #cc.MeshSkin skin +-- @return Mesh#Mesh self (return value: cc.Mesh) + +-------------------------------- +-- Set the default GL program. +-- @function [parent=#Mesh] setGLProgramState +-- @param self +-- @param #cc.GLProgramState glProgramState +-- @return Mesh#Mesh self (return value: cc.Mesh) + -------------------------------- -- visible getter and setter -- @function [parent=#Mesh] setVisible @@ -69,4 +110,10 @@ -- @param #bool visible -- @return Mesh#Mesh self (return value: cc.Mesh) +-------------------------------- +-- +-- @function [parent=#Mesh] Mesh +-- @param self +-- @return Mesh#Mesh self (return value: cc.Mesh) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MotionStreak.lua b/cocos/scripting/lua-bindings/auto/api/MotionStreak.lua index 60fc8a8a9c..62bf2e9e33 100644 --- a/cocos/scripting/lua-bindings/auto/api/MotionStreak.lua +++ b/cocos/scripting/lua-bindings/auto/api/MotionStreak.lua @@ -75,6 +75,18 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- @overload self, float, float, float, color3b_table, cc.Texture2D +-- @overload self, float, float, float, color3b_table, string +-- @function [parent=#MotionStreak] initWithFade +-- @param self +-- @param #float fade +-- @param #float minSeg +-- @param #float stroke +-- @param #color3b_table color +-- @param #string path +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets fast mode or not.
-- param bFastMode True if enabled fast mode. @@ -179,4 +191,10 @@ -- @param #float y -- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak) +-------------------------------- +-- +-- @function [parent=#MotionStreak] MotionStreak +-- @param self +-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MoveBy.lua b/cocos/scripting/lua-bindings/auto/api/MoveBy.lua index b501993ae0..c149748434 100644 --- a/cocos/scripting/lua-bindings/auto/api/MoveBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/MoveBy.lua @@ -4,6 +4,15 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- @overload self, float, vec3_table +-- @overload self, float, vec2_table +-- @function [parent=#MoveBy] initWithDuration +-- @param self +-- @param #float duration +-- @param #vec2_table deltaPosition +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, vec3_table -- @overload self, float, vec2_table @@ -39,4 +48,10 @@ -- @param #float time -- @return MoveBy#MoveBy self (return value: cc.MoveBy) +-------------------------------- +-- +-- @function [parent=#MoveBy] MoveBy +-- @param self +-- @return MoveBy#MoveBy self (return value: cc.MoveBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/MoveTo.lua b/cocos/scripting/lua-bindings/auto/api/MoveTo.lua index ad9838a54d..da0af04f59 100644 --- a/cocos/scripting/lua-bindings/auto/api/MoveTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/MoveTo.lua @@ -4,6 +4,15 @@ -- @extend MoveBy -- @parent_module cc +-------------------------------- +-- @overload self, float, vec3_table +-- @overload self, float, vec2_table +-- @function [parent=#MoveTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #vec2_table position +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, vec3_table -- @overload self, float, vec2_table @@ -32,4 +41,10 @@ -- @param self -- @return MoveTo#MoveTo ret (return value: cc.MoveTo) +-------------------------------- +-- +-- @function [parent=#MoveTo] MoveTo +-- @param self +-- @return MoveTo#MoveTo self (return value: cc.MoveTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Node.lua b/cocos/scripting/lua-bindings/auto/api/Node.lua index d44dbf8c9a..7fd90a8953 100644 --- a/cocos/scripting/lua-bindings/auto/api/Node.lua +++ b/cocos/scripting/lua-bindings/auto/api/Node.lua @@ -117,6 +117,12 @@ -- @param #unsigned char parentOpacity -- @return Node#Node self (return value: cc.Node) +-------------------------------- +-- +-- @function [parent=#Node] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- get & set camera mask, the node is visible by the camera whose camera flag & node's camera mask is true -- @function [parent=#Node] getCameraMask @@ -1142,4 +1148,10 @@ -- @param self -- @return Node#Node ret (return value: cc.Node) +-------------------------------- +-- +-- @function [parent=#Node] Node +-- @param self +-- @return Node#Node self (return value: cc.Node) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/NodeGrid.lua b/cocos/scripting/lua-bindings/auto/api/NodeGrid.lua index f98aead2c5..c2a5eb3619 100644 --- a/cocos/scripting/lua-bindings/auto/api/NodeGrid.lua +++ b/cocos/scripting/lua-bindings/auto/api/NodeGrid.lua @@ -43,4 +43,10 @@ -- @param #unsigned int parentFlags -- @return NodeGrid#NodeGrid self (return value: cc.NodeGrid) +-------------------------------- +-- +-- @function [parent=#NodeGrid] NodeGrid +-- @param self +-- @return NodeGrid#NodeGrid self (return value: cc.NodeGrid) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua b/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua index 845ac8d461..1488464d11 100644 --- a/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua +++ b/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua @@ -4,6 +4,19 @@ -- @extend ActionCamera -- @parent_module cc +-------------------------------- +-- Initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. +-- @function [parent=#OrbitCamera] initWithDuration +-- @param self +-- @param #float t +-- @param #float radius +-- @param #float deltaRadius +-- @param #float angleZ +-- @param #float deltaAngleZ +-- @param #float angleX +-- @param #float deltaAngleX +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX.
-- param t Duration in seconds.
@@ -45,4 +58,10 @@ -- @param #float time -- @return OrbitCamera#OrbitCamera self (return value: cc.OrbitCamera) +-------------------------------- +-- js ctor +-- @function [parent=#OrbitCamera] OrbitCamera +-- @param self +-- @return OrbitCamera#OrbitCamera self (return value: cc.OrbitCamera) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/PUParticleSystem3D.lua b/cocos/scripting/lua-bindings/auto/api/PUParticleSystem3D.lua index 7c6c46d720..fd0a4e634d 100644 --- a/cocos/scripting/lua-bindings/auto/api/PUParticleSystem3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/PUParticleSystem3D.lua @@ -4,6 +4,13 @@ -- @extend ParticleSystem3D -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#PUParticleSystem3D] initWithFilePath +-- @param self +-- @param #string filePath +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Returns the velocity scale, defined in the particle system, but passed to the technique for convenience. -- @function [parent=#PUParticleSystem3D] getParticleSystemScaleVelocity @@ -29,6 +36,14 @@ -- @param self -- @return unsigned int#unsigned int ret (return value: unsigned int) +-------------------------------- +-- +-- @function [parent=#PUParticleSystem3D] initWithFilePathAndMaterialPath +-- @param self +-- @param #string filePath +-- @param #string materialPath +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#PUParticleSystem3D] clearAllParticles @@ -315,4 +330,10 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- +-- @function [parent=#PUParticleSystem3D] PUParticleSystem3D +-- @param self +-- @return PUParticleSystem3D#PUParticleSystem3D self (return value: cc.PUParticleSystem3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/PageView.lua b/cocos/scripting/lua-bindings/auto/api/PageView.lua index 1b043cf5fb..534b9a6096 100644 --- a/cocos/scripting/lua-bindings/auto/api/PageView.lua +++ b/cocos/scripting/lua-bindings/auto/api/PageView.lua @@ -158,6 +158,12 @@ -- @param #float dt -- @return PageView#PageView self (return value: ccui.PageView) +-------------------------------- +-- +-- @function [parent=#PageView] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#PageView] setLayoutType diff --git a/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua b/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua index 164ddde815..e9e7a3efe3 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua @@ -59,4 +59,13 @@ -- @param #bool cleanup -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) +-------------------------------- +-- Adds a child to the container with a z-order, a parallax ratio and a position offset
+-- It returns self, so you can chain several addChilds.
+-- since v0.8
+-- js ctor +-- @function [parent=#ParallaxNode] ParallaxNode +-- @param self +-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleBatchNode.lua b/cocos/scripting/lua-bindings/auto/api/ParticleBatchNode.lua index 01eba29d2e..4f90eacd17 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleBatchNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleBatchNode.lua @@ -11,6 +11,14 @@ -- @param #cc.Texture2D texture -- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode) +-------------------------------- +-- initializes the particle system with Texture2D, a capacity of particles +-- @function [parent=#ParticleBatchNode] initWithTexture +-- @param self +-- @param #cc.Texture2D tex +-- @param #int capacity +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Disables a particle by inserting a 0'd quad into the texture atlas.
-- param particleIndex The index of the particle. @@ -33,6 +41,14 @@ -- @param #cc.TextureAtlas atlas -- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode) +-------------------------------- +-- initializes the particle system with the name of a file on disk (for a list of supported formats look at the Texture2D class), a capacity of particles +-- @function [parent=#ParticleBatchNode] initWithFile +-- @param self +-- @param #string fileImage +-- @param #int capacity +-- @return bool#bool ret (return value: bool) + -------------------------------- -- code
-- When this function bound into js or lua,the parameter will be changed
@@ -152,4 +168,10 @@ -- @param #bool cleanup -- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleBatchNode] ParticleBatchNode +-- @param self +-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleExplosion.lua b/cocos/scripting/lua-bindings/auto/api/ParticleExplosion.lua index bf1405b2db..54dccffb9e 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleExplosion.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleExplosion.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleExplosion] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleExplosion] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a explosion particle system.
-- return An autoreleased ParticleExplosion object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleExplosion#ParticleExplosion ret (return value: cc.ParticleExplosion) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleExplosion] ParticleExplosion +-- @param self +-- @return ParticleExplosion#ParticleExplosion self (return value: cc.ParticleExplosion) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleFire.lua b/cocos/scripting/lua-bindings/auto/api/ParticleFire.lua index c865e87268..367b18cc58 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleFire.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleFire.lua @@ -21,4 +21,23 @@ -- @param #int numberOfParticles -- @return ParticleFire#ParticleFire ret (return value: cc.ParticleFire) +-------------------------------- +-- +-- @function [parent=#ParticleFire] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleFire] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- js ctor +-- @function [parent=#ParticleFire] ParticleFire +-- @param self +-- @return ParticleFire#ParticleFire self (return value: cc.ParticleFire) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleFireworks.lua b/cocos/scripting/lua-bindings/auto/api/ParticleFireworks.lua index 6d7af18e65..bb1b91e0b2 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleFireworks.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleFireworks.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleFireworks] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleFireworks] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a fireworks particle system.
-- return An autoreleased ParticleFireworks object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleFireworks#ParticleFireworks ret (return value: cc.ParticleFireworks) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleFireworks] ParticleFireworks +-- @param self +-- @return ParticleFireworks#ParticleFireworks self (return value: cc.ParticleFireworks) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleFlower.lua b/cocos/scripting/lua-bindings/auto/api/ParticleFlower.lua index 7a72f5d043..f4200521e4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleFlower.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleFlower.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleFlower] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleFlower] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a flower particle system.
-- return An autoreleased ParticleFlower object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleFlower#ParticleFlower ret (return value: cc.ParticleFlower) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleFlower] ParticleFlower +-- @param self +-- @return ParticleFlower#ParticleFlower self (return value: cc.ParticleFlower) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleGalaxy.lua b/cocos/scripting/lua-bindings/auto/api/ParticleGalaxy.lua index 49d27a0b47..1458c70a94 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleGalaxy.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleGalaxy.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleGalaxy] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleGalaxy] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a galaxy particle system.
-- return An autoreleased ParticleGalaxy object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleGalaxy#ParticleGalaxy ret (return value: cc.ParticleGalaxy) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleGalaxy] ParticleGalaxy +-- @param self +-- @return ParticleGalaxy#ParticleGalaxy self (return value: cc.ParticleGalaxy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua b/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua index 29f8b0b771..00c2fc17aa 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleMeteor] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleMeteor] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a meteor particle system.
-- return An autoreleased ParticleMeteor object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleMeteor#ParticleMeteor ret (return value: cc.ParticleMeteor) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleMeteor] ParticleMeteor +-- @param self +-- @return ParticleMeteor#ParticleMeteor self (return value: cc.ParticleMeteor) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleRain.lua b/cocos/scripting/lua-bindings/auto/api/ParticleRain.lua index 80bdf7523b..2ffad718e4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleRain.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleRain.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleRain] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleRain] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a rain particle system.
-- return An autoreleased ParticleRain object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleRain#ParticleRain ret (return value: cc.ParticleRain) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleRain] ParticleRain +-- @param self +-- @return ParticleRain#ParticleRain self (return value: cc.ParticleRain) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSmoke.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSmoke.lua index 18074235ce..f8b6e07bbc 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSmoke.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSmoke.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleSmoke] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleSmoke] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a smoke particle system.
-- return An autoreleased ParticleSmoke object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleSmoke#ParticleSmoke ret (return value: cc.ParticleSmoke) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleSmoke] ParticleSmoke +-- @param self +-- @return ParticleSmoke#ParticleSmoke self (return value: cc.ParticleSmoke) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSnow.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSnow.lua index 8d76829040..fa37b27cf4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSnow.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSnow.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleSnow] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleSnow] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a snow particle system.
-- return An autoreleased ParticleSnow object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleSnow#ParticleSnow ret (return value: cc.ParticleSnow) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleSnow] ParticleSnow +-- @param self +-- @return ParticleSnow#ParticleSnow self (return value: cc.ParticleSnow) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSpiral.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSpiral.lua index 9b81113a83..fe58276e8f 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSpiral.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSpiral.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleSpiral] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleSpiral] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a spiral particle system.
-- return An autoreleased ParticleSpiral object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleSpiral#ParticleSpiral ret (return value: cc.ParticleSpiral) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleSpiral] ParticleSpiral +-- @param self +-- @return ParticleSpiral#ParticleSpiral self (return value: cc.ParticleSpiral) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSun.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSun.lua index 573032b6a1..500221f140 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSun.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSun.lua @@ -4,6 +4,19 @@ -- @extend ParticleSystemQuad -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#ParticleSun] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ParticleSun] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create a sun particle system.
-- return An autoreleased ParticleSun object. @@ -21,4 +34,10 @@ -- @param #int numberOfParticles -- @return ParticleSun#ParticleSun ret (return value: cc.ParticleSun) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleSun] ParticleSun +-- @param self +-- @return ParticleSun#ParticleSun self (return value: cc.ParticleSun) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua index 5041ce11f1..bc1af5c311 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua @@ -189,6 +189,13 @@ -- @param #float duration -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) +-------------------------------- +-- Initializes a system with a fixed number of particles +-- @function [parent=#ParticleSystem] initWithTotalParticles +-- @param self +-- @param #int numberOfParticles +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ParticleSystem] setTexture @@ -483,6 +490,16 @@ -- @param #float endSpinVar -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) +-------------------------------- +-- initializes a ParticleSystem from a plist file.
+-- This plist files can be created manually or with Particle Designer:
+-- http:particledesigner.71squared.com/
+-- since v0.99.3 +-- @function [parent=#ParticleSystem] initWithFile +-- @param self +-- @param #string plistFile +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Gets the angle variance of each particle.
-- return The angle variance of each particle. @@ -661,6 +678,15 @@ -- @param #float t -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) +-------------------------------- +-- @overload self, map_table, string +-- @overload self, map_table +-- @function [parent=#ParticleSystem] initWithDictionary +-- @param self +-- @param #map_table dictionary +-- @param #string dirname +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Whether or not the particle system removed self on finish.
-- return True if the particle system removed self on finish. @@ -771,6 +797,12 @@ -- @param #float dt -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) +-------------------------------- +-- initializes a ParticleSystem +-- @function [parent=#ParticleSystem] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ParticleSystem] setRotation @@ -778,4 +810,10 @@ -- @param #float newRotation -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleSystem] ParticleSystem +-- @param self +-- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSystem3D.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSystem3D.lua index 4f9adb19ff..51d2580076 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSystem3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSystem3D.lua @@ -5,10 +5,61 @@ -- @parent_module cc -------------------------------- --- --- @function [parent=#ParticleSystem3D] setKeepLocal +-- remove affector by index +-- @function [parent=#ParticleSystem3D] removeAffector -- @param self --- @param #bool keepLocal +-- @param #int index +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- resume particle +-- @function [parent=#ParticleSystem3D] resumeParticleSystem +-- @param self +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- remove all particle affector +-- @function [parent=#ParticleSystem3D] removeAllAffector +-- @param self +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- add particle affector +-- @function [parent=#ParticleSystem3D] addAffector +-- @param self +-- @param #cc.Particle3DAffector affector +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- particle system play control +-- @function [parent=#ParticleSystem3D] startParticleSystem +-- @param self +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- is enabled +-- @function [parent=#ParticleSystem3D] isEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- set emitter for particle system, can set your own particle emitter +-- @function [parent=#ParticleSystem3D] setEmitter +-- @param self +-- @param #cc.Particle3DEmitter emitter +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- +-- @function [parent=#ParticleSystem3D] isKeepLocal +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- Enables or disables the system. +-- @function [parent=#ParticleSystem3D] setEnabled +-- @param self +-- @param #bool enabled -- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) -------------------------------- @@ -23,6 +74,24 @@ -- @param self -- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) +-------------------------------- +-- pause particle +-- @function [parent=#ParticleSystem3D] pauseParticleSystem +-- @param self +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + +-------------------------------- +-- get particle playing state +-- @function [parent=#ParticleSystem3D] getState +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- get alive particles count +-- @function [parent=#ParticleSystem3D] getAliveParticleCount +-- @param self +-- @return int#int ret (return value: int) + -------------------------------- -- set particle quota -- @function [parent=#ParticleSystem3D] setParticleQuota @@ -30,12 +99,6 @@ -- @param #unsigned int quota -- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) --------------------------------- --- particle system play control --- @function [parent=#ParticleSystem3D] startParticleSystem --- @param self --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - -------------------------------- -- override function -- @function [parent=#ParticleSystem3D] setBlendFunc @@ -50,82 +113,19 @@ -- @param #cc.Particle3DRender render -- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) --------------------------------- --- is enabled --- @function [parent=#ParticleSystem3D] isEnabled --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- stop particle -- @function [parent=#ParticleSystem3D] stopParticleSystem -- @param self -- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) --------------------------------- --- Enables or disables the system. --- @function [parent=#ParticleSystem3D] setEnabled --- @param self --- @param #bool enabled --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - --------------------------------- --- set emitter for particle system, can set your own particle emitter --- @function [parent=#ParticleSystem3D] setEmitter --- @param self --- @param #cc.Particle3DEmitter emitter --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - --------------------------------- --- remove affector by index --- @function [parent=#ParticleSystem3D] removeAffector --- @param self --- @param #int index --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - --------------------------------- --- pause particle --- @function [parent=#ParticleSystem3D] pauseParticleSystem --- @param self --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - --------------------------------- --- resume particle --- @function [parent=#ParticleSystem3D] resumeParticleSystem --- @param self --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - --------------------------------- --- get particle playing state --- @function [parent=#ParticleSystem3D] getState --- @param self --- @return int#int ret (return value: int) - -------------------------------- -- --- @function [parent=#ParticleSystem3D] isKeepLocal --- @param self --- @return bool#bool ret (return value: bool) - --------------------------------- --- remove all particle affector --- @function [parent=#ParticleSystem3D] removeAllAffector +-- @function [parent=#ParticleSystem3D] setKeepLocal -- @param self +-- @param #bool keepLocal -- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) --------------------------------- --- add particle affector --- @function [parent=#ParticleSystem3D] addAffector --- @param self --- @param #cc.Particle3DAffector affector --- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) - --------------------------------- --- get alive particles count --- @function [parent=#ParticleSystem3D] getAliveParticleCount --- @param self --- @return int#int ret (return value: int) - -------------------------------- -- override function -- @function [parent=#ParticleSystem3D] draw @@ -142,4 +142,10 @@ -- @param #float delta -- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) +-------------------------------- +-- +-- @function [parent=#ParticleSystem3D] ParticleSystem3D +-- @param self +-- @return ParticleSystem3D#ParticleSystem3D self (return value: cc.ParticleSystem3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSystemQuad.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSystemQuad.lua index df70bbb41b..19d5d07ba6 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSystemQuad.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSystemQuad.lua @@ -61,4 +61,10 @@ -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- js ctor +-- @function [parent=#ParticleSystemQuad] ParticleSystemQuad +-- @param self +-- @return ParticleSystemQuad#ParticleSystemQuad self (return value: cc.ParticleSystemQuad) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Place.lua b/cocos/scripting/lua-bindings/auto/api/Place.lua index a8f7302df1..3fe8375a62 100644 --- a/cocos/scripting/lua-bindings/auto/api/Place.lua +++ b/cocos/scripting/lua-bindings/auto/api/Place.lua @@ -4,6 +4,13 @@ -- @extend ActionInstant -- @parent_module cc +-------------------------------- +-- Initializes a Place action with a position +-- @function [parent=#Place] initWithPosition +-- @param self +-- @param #vec2_table pos +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates a Place action with a position.
-- param pos A certain position.
@@ -32,4 +39,10 @@ -- @param self -- @return Place#Place ret (return value: cc.Place) +-------------------------------- +-- +-- @function [parent=#Place] Place +-- @param self +-- @return Place#Place self (return value: cc.Place) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/PointLight.lua b/cocos/scripting/lua-bindings/auto/api/PointLight.lua index 1dae8049f4..ce2c715234 100644 --- a/cocos/scripting/lua-bindings/auto/api/PointLight.lua +++ b/cocos/scripting/lua-bindings/auto/api/PointLight.lua @@ -36,4 +36,10 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- +-- @function [parent=#PointLight] PointLight +-- @param self +-- @return point_table#point_table self (return value: point_table) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ProgressFromTo.lua b/cocos/scripting/lua-bindings/auto/api/ProgressFromTo.lua index f0be7a49e6..9e75043572 100644 --- a/cocos/scripting/lua-bindings/auto/api/ProgressFromTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/ProgressFromTo.lua @@ -4,6 +4,19 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- brief Initializes the action with a duration, a "from" percentage and a "to" percentage.
+-- param duration Specify the duration of the ProgressFromTo action. It's a value in seconds.
+-- param fromPercentage Specify the source percentage.
+-- param toPercentage Specify the destination percentage.
+-- return If the creation sucess, return true; otherwise, return false. +-- @function [parent=#ProgressFromTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #float fromPercentage +-- @param #float toPercentage +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create and initializes the action with a duration, a "from" percentage and a "to" percentage.
-- param duration Specify the duration of the ProgressFromTo action. It's a value in seconds.
@@ -43,4 +56,10 @@ -- @param #float time -- @return ProgressFromTo#ProgressFromTo self (return value: cc.ProgressFromTo) +-------------------------------- +-- +-- @function [parent=#ProgressFromTo] ProgressFromTo +-- @param self +-- @return ProgressFromTo#ProgressFromTo self (return value: cc.ProgressFromTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ProgressTimer.lua b/cocos/scripting/lua-bindings/auto/api/ProgressTimer.lua index 2c03e3afe3..ee57e10f90 100644 --- a/cocos/scripting/lua-bindings/auto/api/ProgressTimer.lua +++ b/cocos/scripting/lua-bindings/auto/api/ProgressTimer.lua @@ -4,6 +4,13 @@ -- @extend Node -- @parent_module cc +-------------------------------- +-- Initializes a progress timer with the sprite as the shape the timer goes through +-- @function [parent=#ProgressTimer] initWithSprite +-- @param self +-- @param #cc.Sprite sp +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Return the Reverse direction.
-- return If the direction is Anti-clockwise,it will return true. @@ -155,4 +162,10 @@ -- @param self -- @return unsigned char#unsigned char ret (return value: unsigned char) +-------------------------------- +-- js ctor +-- @function [parent=#ProgressTimer] ProgressTimer +-- @param self +-- @return ProgressTimer#ProgressTimer self (return value: cc.ProgressTimer) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ProgressTo.lua b/cocos/scripting/lua-bindings/auto/api/ProgressTo.lua index f6961dddfa..892e0d2b94 100644 --- a/cocos/scripting/lua-bindings/auto/api/ProgressTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/ProgressTo.lua @@ -4,6 +4,17 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- brief Initializes with a duration and destination percentage.
+-- param duration Specify the duration of the ProgressTo action. It's a value in seconds.
+-- param percent Specify the destination percentage.
+-- return If the creation sucess, return true; otherwise, return false. +-- @function [parent=#ProgressTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #float percent +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create and initializes with a duration and a destination percentage.
-- param duration Specify the duration of the ProgressTo action. It's a value in seconds.
@@ -41,4 +52,10 @@ -- @param #float time -- @return ProgressTo#ProgressTo self (return value: cc.ProgressTo) +-------------------------------- +-- +-- @function [parent=#ProgressTo] ProgressTo +-- @param self +-- @return ProgressTo#ProgressTo self (return value: cc.ProgressTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ProtectedNode.lua b/cocos/scripting/lua-bindings/auto/api/ProtectedNode.lua index edd24654f1..e2e1460e66 100644 --- a/cocos/scripting/lua-bindings/auto/api/ProtectedNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/ProtectedNode.lua @@ -135,4 +135,10 @@ -- @param self -- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode) +-------------------------------- +-- +-- @function [parent=#ProtectedNode] ProtectedNode +-- @param self +-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RelativeBox.lua b/cocos/scripting/lua-bindings/auto/api/RelativeBox.lua index 3cd242fa2c..c0eb5d90f0 100644 --- a/cocos/scripting/lua-bindings/auto/api/RelativeBox.lua +++ b/cocos/scripting/lua-bindings/auto/api/RelativeBox.lua @@ -4,6 +4,13 @@ -- @extend Layout -- @parent_module ccui +-------------------------------- +-- +-- @function [parent=#RelativeBox] initWithSize +-- @param self +-- @param #size_table size +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, size_table -- @overload self @@ -12,6 +19,12 @@ -- @param #size_table size -- @return RelativeBox#RelativeBox ret (return value: ccui.RelativeBox) +-------------------------------- +-- +-- @function [parent=#RelativeBox] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Default constructor.
-- js ctor
diff --git a/cocos/scripting/lua-bindings/auto/api/RemoveSelf.lua b/cocos/scripting/lua-bindings/auto/api/RemoveSelf.lua index 97a3c0a7e0..08ac551e64 100644 --- a/cocos/scripting/lua-bindings/auto/api/RemoveSelf.lua +++ b/cocos/scripting/lua-bindings/auto/api/RemoveSelf.lua @@ -4,6 +4,13 @@ -- @extend ActionInstant -- @parent_module cc +-------------------------------- +-- init the action +-- @function [parent=#RemoveSelf] init +-- @param self +-- @param #bool isNeedCleanUp +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Create the action.
-- param isNeedCleanUp Is need to clean up, the default value is true.
@@ -31,4 +38,10 @@ -- @param self -- @return RemoveSelf#RemoveSelf ret (return value: cc.RemoveSelf) +-------------------------------- +-- +-- @function [parent=#RemoveSelf] RemoveSelf +-- @param self +-- @return RemoveSelf#RemoveSelf self (return value: cc.RemoveSelf) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Repeat.lua b/cocos/scripting/lua-bindings/auto/api/Repeat.lua index a8a69defbe..b8e142ee4a 100644 --- a/cocos/scripting/lua-bindings/auto/api/Repeat.lua +++ b/cocos/scripting/lua-bindings/auto/api/Repeat.lua @@ -12,6 +12,14 @@ -- @param #cc.FiniteTimeAction action -- @return Repeat#Repeat self (return value: cc.Repeat) +-------------------------------- +-- initializes a Repeat action. Times is an unsigned integer between 1 and pow(2,30) +-- @function [parent=#Repeat] initWithAction +-- @param self +-- @param #cc.FiniteTimeAction pAction +-- @param #unsigned int times +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Gets the inner action.
-- return The inner action. @@ -68,4 +76,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#Repeat] Repeat +-- @param self +-- @return Repeat#Repeat self (return value: cc.Repeat) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RepeatForever.lua b/cocos/scripting/lua-bindings/auto/api/RepeatForever.lua index c3ca792892..4895459891 100644 --- a/cocos/scripting/lua-bindings/auto/api/RepeatForever.lua +++ b/cocos/scripting/lua-bindings/auto/api/RepeatForever.lua @@ -12,6 +12,13 @@ -- @param #cc.ActionInterval action -- @return RepeatForever#RepeatForever self (return value: cc.RepeatForever) +-------------------------------- +-- initializes the action +-- @function [parent=#RepeatForever] initWithAction +-- @param self +-- @param #cc.ActionInterval action +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Gets the inner action.
-- return The inner action. @@ -60,4 +67,10 @@ -- @param #float dt -- @return RepeatForever#RepeatForever self (return value: cc.RepeatForever) +-------------------------------- +-- +-- @function [parent=#RepeatForever] RepeatForever +-- @param self +-- @return RepeatForever#RepeatForever self (return value: cc.RepeatForever) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ReuseGrid.lua b/cocos/scripting/lua-bindings/auto/api/ReuseGrid.lua index 2fc1bae66d..40f52b871b 100644 --- a/cocos/scripting/lua-bindings/auto/api/ReuseGrid.lua +++ b/cocos/scripting/lua-bindings/auto/api/ReuseGrid.lua @@ -4,6 +4,15 @@ -- @extend ActionInstant -- @parent_module cc +-------------------------------- +-- brief Initializes an action with the number of times that the current grid will be reused.
+-- param times Specify times the grid will be reused.
+-- return If the initialization sucess, return true; otherwise, return false. +-- @function [parent=#ReuseGrid] initWithTimes +-- @param self +-- @param #int times +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create an action with the number of times that the current grid will be reused.
-- param times Specify times the grid will be reused.
@@ -32,4 +41,10 @@ -- @param self -- @return ReuseGrid#ReuseGrid ret (return value: cc.ReuseGrid) +-------------------------------- +-- +-- @function [parent=#ReuseGrid] ReuseGrid +-- @param self +-- @return ReuseGrid#ReuseGrid self (return value: cc.ReuseGrid) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RichText.lua b/cocos/scripting/lua-bindings/auto/api/RichText.lua index a14053d996..172266c84f 100644 --- a/cocos/scripting/lua-bindings/auto/api/RichText.lua +++ b/cocos/scripting/lua-bindings/auto/api/RichText.lua @@ -59,6 +59,12 @@ -- @param #vec2_table pt -- @return RichText#RichText self (return value: ccui.RichText) +-------------------------------- +-- +-- @function [parent=#RichText] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#RichText] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/Ripple3D.lua b/cocos/scripting/lua-bindings/auto/api/Ripple3D.lua index bbcddcfc68..a759c4c4b2 100644 --- a/cocos/scripting/lua-bindings/auto/api/Ripple3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Ripple3D.lua @@ -12,6 +12,25 @@ -- @param #float fAmplitudeRate -- @return Ripple3D#Ripple3D self (return value: cc.Ripple3D) +-------------------------------- +-- brief Initializes the action with center position, radius, number of waves, amplitude, a grid size and duration.
+-- param duration Specify the duration of the Ripple3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param position Specify the center position of the ripple effect.
+-- param radius Specify the radius of the ripple effect.
+-- param waves Specify the waves count of the ripple effect.
+-- param amplitude Specify the amplitude of the ripple effect.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#Ripple3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #vec2_table position +-- @param #float radius +-- @param #unsigned int waves +-- @param #float amplitude +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Get the amplitude rate of ripple effect.
-- return The amplitude rate of ripple effect. @@ -81,4 +100,10 @@ -- @param #float time -- @return Ripple3D#Ripple3D self (return value: cc.Ripple3D) +-------------------------------- +-- +-- @function [parent=#Ripple3D] Ripple3D +-- @param self +-- @return Ripple3D#Ripple3D self (return value: cc.Ripple3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RotateBy.lua b/cocos/scripting/lua-bindings/auto/api/RotateBy.lua index 55b4c2d000..d2c8553f27 100644 --- a/cocos/scripting/lua-bindings/auto/api/RotateBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/RotateBy.lua @@ -4,6 +4,17 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- @overload self, float, float, float +-- @overload self, float, float +-- @overload self, float, vec3_table +-- @function [parent=#RotateBy] initWithDuration +-- @param self +-- @param #float duration +-- @param #float deltaAngleZ_X +-- @param #float deltaAngleZ_Y +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, float, float -- @overload self, float, float @@ -41,4 +52,10 @@ -- @param #float time -- @return RotateBy#RotateBy self (return value: cc.RotateBy) +-------------------------------- +-- +-- @function [parent=#RotateBy] RotateBy +-- @param self +-- @return RotateBy#RotateBy self (return value: cc.RotateBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RotateTo.lua b/cocos/scripting/lua-bindings/auto/api/RotateTo.lua index 9ce04ca45f..2c15c2438d 100644 --- a/cocos/scripting/lua-bindings/auto/api/RotateTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/RotateTo.lua @@ -4,6 +4,16 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- @overload self, float, vec3_table +-- @overload self, float, float, float +-- @function [parent=#RotateTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #float dstAngleX +-- @param #float dstAngleY +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, float -- @overload self, float, float, float @@ -41,4 +51,10 @@ -- @param #float time -- @return RotateTo#RotateTo self (return value: cc.RotateTo) +-------------------------------- +-- +-- @function [parent=#RotateTo] RotateTo +-- @param self +-- @return RotateTo#RotateTo self (return value: cc.RotateTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua b/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua index 0796f9f441..305da3bf3a 100644 --- a/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua +++ b/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua @@ -121,9 +121,8 @@ -- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite) -------------------------------- --- @overload self, cc.Sprite, rect_table, bool, rect_table --- @overload self -- @overload self, cc.Sprite, rect_table, rect_table +-- @overload self, cc.Sprite, rect_table, bool, rect_table -- @overload self, cc.Sprite, rect_table, bool, vec2_table, size_table, rect_table -- @function [parent=#Scale9Sprite] init -- @param self @@ -358,11 +357,9 @@ -------------------------------- -- --- @function [parent=#Scale9Sprite] setCameraMask +-- @function [parent=#Scale9Sprite] init -- @param self --- @param #unsigned short mask --- @param #bool applyChildren --- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite) +-- @return bool#bool ret (return value: bool) -------------------------------- -- @@ -379,6 +376,14 @@ -- @param #float scaleY -- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite) +-------------------------------- +-- +-- @function [parent=#Scale9Sprite] setCameraMask +-- @param self +-- @param #unsigned short mask +-- @param #bool applyChildren +-- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite) + -------------------------------- -- -- @function [parent=#Scale9Sprite] updateDisplayedColor diff --git a/cocos/scripting/lua-bindings/auto/api/ScaleBy.lua b/cocos/scripting/lua-bindings/auto/api/ScaleBy.lua index 6c62e438ef..32f4ef0216 100644 --- a/cocos/scripting/lua-bindings/auto/api/ScaleBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/ScaleBy.lua @@ -35,4 +35,10 @@ -- @param self -- @return ScaleBy#ScaleBy ret (return value: cc.ScaleBy) +-------------------------------- +-- +-- @function [parent=#ScaleBy] ScaleBy +-- @param self +-- @return ScaleBy#ScaleBy self (return value: cc.ScaleBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ScaleTo.lua b/cocos/scripting/lua-bindings/auto/api/ScaleTo.lua index 0b711f5686..7c83ec5ad8 100644 --- a/cocos/scripting/lua-bindings/auto/api/ScaleTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/ScaleTo.lua @@ -4,6 +4,18 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- @overload self, float, float, float +-- @overload self, float, float +-- @overload self, float, float, float, float +-- @function [parent=#ScaleTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #float sx +-- @param #float sy +-- @param #float sz +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, float, float -- @overload self, float, float @@ -42,4 +54,10 @@ -- @param #float time -- @return ScaleTo#ScaleTo self (return value: cc.ScaleTo) +-------------------------------- +-- +-- @function [parent=#ScaleTo] ScaleTo +-- @param self +-- @return ScaleTo#ScaleTo self (return value: cc.ScaleTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Scene.lua b/cocos/scripting/lua-bindings/auto/api/Scene.lua index feab746d08..82f13176e8 100644 --- a/cocos/scripting/lua-bindings/auto/api/Scene.lua +++ b/cocos/scripting/lua-bindings/auto/api/Scene.lua @@ -4,6 +4,12 @@ -- @extend Node -- @parent_module cc +-------------------------------- +-- +-- @function [parent=#Scene] setCameraOrderDirty +-- @param self +-- @return Scene#Scene self (return value: cc.Scene) + -------------------------------- -- Render the scene.
-- param renderer The renderer use to render the scene.
@@ -13,6 +19,20 @@ -- @param #cc.Renderer renderer -- @return Scene#Scene self (return value: cc.Scene) +-------------------------------- +-- +-- @function [parent=#Scene] onProjectionChanged +-- @param self +-- @param #cc.EventCustom event +-- @return Scene#Scene self (return value: cc.Scene) + +-------------------------------- +-- +-- @function [parent=#Scene] initWithSize +-- @param self +-- @param #size_table size +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Get the default camera.
-- js NA
@@ -48,6 +68,12 @@ -- @param #int tag -- @return Scene#Scene self (return value: cc.Scene) +-------------------------------- +-- +-- @function [parent=#Scene] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Scene] getDescription @@ -60,4 +86,10 @@ -- @param self -- @return Scene#Scene self (return value: cc.Scene) +-------------------------------- +-- +-- @function [parent=#Scene] Scene +-- @param self +-- @return Scene#Scene self (return value: cc.Scene) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ScrollView.lua b/cocos/scripting/lua-bindings/auto/api/ScrollView.lua index 6b6b32e146..db1f9aa766 100644 --- a/cocos/scripting/lua-bindings/auto/api/ScrollView.lua +++ b/cocos/scripting/lua-bindings/auto/api/ScrollView.lua @@ -297,6 +297,12 @@ -- @param #string name -- @return ScrollView#ScrollView self (return value: ccui.ScrollView) +-------------------------------- +-- +-- @function [parent=#ScrollView] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ScrollView] getChildByName diff --git a/cocos/scripting/lua-bindings/auto/api/Sequence.lua b/cocos/scripting/lua-bindings/auto/api/Sequence.lua index 27dbe41fe5..64250ea6dd 100644 --- a/cocos/scripting/lua-bindings/auto/api/Sequence.lua +++ b/cocos/scripting/lua-bindings/auto/api/Sequence.lua @@ -4,6 +4,14 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action +-- @function [parent=#Sequence] initWithTwoActions +-- @param self +-- @param #cc.FiniteTimeAction pActionOne +-- @param #cc.FiniteTimeAction pActionTwo +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Sequence] startWithTarget @@ -36,4 +44,10 @@ -- @param #float t -- @return Sequence#Sequence self (return value: cc.Sequence) +-------------------------------- +-- +-- @function [parent=#Sequence] Sequence +-- @param self +-- @return Sequence#Sequence self (return value: cc.Sequence) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua b/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua index 4f3a07d944..9a5a77bee5 100644 --- a/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua @@ -4,6 +4,21 @@ -- @extend Grid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes the action with a range, shake Z vertices, grid size and duration.
+-- param duration Specify the duration of the Shaky3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param range Specify the range of the shaky effect.
+-- param shakeZ Specify whether shake on the z axis.
+-- return If the Initialization sucess, return true; otherwise, return false. +-- @function [parent=#Shaky3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #int range +-- @param #bool shakeZ +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create the action with a range, shake Z vertices, a grid and duration.
-- param initWithDuration Specify the duration of the Shaky3D action. It's a value in seconds.
@@ -32,4 +47,10 @@ -- @param #float time -- @return Shaky3D#Shaky3D self (return value: cc.Shaky3D) +-------------------------------- +-- +-- @function [parent=#Shaky3D] Shaky3D +-- @param self +-- @return Shaky3D#Shaky3D self (return value: cc.Shaky3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ShakyTiles3D.lua b/cocos/scripting/lua-bindings/auto/api/ShakyTiles3D.lua index 055878cd69..42c1ca34a2 100644 --- a/cocos/scripting/lua-bindings/auto/api/ShakyTiles3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/ShakyTiles3D.lua @@ -4,6 +4,21 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes the action with a range, shake Z vertices, grid size and duration.
+-- param duration Specify the duration of the ShakyTiles3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param range Specify the range of the shaky effect.
+-- param shakeZ Specify whether shake on the z axis.
+-- return If the Initialization success, return true; otherwise, return false. +-- @function [parent=#ShakyTiles3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #int range +-- @param #bool shakeZ +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create the action with a range, shake Z vertices, a grid and duration.
-- param duration Specify the duration of the ShakyTiles3D action. It's a value in seconds.
@@ -32,4 +47,10 @@ -- @param #float time -- @return ShakyTiles3D#ShakyTiles3D self (return value: cc.ShakyTiles3D) +-------------------------------- +-- +-- @function [parent=#ShakyTiles3D] ShakyTiles3D +-- @param self +-- @return ShakyTiles3D#ShakyTiles3D self (return value: cc.ShakyTiles3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ShatteredTiles3D.lua b/cocos/scripting/lua-bindings/auto/api/ShatteredTiles3D.lua index 8507ac1efe..7f4c7aadd6 100644 --- a/cocos/scripting/lua-bindings/auto/api/ShatteredTiles3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/ShatteredTiles3D.lua @@ -4,6 +4,21 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes the action with a range, shatter Z vertices, grid size and duration.
+-- param duration Specify the duration of the ShatteredTiles3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param range Specify the range of the shatter effect.
+-- param shatterZ Specify whether shake on the z axis.
+-- return If the Initialization success, return true; otherwise, return false. +-- @function [parent=#ShatteredTiles3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #int range +-- @param #bool shatterZ +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create the action with a range, whether of not to shatter Z vertices, grid size and duration.
-- param duration Specify the duration of the ShatteredTiles3D action. It's a value in seconds.
@@ -32,4 +47,10 @@ -- @param #float time -- @return ShatteredTiles3D#ShatteredTiles3D self (return value: cc.ShatteredTiles3D) +-------------------------------- +-- +-- @function [parent=#ShatteredTiles3D] ShatteredTiles3D +-- @param self +-- @return ShatteredTiles3D#ShatteredTiles3D self (return value: cc.ShatteredTiles3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Show.lua b/cocos/scripting/lua-bindings/auto/api/Show.lua index b5029d7c78..bb382ddd5e 100644 --- a/cocos/scripting/lua-bindings/auto/api/Show.lua +++ b/cocos/scripting/lua-bindings/auto/api/Show.lua @@ -30,4 +30,10 @@ -- @param self -- @return ActionInstant#ActionInstant ret (return value: cc.ActionInstant) +-------------------------------- +-- +-- @function [parent=#Show] Show +-- @param self +-- @return Show#Show self (return value: cc.Show) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua b/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua index 477d162837..25748a2cb1 100644 --- a/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua @@ -4,6 +4,19 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes the action with grid size, random seed and duration.
+-- param duration Specify the duration of the ShuffleTiles action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param seed Specify the random seed.
+-- return If the Initialization success, return true; otherwise, return false. +-- @function [parent=#ShuffleTiles] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int seed +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ShuffleTiles] getDelta @@ -44,4 +57,10 @@ -- @param #float time -- @return ShuffleTiles#ShuffleTiles self (return value: cc.ShuffleTiles) +-------------------------------- +-- +-- @function [parent=#ShuffleTiles] ShuffleTiles +-- @param self +-- @return ShuffleTiles#ShuffleTiles self (return value: cc.ShuffleTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Skeleton3D.lua b/cocos/scripting/lua-bindings/auto/api/Skeleton3D.lua index 353ef40ec2..7b325ac124 100644 --- a/cocos/scripting/lua-bindings/auto/api/Skeleton3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Skeleton3D.lua @@ -4,6 +4,19 @@ -- @extend Ref -- @parent_module cc +-------------------------------- +-- remove all bones +-- @function [parent=#Skeleton3D] removeAllBones +-- @param self +-- @return Skeleton3D#Skeleton3D self (return value: cc.Skeleton3D) + +-------------------------------- +-- add bone +-- @function [parent=#Skeleton3D] addBone +-- @param self +-- @param #cc.Bone3D bone +-- @return Skeleton3D#Skeleton3D self (return value: cc.Skeleton3D) + -------------------------------- -- -- @function [parent=#Skeleton3D] getBoneByName @@ -50,4 +63,10 @@ -- @param self -- @return long#long ret (return value: long) +-------------------------------- +-- +-- @function [parent=#Skeleton3D] Skeleton3D +-- @param self +-- @return Skeleton3D#Skeleton3D self (return value: cc.Skeleton3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua b/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua index fedc7e41d9..546ba3ba1b 100644 --- a/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua +++ b/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua @@ -73,6 +73,12 @@ -- @param #function listener -- @return SkeletonAnimation#SkeletonAnimation self (return value: sp.SkeletonAnimation) +-------------------------------- +-- +-- @function [parent=#SkeletonAnimation] initialize +-- @param self +-- @return SkeletonAnimation#SkeletonAnimation self (return value: sp.SkeletonAnimation) + -------------------------------- -- -- @function [parent=#SkeletonAnimation] clearTracks diff --git a/cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua b/cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua index b261d37719..02c244ef49 100644 --- a/cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua +++ b/cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua @@ -11,19 +11,6 @@ -- @param #float scale -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) --------------------------------- --- --- @function [parent=#SkeletonRenderer] isOpacityModifyRGB --- @param self --- @return bool#bool ret (return value: bool) - --------------------------------- --- --- @function [parent=#SkeletonRenderer] setDebugSlotsEnabled --- @param self --- @param #bool enabled --- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) - -------------------------------- -- -- @function [parent=#SkeletonRenderer] getDebugSlotsEnabled @@ -38,27 +25,28 @@ -------------------------------- -- --- @function [parent=#SkeletonRenderer] setSlotsToSetupPose +-- @function [parent=#SkeletonRenderer] isOpacityModifyRGB -- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#SkeletonRenderer] initWithData +-- @param self +-- @param #spSkeletonData skeletonData +-- @param #bool ownsSkeletonData -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) -------------------------------- -- --- @function [parent=#SkeletonRenderer] getBlendFunc +-- @function [parent=#SkeletonRenderer] setDebugSlotsEnabled -- @param self --- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) +-- @param #bool enabled +-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) --------------------------------- --- @overload self, char --- @overload self, string --- @function [parent=#SkeletonRenderer] setSkin --- @param self --- @param #string skinName --- @return bool#bool ret (return value: bool) - -------------------------------- -- --- @function [parent=#SkeletonRenderer] setToSetupPose +-- @function [parent=#SkeletonRenderer] setSlotsToSetupPose -- @param self -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) @@ -71,16 +59,28 @@ -------------------------------- -- --- @function [parent=#SkeletonRenderer] setDebugBonesEnabled +-- @function [parent=#SkeletonRenderer] setToSetupPose -- @param self --- @param #bool enabled -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) -------------------------------- -- --- @function [parent=#SkeletonRenderer] getSkeleton +-- @function [parent=#SkeletonRenderer] getBlendFunc -- @param self --- @return spSkeleton#spSkeleton ret (return value: spSkeleton) +-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) + +-------------------------------- +-- +-- @function [parent=#SkeletonRenderer] initialize +-- @param self +-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) + +-------------------------------- +-- +-- @function [parent=#SkeletonRenderer] setDebugBonesEnabled +-- @param self +-- @param #bool enabled +-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) -------------------------------- -- @@ -88,6 +88,22 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#SkeletonRenderer] getTimeScale +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @overload self, string, string, float +-- @overload self, string, spAtlas, float +-- @function [parent=#SkeletonRenderer] initWithFile +-- @param self +-- @param #string skeletonDataFile +-- @param #spAtlas atlas +-- @param #float scale +-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) + -------------------------------- -- -- @function [parent=#SkeletonRenderer] setBlendFunc @@ -96,10 +112,18 @@ -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) -------------------------------- --- --- @function [parent=#SkeletonRenderer] getTimeScale +-- @overload self, char +-- @overload self, string +-- @function [parent=#SkeletonRenderer] setSkin -- @param self --- @return float#float ret (return value: float) +-- @param #string skinName +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#SkeletonRenderer] getSkeleton +-- @param self +-- @return spSkeleton#spSkeleton ret (return value: spSkeleton) -------------------------------- -- @overload self, string, string, float @@ -129,4 +153,16 @@ -- @param self -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) +-------------------------------- +-- @overload self, spSkeletonData, bool +-- @overload self +-- @overload self, string, spAtlas, float +-- @overload self, string, string, float +-- @function [parent=#SkeletonRenderer] SkeletonRenderer +-- @param self +-- @param #string skeletonDataFile +-- @param #string atlasFile +-- @param #float scale +-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SkewBy.lua b/cocos/scripting/lua-bindings/auto/api/SkewBy.lua index 7d7770e794..af94959ab9 100644 --- a/cocos/scripting/lua-bindings/auto/api/SkewBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/SkewBy.lua @@ -4,6 +4,15 @@ -- @extend SkewTo -- @parent_module cc +-------------------------------- +-- param t In seconds. +-- @function [parent=#SkewBy] initWithDuration +-- @param self +-- @param #float t +-- @param #float sx +-- @param #float sy +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates the action.
-- param t Duration time, in seconds.
@@ -36,4 +45,10 @@ -- @param self -- @return SkewBy#SkewBy ret (return value: cc.SkewBy) +-------------------------------- +-- +-- @function [parent=#SkewBy] SkewBy +-- @param self +-- @return SkewBy#SkewBy self (return value: cc.SkewBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SkewTo.lua b/cocos/scripting/lua-bindings/auto/api/SkewTo.lua index 2e07f7bbf6..955eeb8eba 100644 --- a/cocos/scripting/lua-bindings/auto/api/SkewTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/SkewTo.lua @@ -4,6 +4,15 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- param t In seconds. +-- @function [parent=#SkewTo] initWithDuration +-- @param self +-- @param #float t +-- @param #float sx +-- @param #float sy +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates the action.
-- param t Duration time, in seconds.
@@ -43,4 +52,10 @@ -- @param #float time -- @return SkewTo#SkewTo self (return value: cc.SkewTo) +-------------------------------- +-- +-- @function [parent=#SkewTo] SkewTo +-- @param self +-- @return SkewTo#SkewTo self (return value: cc.SkewTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Skin.lua b/cocos/scripting/lua-bindings/auto/api/Skin.lua index 26fbed2599..ed9e51567b 100644 --- a/cocos/scripting/lua-bindings/auto/api/Skin.lua +++ b/cocos/scripting/lua-bindings/auto/api/Skin.lua @@ -16,13 +16,6 @@ -- @param self -- @return mat4_table#mat4_table ret (return value: mat4_table) --------------------------------- --- --- @function [parent=#Skin] initWithFile --- @param self --- @param #string filename --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#Skin] getDisplayName @@ -35,13 +28,6 @@ -- @param self -- @return Skin#Skin self (return value: ccs.Skin) --------------------------------- --- --- @function [parent=#Skin] initWithSpriteFrameName --- @param self --- @param #string spriteFrameName --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#Skin] setBone @@ -66,8 +52,11 @@ -------------------------------- -- --- @function [parent=#Skin] updateTransform +-- @function [parent=#Skin] draw -- @param self +-- @param #cc.Renderer renderer +-- @param #mat4_table transform +-- @param #unsigned int flags -- @return Skin#Skin self (return value: ccs.Skin) -------------------------------- @@ -78,11 +67,22 @@ -------------------------------- -- --- @function [parent=#Skin] draw +-- @function [parent=#Skin] initWithSpriteFrameName +-- @param self +-- @param #string spriteFrameName +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#Skin] initWithFile +-- @param self +-- @param #string filename +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#Skin] updateTransform -- @param self --- @param #cc.Renderer renderer --- @param #mat4_table transform --- @param #unsigned int flags -- @return Skin#Skin self (return value: ccs.Skin) -------------------------------- diff --git a/cocos/scripting/lua-bindings/auto/api/Skybox.lua b/cocos/scripting/lua-bindings/auto/api/Skybox.lua index 4567cd1a15..9571a7f59b 100644 --- a/cocos/scripting/lua-bindings/auto/api/Skybox.lua +++ b/cocos/scripting/lua-bindings/auto/api/Skybox.lua @@ -10,6 +10,19 @@ -- @param self -- @return Skybox#Skybox self (return value: cc.Skybox) +-------------------------------- +-- @overload self, string, string, string, string, string, string +-- @overload self +-- @function [parent=#Skybox] init +-- @param self +-- @param #string positive_x +-- @param #string negative_x +-- @param #string positive_y +-- @param #string negative_y +-- @param #string positive_z +-- @param #string negative_z +-- @return bool#bool ret (return value: bool) + -------------------------------- -- texture getter and setter -- @function [parent=#Skybox] setTexture @@ -39,4 +52,10 @@ -- @param #unsigned int flags -- @return Skybox#Skybox self (return value: cc.Skybox) +-------------------------------- +-- Constructor. +-- @function [parent=#Skybox] Skybox +-- @param self +-- @return Skybox#Skybox self (return value: cc.Skybox) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Slider.lua b/cocos/scripting/lua-bindings/auto/api/Slider.lua index a99d8f2025..17c978dabe 100644 --- a/cocos/scripting/lua-bindings/auto/api/Slider.lua +++ b/cocos/scripting/lua-bindings/auto/api/Slider.lua @@ -204,6 +204,12 @@ -- @param #vec2_table pt -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#Slider] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Slider] getVirtualRendererSize diff --git a/cocos/scripting/lua-bindings/auto/api/Spawn.lua b/cocos/scripting/lua-bindings/auto/api/Spawn.lua index 8d347ba025..a70539be42 100644 --- a/cocos/scripting/lua-bindings/auto/api/Spawn.lua +++ b/cocos/scripting/lua-bindings/auto/api/Spawn.lua @@ -4,6 +4,14 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the Spawn action with the 2 actions to spawn +-- @function [parent=#Spawn] initWithTwoActions +-- @param self +-- @param #cc.FiniteTimeAction action1 +-- @param #cc.FiniteTimeAction action2 +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Spawn] startWithTarget @@ -36,4 +44,10 @@ -- @param #float time -- @return Spawn#Spawn self (return value: cc.Spawn) +-------------------------------- +-- +-- @function [parent=#Spawn] Spawn +-- @param self +-- @return Spawn#Spawn self (return value: cc.Spawn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Speed.lua b/cocos/scripting/lua-bindings/auto/api/Speed.lua index aeb14078d0..58bb98e2e1 100644 --- a/cocos/scripting/lua-bindings/auto/api/Speed.lua +++ b/cocos/scripting/lua-bindings/auto/api/Speed.lua @@ -12,6 +12,13 @@ -- @param #cc.ActionInterval action -- @return Speed#Speed self (return value: cc.Speed) +-------------------------------- +-- Return the speed.
+-- return The action speed. +-- @function [parent=#Speed] getSpeed +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- Alter the speed of the inner function in runtime.
-- param speed Alter the speed of the inner function in runtime. @@ -20,6 +27,14 @@ -- @param #float speed -- @return Speed#Speed self (return value: cc.Speed) +-------------------------------- +-- Initializes the action. +-- @function [parent=#Speed] initWithAction +-- @param self +-- @param #cc.ActionInterval action +-- @param #float speed +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Return the interior action.
-- return The interior action. @@ -27,13 +42,6 @@ -- @param self -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) --------------------------------- --- Return the speed.
--- return The action speed. --- @function [parent=#Speed] getSpeed --- @param self --- @return float#float ret (return value: float) - -------------------------------- -- Create the action and set the speed.
-- param action An action.
@@ -83,4 +91,10 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#Speed] Speed +-- @param self +-- @return Speed#Speed self (return value: cc.Speed) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SplitCols.lua b/cocos/scripting/lua-bindings/auto/api/SplitCols.lua index 80741bb871..c8ede7fc2e 100644 --- a/cocos/scripting/lua-bindings/auto/api/SplitCols.lua +++ b/cocos/scripting/lua-bindings/auto/api/SplitCols.lua @@ -4,6 +4,17 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes the action with the number columns and the duration.
+-- param duration Specify the duration of the SplitCols action. It's a value in seconds.
+-- param cols Specify the columns count should be splited.
+-- return If the creation success, return true; otherwise, return false. +-- @function [parent=#SplitCols] initWithDuration +-- @param self +-- @param #float duration +-- @param #unsigned int cols +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create the action with the number of columns and the duration.
-- param duration Specify the duration of the SplitCols action. It's a value in seconds.
@@ -35,4 +46,10 @@ -- @param #float time -- @return SplitCols#SplitCols self (return value: cc.SplitCols) +-------------------------------- +-- +-- @function [parent=#SplitCols] SplitCols +-- @param self +-- @return SplitCols#SplitCols self (return value: cc.SplitCols) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SplitRows.lua b/cocos/scripting/lua-bindings/auto/api/SplitRows.lua index c7d1d92c4c..e4f7b4daaa 100644 --- a/cocos/scripting/lua-bindings/auto/api/SplitRows.lua +++ b/cocos/scripting/lua-bindings/auto/api/SplitRows.lua @@ -4,6 +4,17 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Initializes the action with the number rows and the duration.
+-- param duration Specify the duration of the SplitRows action. It's a value in seconds.
+-- param rows Specify the rows count should be splited.
+-- return If the creation success, return true; otherwise, return false. +-- @function [parent=#SplitRows] initWithDuration +-- @param self +-- @param #float duration +-- @param #unsigned int rows +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Create the action with the number of rows and the duration.
-- param duration Specify the duration of the SplitRows action. It's a value in seconds.
@@ -35,4 +46,10 @@ -- @param #float time -- @return SplitRows#SplitRows self (return value: cc.SplitRows) +-------------------------------- +-- +-- @function [parent=#SplitRows] SplitRows +-- @param self +-- @return SplitRows#SplitRows self (return value: cc.SplitRows) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SpotLight.lua b/cocos/scripting/lua-bindings/auto/api/SpotLight.lua index 1c71ddae16..375c39dc05 100644 --- a/cocos/scripting/lua-bindings/auto/api/SpotLight.lua +++ b/cocos/scripting/lua-bindings/auto/api/SpotLight.lua @@ -104,4 +104,10 @@ -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- +-- @function [parent=#SpotLight] SpotLight +-- @param self +-- @return SpotLight#SpotLight self (return value: cc.SpotLight) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Sprite.lua b/cocos/scripting/lua-bindings/auto/api/Sprite.lua index 28e025956e..8bf0536e3d 100644 --- a/cocos/scripting/lua-bindings/auto/api/Sprite.lua +++ b/cocos/scripting/lua-bindings/auto/api/Sprite.lua @@ -42,6 +42,17 @@ -- @param #bool flippedX -- @return Sprite#Sprite self (return value: cc.Sprite) +-------------------------------- +-- @overload self, cc.Texture2D, rect_table +-- @overload self, cc.Texture2D +-- @overload self, cc.Texture2D, rect_table, bool +-- @function [parent=#Sprite] initWithTexture +-- @param self +-- @param #cc.Texture2D texture +-- @param #rect_table rect +-- @param #bool rotated +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Returns the batch node object if this sprite is rendered by SpriteBatchNode.
-- return The SpriteBatchNode object if this sprite is rendered by SpriteBatchNode,
@@ -73,6 +84,17 @@ -- @param #size_table untrimmedSize -- @return Sprite#Sprite self (return value: cc.Sprite) +-------------------------------- +-- Initializes a sprite with an sprite frame name.
+-- A SpriteFrame will be fetched from the SpriteFrameCache by name.
+-- If the SpriteFrame doesn't exist it will raise an exception.
+-- param spriteFrameName A key string that can fected a volid SpriteFrame from SpriteFrameCache.
+-- return True if the sprite is initialized properly, false otherwise. +-- @function [parent=#Sprite] initWithSpriteFrameName +-- @param self +-- @param #string spriteFrameName +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Returns whether or not a SpriteFrame is being displayed. -- @function [parent=#Sprite] isFrameDisplayed @@ -164,6 +186,15 @@ -- @param self -- @return rect_table#rect_table ret (return value: rect_table) +-------------------------------- +-- @overload self, string, rect_table +-- @overload self, string +-- @function [parent=#Sprite] initWithFile +-- @param self +-- @param #string filename +-- @param #rect_table rect +-- @return bool#bool ret (return value: bool) + -------------------------------- -- / @{/ @name Functions inherited from TextureProtocol.
-- code
@@ -182,6 +213,15 @@ -- @param self -- @return TextureAtlas#TextureAtlas ret (return value: cc.TextureAtlas) +-------------------------------- +-- Initializes a sprite with an SpriteFrame. The texture and rect in SpriteFrame will be applied on this sprite.
+-- param spriteFrame A SpriteFrame object. It should includes a valid texture and a rect.
+-- return True if the sprite is initialized properly, false otherwise. +-- @function [parent=#Sprite] initWithSpriteFrame +-- @param self +-- @param #cc.SpriteFrame spriteFrame +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Returns the flag which indicates whether the sprite is flipped horizontally or not.
-- It only flips the texture of the sprite, and not the texture of the sprite's children.
@@ -307,6 +347,12 @@ -- @param #bool modify -- @return Sprite#Sprite self (return value: cc.Sprite) +-------------------------------- +-- +-- @function [parent=#Sprite] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#Sprite] setRotation @@ -406,4 +452,10 @@ -- @param #bool bVisible -- @return Sprite#Sprite self (return value: cc.Sprite) +-------------------------------- +-- js ctor +-- @function [parent=#Sprite] Sprite +-- @param self +-- @return Sprite#Sprite self (return value: cc.Sprite) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua b/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua index 9957d00bf3..e270479673 100644 --- a/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua @@ -4,12 +4,6 @@ -- @extend Node,BlendProtocol -- @parent_module cc --------------------------------- --- --- @function [parent=#Sprite3D] isForceDepthWrite --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#Sprite3D] setCullFaceEnabled @@ -32,16 +26,16 @@ -- @return unsigned int#unsigned int ret (return value: unsigned int) -------------------------------- --- remove all attach nodes --- @function [parent=#Sprite3D] removeAllAttachNode +-- +-- @function [parent=#Sprite3D] setCullFace -- @param self +-- @param #unsigned int cullFace -- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) -------------------------------- --- --- @function [parent=#Sprite3D] setBlendFunc +-- remove all attach nodes +-- @function [parent=#Sprite3D] removeAllAttachNode -- @param self --- @param #cc.BlendFunc blendFunc -- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) -------------------------------- @@ -51,11 +45,29 @@ -- @return Mesh#Mesh ret (return value: cc.Mesh) -------------------------------- --- --- @function [parent=#Sprite3D] setCullFace +-- get mesh count +-- @function [parent=#Sprite3D] getMeshCount -- @param self --- @param #unsigned int cullFace --- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) +-- @return long#long ret (return value: long) + +-------------------------------- +-- get Mesh by index +-- @function [parent=#Sprite3D] getMeshByIndex +-- @param self +-- @param #int index +-- @return Mesh#Mesh ret (return value: cc.Mesh) + +-------------------------------- +-- +-- @function [parent=#Sprite3D] isForceDepthWrite +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#Sprite3D] getBlendFunc +-- @param self +-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) -------------------------------- -- light mask getter & setter, light works only when _lightmask & light's flag is true, default value of _lightmask is 0xffff @@ -65,16 +77,18 @@ -- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) -------------------------------- --- --- @function [parent=#Sprite3D] getBlendFunc +-- get AttachNode by bone name, return nullptr if not exist +-- @function [parent=#Sprite3D] getAttachNode -- @param self --- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) +-- @param #string boneName +-- @return AttachNode#AttachNode ret (return value: cc.AttachNode) -------------------------------- --- get mesh count --- @function [parent=#Sprite3D] getMeshCount +-- +-- @function [parent=#Sprite3D] setBlendFunc -- @param self --- @return long#long ret (return value: long) +-- @param #cc.BlendFunc blendFunc +-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) -------------------------------- -- remove attach node @@ -89,13 +103,6 @@ -- @param self -- @return Skeleton3D#Skeleton3D ret (return value: cc.Skeleton3D) --------------------------------- --- get Mesh by index --- @function [parent=#Sprite3D] getMeshByIndex --- @param self --- @param #int index --- @return Mesh#Mesh ret (return value: cc.Mesh) - -------------------------------- -- Force to write to depth buffer, this is useful if you want to achieve effects like fading. -- @function [parent=#Sprite3D] setForceDepthWrite @@ -110,13 +117,6 @@ -- @param #string name -- @return Mesh#Mesh ret (return value: cc.Mesh) --------------------------------- --- get AttachNode by bone name, return nullptr if not exist --- @function [parent=#Sprite3D] getAttachNode --- @param self --- @param #string boneName --- @return AttachNode#AttachNode ret (return value: cc.AttachNode) - -------------------------------- -- @overload self, string -- @overload self @@ -127,13 +127,6 @@ -- @param #string texturePath -- @return Sprite3D#Sprite3D ret (return value: cc.Sprite3D) --------------------------------- --- Returns 2d bounding-box
--- Note: the bouding-box is just get from the AABB which as Z=0, so that is not very accurate. --- @function [parent=#Sprite3D] getBoundingBox --- @param self --- @return rect_table#rect_table ret (return value: rect_table) - -------------------------------- -- draw -- @function [parent=#Sprite3D] draw @@ -143,13 +136,6 @@ -- @param #unsigned int flags -- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) --------------------------------- --- set GLProgramState, you should bind attributes by yourself --- @function [parent=#Sprite3D] setGLProgramState --- @param self --- @param #cc.GLProgramState glProgramState --- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) - -------------------------------- -- Executes an action, and returns the action that is executed. For Sprite3D special logic are needed to take care of Fading.
-- This node becomes the action's target. Refer to Action::getTarget()
@@ -167,4 +153,18 @@ -- @param #cc.GLProgram glprogram -- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) +-------------------------------- +-- Returns 2d bounding-box
+-- Note: the bouding-box is just get from the AABB which as Z=0, so that is not very accurate. +-- @function [parent=#Sprite3D] getBoundingBox +-- @param self +-- @return rect_table#rect_table ret (return value: rect_table) + +-------------------------------- +-- set GLProgramState, you should bind attributes by yourself +-- @function [parent=#Sprite3D] setGLProgramState +-- @param self +-- @param #cc.GLProgramState glProgramState +-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Sprite3DCache.lua b/cocos/scripting/lua-bindings/auto/api/Sprite3DCache.lua index c79138d51a..e8c2d1bbe1 100644 --- a/cocos/scripting/lua-bindings/auto/api/Sprite3DCache.lua +++ b/cocos/scripting/lua-bindings/auto/api/Sprite3DCache.lua @@ -28,4 +28,10 @@ -- @param self -- @return Sprite3DCache#Sprite3DCache ret (return value: cc.Sprite3DCache) +-------------------------------- +-- +-- @function [parent=#Sprite3DCache] Sprite3DCache +-- @param self +-- @return Sprite3DCache#Sprite3DCache self (return value: cc.Sprite3DCache) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua b/cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua index 7f915f5ccf..2269b6ce76 100644 --- a/cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua @@ -12,15 +12,6 @@ -- @param #cc.Sprite sprite -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) --------------------------------- --- --- @function [parent=#SpriteBatchNode] addSpriteWithoutQuad --- @param self --- @param #cc.Sprite child --- @param #int z --- @param #int aTag --- @return SpriteBatchNode#SpriteBatchNode ret (return value: cc.SpriteBatchNode) - -------------------------------- -- -- @function [parent=#SpriteBatchNode] reorderBatch @@ -28,76 +19,12 @@ -- @param #bool reorder -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) --------------------------------- --- js NA --- @function [parent=#SpriteBatchNode] removeAllChildrenWithCleanup --- @param self --- @param #bool cleanup --- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) - --------------------------------- --- lua NA --- @function [parent=#SpriteBatchNode] getBlendFunc --- @param self --- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) - --------------------------------- --- Get the Min image block index,in all child.
--- param sprite The parent sprite.
--- return Index. --- @function [parent=#SpriteBatchNode] lowestAtlasIndexInChild --- @param self --- @param #cc.Sprite sprite --- @return long#long ret (return value: long) - --------------------------------- --- Get the nearest index from the sprite in z.
--- param sprite The parent sprite.
--- param z Z order for drawing priority.
--- return Index. --- @function [parent=#SpriteBatchNode] atlasIndexForChild --- @param self --- @param #cc.Sprite sprite --- @param #int z --- @return long#long ret (return value: long) - --------------------------------- --- Sets the TextureAtlas object.
--- param textureAtlas The TextureAtlas object. --- @function [parent=#SpriteBatchNode] setTextureAtlas --- @param self --- @param #cc.TextureAtlas textureAtlas --- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) - -------------------------------- -- -- @function [parent=#SpriteBatchNode] getTexture -- @param self -- @return Texture2D#Texture2D ret (return value: cc.Texture2D) --------------------------------- --- Increase the Atlas Capacity. --- @function [parent=#SpriteBatchNode] increaseAtlasCapacity --- @param self --- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) - --------------------------------- --- Returns the TextureAtlas object.
--- return The TextureAtlas object. --- @function [parent=#SpriteBatchNode] getTextureAtlas --- @param self --- @return TextureAtlas#TextureAtlas ret (return value: cc.TextureAtlas) - --------------------------------- --- Inserts a quad at a certain index into the texture atlas. The Sprite won't be added into the children array.
--- This method should be called only when you are dealing with very big AtlasSrite and when most of the Sprite won't be updated.
--- For example: a tile map (TMXMap) or a label with lots of characters (LabelBMFont). --- @function [parent=#SpriteBatchNode] insertQuadFromSprite --- @param self --- @param #cc.Sprite sprite --- @param #long index --- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) - -------------------------------- -- -- @function [parent=#SpriteBatchNode] setTexture @@ -105,26 +32,6 @@ -- @param #cc.Texture2D texture -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) --------------------------------- --- Rebuild index with a sprite all child.
--- param parent The parent sprite.
--- param index The child index.
--- return Index. --- @function [parent=#SpriteBatchNode] rebuildIndexInOrder --- @param self --- @param #cc.Sprite parent --- @param #long index --- @return long#long ret (return value: long) - --------------------------------- --- Get the Max image block index,in all child.
--- param sprite The parent sprite.
--- return Index. --- @function [parent=#SpriteBatchNode] highestAtlasIndexInChild --- @param self --- @param #cc.Sprite sprite --- @return long#long ret (return value: long) - -------------------------------- -- Removes a child given a certain index. It will also cleanup the running actions depending on the cleanup parameter.
-- param index A certain index.
@@ -144,6 +51,93 @@ -- @param #cc.Sprite sprite -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) +-------------------------------- +-- +-- @function [parent=#SpriteBatchNode] addSpriteWithoutQuad +-- @param self +-- @param #cc.Sprite child +-- @param #int z +-- @param #int aTag +-- @return SpriteBatchNode#SpriteBatchNode ret (return value: cc.SpriteBatchNode) + +-------------------------------- +-- Get the nearest index from the sprite in z.
+-- param sprite The parent sprite.
+-- param z Z order for drawing priority.
+-- return Index. +-- @function [parent=#SpriteBatchNode] atlasIndexForChild +-- @param self +-- @param #cc.Sprite sprite +-- @param #int z +-- @return long#long ret (return value: long) + +-------------------------------- +-- Increase the Atlas Capacity. +-- @function [parent=#SpriteBatchNode] increaseAtlasCapacity +-- @param self +-- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) + +-------------------------------- +-- Get the Min image block index,in all child.
+-- param sprite The parent sprite.
+-- return Index. +-- @function [parent=#SpriteBatchNode] lowestAtlasIndexInChild +-- @param self +-- @param #cc.Sprite sprite +-- @return long#long ret (return value: long) + +-------------------------------- +-- lua NA +-- @function [parent=#SpriteBatchNode] getBlendFunc +-- @param self +-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) + +-------------------------------- +-- initializes a SpriteBatchNode with a texture2d and capacity of children.
+-- The capacity will be increased in 33% in runtime if it runs out of space. +-- @function [parent=#SpriteBatchNode] initWithTexture +-- @param self +-- @param #cc.Texture2D tex +-- @param #long capacity +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- Sets the TextureAtlas object.
+-- param textureAtlas The TextureAtlas object. +-- @function [parent=#SpriteBatchNode] setTextureAtlas +-- @param self +-- @param #cc.TextureAtlas textureAtlas +-- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) + +-------------------------------- +-- js NA +-- @function [parent=#SpriteBatchNode] removeAllChildrenWithCleanup +-- @param self +-- @param #bool cleanup +-- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) + +-------------------------------- +-- Inserts a quad at a certain index into the texture atlas. The Sprite won't be added into the children array.
+-- This method should be called only when you are dealing with very big AtlasSrite and when most of the Sprite won't be updated.
+-- For example: a tile map (TMXMap) or a label with lots of characters (LabelBMFont). +-- @function [parent=#SpriteBatchNode] insertQuadFromSprite +-- @param self +-- @param #cc.Sprite sprite +-- @param #long index +-- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) + +-------------------------------- +-- initializes a SpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) and a capacity of children.
+-- The capacity will be increased in 33% in runtime if it runs out of space.
+-- The file will be loaded using the TextureMgr.
+-- js init
+-- lua init +-- @function [parent=#SpriteBatchNode] initWithFile +-- @param self +-- @param #string fileImage +-- @param #long capacity +-- @return bool#bool ret (return value: bool) + -------------------------------- -- code
-- When this function bound into js or lua,the parameter will be changed.
@@ -155,6 +149,33 @@ -- @param #cc.BlendFunc blendFunc -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) +-------------------------------- +-- Rebuild index with a sprite all child.
+-- param parent The parent sprite.
+-- param index The child index.
+-- return Index. +-- @function [parent=#SpriteBatchNode] rebuildIndexInOrder +-- @param self +-- @param #cc.Sprite parent +-- @param #long index +-- @return long#long ret (return value: long) + +-------------------------------- +-- Returns the TextureAtlas object.
+-- return The TextureAtlas object. +-- @function [parent=#SpriteBatchNode] getTextureAtlas +-- @param self +-- @return TextureAtlas#TextureAtlas ret (return value: cc.TextureAtlas) + +-------------------------------- +-- Get the Max image block index,in all child.
+-- param sprite The parent sprite.
+-- return Index. +-- @function [parent=#SpriteBatchNode] highestAtlasIndexInChild +-- @param self +-- @param #cc.Sprite sprite +-- @return long#long ret (return value: long) + -------------------------------- -- Creates a SpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) and capacity of children.
-- The capacity will be increased in 33% in runtime if it runs out of space.
@@ -228,6 +249,12 @@ -- @param #bool cleanup -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) +-------------------------------- +-- +-- @function [parent=#SpriteBatchNode] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#SpriteBatchNode] reorderChild @@ -236,4 +263,10 @@ -- @param #int zOrder -- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) +-------------------------------- +-- js ctor +-- @function [parent=#SpriteBatchNode] SpriteBatchNode +-- @param self +-- @return SpriteBatchNode#SpriteBatchNode self (return value: cc.SpriteBatchNode) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SpriteFrame.lua b/cocos/scripting/lua-bindings/auto/api/SpriteFrame.lua index a7b9dc0f9a..265775acc2 100644 --- a/cocos/scripting/lua-bindings/auto/api/SpriteFrame.lua +++ b/cocos/scripting/lua-bindings/auto/api/SpriteFrame.lua @@ -101,6 +101,18 @@ -- @param #vec2_table offsets -- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame) +-------------------------------- +-- @overload self, cc.Texture2D, rect_table, bool, vec2_table, size_table +-- @overload self, cc.Texture2D, rect_table +-- @function [parent=#SpriteFrame] initWithTexture +-- @param self +-- @param #cc.Texture2D pobTexture +-- @param #rect_table rect +-- @param #bool rotated +-- @param #vec2_table offset +-- @param #size_table originalSize +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Is the sprite frame rotated or not.
-- return Is rotated if true. @@ -108,6 +120,18 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- @overload self, string, rect_table, bool, vec2_table, size_table +-- @overload self, string, rect_table +-- @function [parent=#SpriteFrame] initWithTextureFilename +-- @param self +-- @param #string filename +-- @param #rect_table rect +-- @param #bool rotated +-- @param #vec2_table offset +-- @param #size_table originalSize +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Set rect of the frame.
-- param rect The rect of the sprite. @@ -154,4 +178,10 @@ -- @param #size_table originalSize -- @return SpriteFrame#SpriteFrame ret (return value: cc.SpriteFrame) +-------------------------------- +-- lua NA +-- @function [parent=#SpriteFrame] SpriteFrame +-- @param self +-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/StopGrid.lua b/cocos/scripting/lua-bindings/auto/api/StopGrid.lua index 9c9a3b0228..ea252535f9 100644 --- a/cocos/scripting/lua-bindings/auto/api/StopGrid.lua +++ b/cocos/scripting/lua-bindings/auto/api/StopGrid.lua @@ -30,4 +30,10 @@ -- @param self -- @return StopGrid#StopGrid ret (return value: cc.StopGrid) +-------------------------------- +-- +-- @function [parent=#StopGrid] StopGrid +-- @param self +-- @return StopGrid#StopGrid self (return value: cc.StopGrid) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TargetedAction.lua b/cocos/scripting/lua-bindings/auto/api/TargetedAction.lua index 9c94b325b6..fe39135bf1 100644 --- a/cocos/scripting/lua-bindings/auto/api/TargetedAction.lua +++ b/cocos/scripting/lua-bindings/auto/api/TargetedAction.lua @@ -11,6 +11,14 @@ -- @param self -- @return Node#Node ret (return value: cc.Node) +-------------------------------- +-- Init an action with the specified action and forced target +-- @function [parent=#TargetedAction] initWithTarget +-- @param self +-- @param #cc.Node target +-- @param #cc.FiniteTimeAction action +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Sets the target that the action will be forced to run with.
-- param forcedTarget The target that the action will be forced to run with. @@ -62,4 +70,10 @@ -- @param #float time -- @return TargetedAction#TargetedAction self (return value: cc.TargetedAction) +-------------------------------- +-- +-- @function [parent=#TargetedAction] TargetedAction +-- @param self +-- @return TargetedAction#TargetedAction self (return value: cc.TargetedAction) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Text.lua b/cocos/scripting/lua-bindings/auto/api/Text.lua index 2c8527006a..0dce4518a5 100644 --- a/cocos/scripting/lua-bindings/auto/api/Text.lua +++ b/cocos/scripting/lua-bindings/auto/api/Text.lua @@ -84,6 +84,15 @@ -- @param #string text -- @return Text#Text self (return value: ccui.Text) +-------------------------------- +-- +-- @function [parent=#Text] init +-- @param self +-- @param #string textContent +-- @param #string fontName +-- @param #int fontSize +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Gets the touch scale enabled of label.
-- return Touch scale enabled of label. @@ -218,6 +227,12 @@ -- @param self -- @return Node#Node ret (return value: cc.Node) +-------------------------------- +-- +-- @function [parent=#Text] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Returns the "class name" of widget. -- @function [parent=#Text] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/TextField.lua b/cocos/scripting/lua-bindings/auto/api/TextField.lua index 9de272a252..8fded01a39 100644 --- a/cocos/scripting/lua-bindings/auto/api/TextField.lua +++ b/cocos/scripting/lua-bindings/auto/api/TextField.lua @@ -331,6 +331,12 @@ -- @param #vec2_table pt -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#TextField] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#TextField] getVirtualRendererSize diff --git a/cocos/scripting/lua-bindings/auto/api/TextureCube.lua b/cocos/scripting/lua-bindings/auto/api/TextureCube.lua index 1430554d79..5924eb623c 100644 --- a/cocos/scripting/lua-bindings/auto/api/TextureCube.lua +++ b/cocos/scripting/lua-bindings/auto/api/TextureCube.lua @@ -37,4 +37,10 @@ -- @param #string negative_z -- @return TextureCube#TextureCube ret (return value: cc.TextureCube) +-------------------------------- +-- Constructor. +-- @function [parent=#TextureCube] TextureCube +-- @param self +-- @return TextureCube#TextureCube self (return value: cc.TextureCube) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TintBy.lua b/cocos/scripting/lua-bindings/auto/api/TintBy.lua index 389dbfe440..0c45ef80eb 100644 --- a/cocos/scripting/lua-bindings/auto/api/TintBy.lua +++ b/cocos/scripting/lua-bindings/auto/api/TintBy.lua @@ -4,6 +4,16 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action with duration and color +-- @function [parent=#TintBy] initWithDuration +-- @param self +-- @param #float duration +-- @param #short deltaRed +-- @param #short deltaGreen +-- @param #short deltaBlue +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates an action with duration and color.
-- param duration Duration time, in seconds.
@@ -45,4 +55,10 @@ -- @param #float time -- @return TintBy#TintBy self (return value: cc.TintBy) +-------------------------------- +-- +-- @function [parent=#TintBy] TintBy +-- @param self +-- @return TintBy#TintBy self (return value: cc.TintBy) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TintTo.lua b/cocos/scripting/lua-bindings/auto/api/TintTo.lua index c99dcfe625..1e0ede20c6 100644 --- a/cocos/scripting/lua-bindings/auto/api/TintTo.lua +++ b/cocos/scripting/lua-bindings/auto/api/TintTo.lua @@ -4,6 +4,16 @@ -- @extend ActionInterval -- @parent_module cc +-------------------------------- +-- initializes the action with duration and color +-- @function [parent=#TintTo] initWithDuration +-- @param self +-- @param #float duration +-- @param #unsigned char red +-- @param #unsigned char green +-- @param #unsigned char blue +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, color3b_table -- @overload self, float, unsigned char, unsigned char, unsigned char @@ -41,4 +51,10 @@ -- @param #float time -- @return TintTo#TintTo self (return value: cc.TintTo) +-------------------------------- +-- +-- @function [parent=#TintTo] TintTo +-- @param self +-- @return TintTo#TintTo self (return value: cc.TintTo) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ToggleVisibility.lua b/cocos/scripting/lua-bindings/auto/api/ToggleVisibility.lua index e014680cb3..8ac661abd1 100644 --- a/cocos/scripting/lua-bindings/auto/api/ToggleVisibility.lua +++ b/cocos/scripting/lua-bindings/auto/api/ToggleVisibility.lua @@ -30,4 +30,10 @@ -- @param self -- @return ToggleVisibility#ToggleVisibility ret (return value: cc.ToggleVisibility) +-------------------------------- +-- +-- @function [parent=#ToggleVisibility] ToggleVisibility +-- @param self +-- @return ToggleVisibility#ToggleVisibility self (return value: cc.ToggleVisibility) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionCrossFade.lua b/cocos/scripting/lua-bindings/auto/api/TransitionCrossFade.lua index c36f418fe0..20530b638e 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionCrossFade.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionCrossFade.lua @@ -24,4 +24,10 @@ -- @param #unsigned int flags -- @return TransitionCrossFade#TransitionCrossFade self (return value: cc.TransitionCrossFade) +-------------------------------- +-- +-- @function [parent=#TransitionCrossFade] TransitionCrossFade +-- @param self +-- @return TransitionCrossFade#TransitionCrossFade self (return value: cc.TransitionCrossFade) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFade.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFade.lua index 64aaeb4a3f..29516a0730 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFade.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFade.lua @@ -4,6 +4,16 @@ -- @extend TransitionScene -- @parent_module cc +-------------------------------- +-- @overload self, float, cc.Scene +-- @overload self, float, cc.Scene, color3b_table +-- @function [parent=#TransitionFade] initWithDuration +-- @param self +-- @param #float t +-- @param #cc.Scene scene +-- @param #color3b_table color +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, cc.Scene -- @overload self, float, cc.Scene, color3b_table @@ -14,4 +24,10 @@ -- @param #color3b_table color -- @return TransitionFade#TransitionFade ret (return value: cc.TransitionFade) +-------------------------------- +-- +-- @function [parent=#TransitionFade] TransitionFade +-- @param self +-- @return TransitionFade#TransitionFade self (return value: cc.TransitionFade) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFadeBL.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFadeBL.lua index b8fbcd7922..4783ad8d67 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFadeBL.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFadeBL.lua @@ -22,4 +22,10 @@ -- @param #size_table size -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionFadeBL] TransitionFadeBL +-- @param self +-- @return TransitionFadeBL#TransitionFadeBL self (return value: cc.TransitionFadeBL) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFadeDown.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFadeDown.lua index 842e38ea04..c4e97632ec 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFadeDown.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFadeDown.lua @@ -22,4 +22,10 @@ -- @param #size_table size -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionFadeDown] TransitionFadeDown +-- @param self +-- @return TransitionFadeDown#TransitionFadeDown self (return value: cc.TransitionFadeDown) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua index 7ce5e7e328..c0f4faf8ec 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua @@ -40,4 +40,10 @@ -- @param #unsigned int flags -- @return TransitionFadeTR#TransitionFadeTR self (return value: cc.TransitionFadeTR) +-------------------------------- +-- +-- @function [parent=#TransitionFadeTR] TransitionFadeTR +-- @param self +-- @return TransitionFadeTR#TransitionFadeTR self (return value: cc.TransitionFadeTR) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFadeUp.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFadeUp.lua index 2e68522826..3b46340a92 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFadeUp.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFadeUp.lua @@ -22,4 +22,10 @@ -- @param #size_table size -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionFadeUp] TransitionFadeUp +-- @param self +-- @return TransitionFadeUp#TransitionFadeUp self (return value: cc.TransitionFadeUp) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFlipAngular.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFlipAngular.lua index 446e2d41d4..1f55217db5 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFlipAngular.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFlipAngular.lua @@ -14,4 +14,10 @@ -- @param #int o -- @return TransitionFlipAngular#TransitionFlipAngular ret (return value: cc.TransitionFlipAngular) +-------------------------------- +-- +-- @function [parent=#TransitionFlipAngular] TransitionFlipAngular +-- @param self +-- @return TransitionFlipAngular#TransitionFlipAngular self (return value: cc.TransitionFlipAngular) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFlipX.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFlipX.lua index 218d129a22..79dd2f77d1 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFlipX.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFlipX.lua @@ -14,4 +14,10 @@ -- @param #int o -- @return TransitionFlipX#TransitionFlipX ret (return value: cc.TransitionFlipX) +-------------------------------- +-- +-- @function [parent=#TransitionFlipX] TransitionFlipX +-- @param self +-- @return TransitionFlipX#TransitionFlipX self (return value: cc.TransitionFlipX) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionFlipY.lua b/cocos/scripting/lua-bindings/auto/api/TransitionFlipY.lua index f91f37a721..5b3b848d6a 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionFlipY.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionFlipY.lua @@ -14,4 +14,10 @@ -- @param #int o -- @return TransitionFlipY#TransitionFlipY ret (return value: cc.TransitionFlipY) +-------------------------------- +-- +-- @function [parent=#TransitionFlipY] TransitionFlipY +-- @param self +-- @return TransitionFlipY#TransitionFlipY self (return value: cc.TransitionFlipY) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionJumpZoom.lua b/cocos/scripting/lua-bindings/auto/api/TransitionJumpZoom.lua index 8e0c631296..76e6358819 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionJumpZoom.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionJumpZoom.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionJumpZoom#TransitionJumpZoom ret (return value: cc.TransitionJumpZoom) +-------------------------------- +-- +-- @function [parent=#TransitionJumpZoom] TransitionJumpZoom +-- @param self +-- @return TransitionJumpZoom#TransitionJumpZoom self (return value: cc.TransitionJumpZoom) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInB.lua b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInB.lua index 2eb59cd0a3..1b08d2e646 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInB.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInB.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionMoveInB#TransitionMoveInB ret (return value: cc.TransitionMoveInB) +-------------------------------- +-- +-- @function [parent=#TransitionMoveInB] TransitionMoveInB +-- @param self +-- @return TransitionMoveInB#TransitionMoveInB self (return value: cc.TransitionMoveInB) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInL.lua b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInL.lua index 157b769187..b67e1c7b86 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInL.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInL.lua @@ -29,4 +29,10 @@ -- @param #cc.Scene scene -- @return TransitionMoveInL#TransitionMoveInL ret (return value: cc.TransitionMoveInL) +-------------------------------- +-- +-- @function [parent=#TransitionMoveInL] TransitionMoveInL +-- @param self +-- @return TransitionMoveInL#TransitionMoveInL self (return value: cc.TransitionMoveInL) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInR.lua b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInR.lua index c9c7732e4a..af2f551032 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInR.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInR.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionMoveInR#TransitionMoveInR ret (return value: cc.TransitionMoveInR) +-------------------------------- +-- +-- @function [parent=#TransitionMoveInR] TransitionMoveInR +-- @param self +-- @return TransitionMoveInR#TransitionMoveInR self (return value: cc.TransitionMoveInR) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInT.lua b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInT.lua index b764ea1c7f..ddfd29fd4f 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionMoveInT.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionMoveInT.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionMoveInT#TransitionMoveInT ret (return value: cc.TransitionMoveInT) +-------------------------------- +-- +-- @function [parent=#TransitionMoveInT] TransitionMoveInT +-- @param self +-- @return TransitionMoveInT#TransitionMoveInT self (return value: cc.TransitionMoveInT) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua b/cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua index 59185cd4a1..b906906c7d 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua @@ -52,4 +52,10 @@ -- @param #unsigned int flags -- @return TransitionPageTurn#TransitionPageTurn self (return value: cc.TransitionPageTurn) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionPageTurn] TransitionPageTurn +-- @param self +-- @return TransitionPageTurn#TransitionPageTurn self (return value: cc.TransitionPageTurn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgress.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgress.lua index 9631cabb31..f3432b2e50 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgress.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgress.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgress#TransitionProgress ret (return value: cc.TransitionProgress) +-------------------------------- +-- +-- @function [parent=#TransitionProgress] TransitionProgress +-- @param self +-- @return TransitionProgress#TransitionProgress self (return value: cc.TransitionProgress) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgressHorizontal.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgressHorizontal.lua index 350e16dcfa..85529d4586 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgressHorizontal.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgressHorizontal.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgressHorizontal#TransitionProgressHorizontal ret (return value: cc.TransitionProgressHorizontal) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionProgressHorizontal] TransitionProgressHorizontal +-- @param self +-- @return TransitionProgressHorizontal#TransitionProgressHorizontal self (return value: cc.TransitionProgressHorizontal) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgressInOut.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgressInOut.lua index 996a7764f1..7072be6885 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgressInOut.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgressInOut.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgressInOut#TransitionProgressInOut ret (return value: cc.TransitionProgressInOut) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionProgressInOut] TransitionProgressInOut +-- @param self +-- @return TransitionProgressInOut#TransitionProgressInOut self (return value: cc.TransitionProgressInOut) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgressOutIn.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgressOutIn.lua index 2e80ab7bbe..4e8ae268e8 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgressOutIn.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgressOutIn.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgressOutIn#TransitionProgressOutIn ret (return value: cc.TransitionProgressOutIn) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionProgressOutIn] TransitionProgressOutIn +-- @param self +-- @return TransitionProgressOutIn#TransitionProgressOutIn self (return value: cc.TransitionProgressOutIn) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCCW.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCCW.lua index a0c249049d..91dacd476a 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCCW.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCCW.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgressRadialCCW#TransitionProgressRadialCCW ret (return value: cc.TransitionProgressRadialCCW) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionProgressRadialCCW] TransitionProgressRadialCCW +-- @param self +-- @return TransitionProgressRadialCCW#TransitionProgressRadialCCW self (return value: cc.TransitionProgressRadialCCW) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCW.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCW.lua index da01b2eb28..5fa688ab78 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCW.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgressRadialCW.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgressRadialCW#TransitionProgressRadialCW ret (return value: cc.TransitionProgressRadialCW) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionProgressRadialCW] TransitionProgressRadialCW +-- @param self +-- @return TransitionProgressRadialCW#TransitionProgressRadialCW self (return value: cc.TransitionProgressRadialCW) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionProgressVertical.lua b/cocos/scripting/lua-bindings/auto/api/TransitionProgressVertical.lua index eeef478e6c..979ba6f182 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionProgressVertical.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionProgressVertical.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionProgressVertical#TransitionProgressVertical ret (return value: cc.TransitionProgressVertical) +-------------------------------- +-- js ctor +-- @function [parent=#TransitionProgressVertical] TransitionProgressVertical +-- @param self +-- @return TransitionProgressVertical#TransitionProgressVertical self (return value: cc.TransitionProgressVertical) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionRotoZoom.lua b/cocos/scripting/lua-bindings/auto/api/TransitionRotoZoom.lua index e433ec274f..e9111b0fae 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionRotoZoom.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionRotoZoom.lua @@ -15,4 +15,10 @@ -- @param #cc.Scene scene -- @return TransitionRotoZoom#TransitionRotoZoom ret (return value: cc.TransitionRotoZoom) +-------------------------------- +-- +-- @function [parent=#TransitionRotoZoom] TransitionRotoZoom +-- @param self +-- @return TransitionRotoZoom#TransitionRotoZoom self (return value: cc.TransitionRotoZoom) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionScene.lua b/cocos/scripting/lua-bindings/auto/api/TransitionScene.lua index 260978a23f..0eb0e77b0c 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionScene.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionScene.lua @@ -16,6 +16,14 @@ -- @param self -- @return TransitionScene#TransitionScene self (return value: cc.TransitionScene) +-------------------------------- +-- initializes a transition with duration and incoming scene +-- @function [parent=#TransitionScene] initWithDuration +-- @param self +-- @param #float t +-- @param #cc.Scene scene +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#TransitionScene] getDuration @@ -54,4 +62,10 @@ -- @param self -- @return TransitionScene#TransitionScene self (return value: cc.TransitionScene) +-------------------------------- +-- +-- @function [parent=#TransitionScene] TransitionScene +-- @param self +-- @return TransitionScene#TransitionScene self (return value: cc.TransitionScene) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSceneOriented.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSceneOriented.lua index 98634db682..1419f48cd0 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSceneOriented.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSceneOriented.lua @@ -4,6 +4,15 @@ -- @extend TransitionScene -- @parent_module cc +-------------------------------- +-- initializes a transition with duration and incoming scene +-- @function [parent=#TransitionSceneOriented] initWithDuration +-- @param self +-- @param #float t +-- @param #cc.Scene scene +-- @param #int orientation +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Creates a transition with duration, incoming scene and orientation.
-- param t Duration time, in seconds.
@@ -17,4 +26,10 @@ -- @param #int orientation -- @return TransitionSceneOriented#TransitionSceneOriented ret (return value: cc.TransitionSceneOriented) +-------------------------------- +-- +-- @function [parent=#TransitionSceneOriented] TransitionSceneOriented +-- @param self +-- @return TransitionSceneOriented#TransitionSceneOriented self (return value: cc.TransitionSceneOriented) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionShrinkGrow.lua b/cocos/scripting/lua-bindings/auto/api/TransitionShrinkGrow.lua index d0c4b212b1..451b44cbe9 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionShrinkGrow.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionShrinkGrow.lua @@ -22,4 +22,10 @@ -- @param #cc.Scene scene -- @return TransitionShrinkGrow#TransitionShrinkGrow ret (return value: cc.TransitionShrinkGrow) +-------------------------------- +-- +-- @function [parent=#TransitionShrinkGrow] TransitionShrinkGrow +-- @param self +-- @return TransitionShrinkGrow#TransitionShrinkGrow self (return value: cc.TransitionShrinkGrow) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua index 3a5b375953..866ccf4fb9 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua @@ -21,4 +21,10 @@ -- @param self -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionSlideInB] TransitionSlideInB +-- @param self +-- @return TransitionSlideInB#TransitionSlideInB self (return value: cc.TransitionSlideInB) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInL.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInL.lua index 9b1fe8e3bc..568642f836 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInL.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInL.lua @@ -29,4 +29,10 @@ -- @param #cc.Scene scene -- @return TransitionSlideInL#TransitionSlideInL ret (return value: cc.TransitionSlideInL) +-------------------------------- +-- +-- @function [parent=#TransitionSlideInL] TransitionSlideInL +-- @param self +-- @return TransitionSlideInL#TransitionSlideInL self (return value: cc.TransitionSlideInL) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua index 17d6bf25f3..7e0d63656c 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua @@ -21,4 +21,10 @@ -- @param self -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionSlideInR] TransitionSlideInR +-- @param self +-- @return TransitionSlideInR#TransitionSlideInR self (return value: cc.TransitionSlideInR) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua index bbef1acaf7..6c1d152f18 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua @@ -21,4 +21,10 @@ -- @param self -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionSlideInT] TransitionSlideInT +-- @param self +-- @return TransitionSlideInT#TransitionSlideInT self (return value: cc.TransitionSlideInT) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSplitCols.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSplitCols.lua index 8dc30c0cd2..8a9991d030 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSplitCols.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSplitCols.lua @@ -38,4 +38,10 @@ -- @param #unsigned int flags -- @return TransitionSplitCols#TransitionSplitCols self (return value: cc.TransitionSplitCols) +-------------------------------- +-- +-- @function [parent=#TransitionSplitCols] TransitionSplitCols +-- @param self +-- @return TransitionSplitCols#TransitionSplitCols self (return value: cc.TransitionSplitCols) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSplitRows.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSplitRows.lua index 7f69d0a016..e6d7096da8 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSplitRows.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSplitRows.lua @@ -21,4 +21,10 @@ -- @param self -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) +-------------------------------- +-- +-- @function [parent=#TransitionSplitRows] TransitionSplitRows +-- @param self +-- @return TransitionSplitRows#TransitionSplitRows self (return value: cc.TransitionSplitRows) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua b/cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua index f391b8fca2..d8c8f8fba4 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua @@ -31,4 +31,10 @@ -- @param #unsigned int flags -- @return TransitionTurnOffTiles#TransitionTurnOffTiles self (return value: cc.TransitionTurnOffTiles) +-------------------------------- +-- +-- @function [parent=#TransitionTurnOffTiles] TransitionTurnOffTiles +-- @param self +-- @return TransitionTurnOffTiles#TransitionTurnOffTiles self (return value: cc.TransitionTurnOffTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipAngular.lua b/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipAngular.lua index 4ef5b58f02..711bc4ffe3 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipAngular.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipAngular.lua @@ -14,4 +14,10 @@ -- @param #int o -- @return TransitionZoomFlipAngular#TransitionZoomFlipAngular ret (return value: cc.TransitionZoomFlipAngular) +-------------------------------- +-- +-- @function [parent=#TransitionZoomFlipAngular] TransitionZoomFlipAngular +-- @param self +-- @return TransitionZoomFlipAngular#TransitionZoomFlipAngular self (return value: cc.TransitionZoomFlipAngular) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipX.lua b/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipX.lua index d8dea739a1..955b1c7e57 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipX.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipX.lua @@ -14,4 +14,10 @@ -- @param #int o -- @return TransitionZoomFlipX#TransitionZoomFlipX ret (return value: cc.TransitionZoomFlipX) +-------------------------------- +-- +-- @function [parent=#TransitionZoomFlipX] TransitionZoomFlipX +-- @param self +-- @return TransitionZoomFlipX#TransitionZoomFlipX self (return value: cc.TransitionZoomFlipX) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipY.lua b/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipY.lua index f802c025f0..b62703c7f2 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipY.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionZoomFlipY.lua @@ -14,4 +14,10 @@ -- @param #int o -- @return TransitionZoomFlipY#TransitionZoomFlipY ret (return value: cc.TransitionZoomFlipY) +-------------------------------- +-- +-- @function [parent=#TransitionZoomFlipY] TransitionZoomFlipY +-- @param self +-- @return TransitionZoomFlipY#TransitionZoomFlipY self (return value: cc.TransitionZoomFlipY) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua b/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua index 794b440704..633ff3d71b 100644 --- a/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua @@ -20,6 +20,19 @@ -- @param #vec2_table pos -- @return TurnOffTiles#TurnOffTiles self (return value: cc.TurnOffTiles) +-------------------------------- +-- brief Initializes the action with grid size, random seed and duration.
+-- param duration Specify the duration of the TurnOffTiles action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param seed Specify the random seed.
+-- return If the Initialization success, return true; otherwise, return false. +-- @function [parent=#TurnOffTiles] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int seed +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, float, size_table, unsigned int -- @overload self, float, size_table @@ -50,4 +63,10 @@ -- @param #float time -- @return TurnOffTiles#TurnOffTiles self (return value: cc.TurnOffTiles) +-------------------------------- +-- +-- @function [parent=#TurnOffTiles] TurnOffTiles +-- @param self +-- @return TurnOffTiles#TurnOffTiles self (return value: cc.TurnOffTiles) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Twirl.lua b/cocos/scripting/lua-bindings/auto/api/Twirl.lua index b4812555a3..18f484bf06 100644 --- a/cocos/scripting/lua-bindings/auto/api/Twirl.lua +++ b/cocos/scripting/lua-bindings/auto/api/Twirl.lua @@ -12,6 +12,23 @@ -- @param #float amplitudeRate -- @return Twirl#Twirl self (return value: cc.Twirl) +-------------------------------- +-- brief Initializes the action with center position, number of twirls, amplitude, a grid size and duration.
+-- param duration Specify the duration of the Twirl action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param position Specify the center position of the twirl action.
+-- param twirls Specify the twirls count of the Twirl action.
+-- param amplitude Specify the amplitude of the Twirl action.
+-- return If the initialization sucess, return true; otherwise, return false. +-- @function [parent=#Twirl] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #vec2_table position +-- @param #unsigned int twirls +-- @param #float amplitude +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Get the amplitude rate of the effect.
-- return Return the amplitude rate of the effect. @@ -79,4 +96,10 @@ -- @param #float time -- @return Twirl#Twirl self (return value: cc.Twirl) +-------------------------------- +-- +-- @function [parent=#Twirl] Twirl +-- @param self +-- @return Twirl#Twirl self (return value: cc.Twirl) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/VBox.lua b/cocos/scripting/lua-bindings/auto/api/VBox.lua index 6829e59e47..6d34ddf03f 100644 --- a/cocos/scripting/lua-bindings/auto/api/VBox.lua +++ b/cocos/scripting/lua-bindings/auto/api/VBox.lua @@ -4,6 +4,13 @@ -- @extend Layout -- @parent_module ccui +-------------------------------- +-- +-- @function [parent=#VBox] initWithSize +-- @param self +-- @param #size_table size +-- @return bool#bool ret (return value: bool) + -------------------------------- -- @overload self, size_table -- @overload self @@ -12,6 +19,12 @@ -- @param #size_table size -- @return VBox#VBox ret (return value: ccui.VBox) +-------------------------------- +-- +-- @function [parent=#VBox] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Default constructor
-- js ctor
diff --git a/cocos/scripting/lua-bindings/auto/api/VideoPlayer.lua b/cocos/scripting/lua-bindings/auto/api/VideoPlayer.lua index 58eda612c5..b216cd5054 100644 --- a/cocos/scripting/lua-bindings/auto/api/VideoPlayer.lua +++ b/cocos/scripting/lua-bindings/auto/api/VideoPlayer.lua @@ -131,4 +131,10 @@ -- @param #bool visible -- @return experimental::ui::VideoPlayer#experimental::ui::VideoPlayer self (return value: cc.experimental::ui::VideoPlayer) +-------------------------------- +-- +-- @function [parent=#VideoPlayer] VideoPlayer +-- @param self +-- @return experimental::ui::VideoPlayer#experimental::ui::VideoPlayer self (return value: cc.experimental::ui::VideoPlayer) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Waves.lua b/cocos/scripting/lua-bindings/auto/api/Waves.lua index 11b75958d5..a8df5585bc 100644 --- a/cocos/scripting/lua-bindings/auto/api/Waves.lua +++ b/cocos/scripting/lua-bindings/auto/api/Waves.lua @@ -4,6 +4,40 @@ -- @extend Grid3DAction -- @parent_module cc +-------------------------------- +-- brief Set the ampliture rate of the effect.
+-- param amplitudeRate The value of amplitude rate will be set. +-- @function [parent=#Waves] setAmplitudeRate +-- @param self +-- @param #float amplitudeRate +-- @return Waves#Waves self (return value: cc.Waves) + +-------------------------------- +-- brief Initializes the action with amplitude, horizontal sin, vertical sin, grid size, waves count and duration.
+-- param duration Specify the duration of the Waves action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param waves Specify the waves count of the Waves action.
+-- param amplitude Specify the amplitude of the Waves action.
+-- param horizontal Specify whether waves on horizontal.
+-- param vertical Specify whether waves on vertical.
+-- return If the initialization sucess, return true; otherwise, return false. +-- @function [parent=#Waves] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int waves +-- @param #float amplitude +-- @param #bool horizontal +-- @param #bool vertical +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- brief Get the amplitude of the effect.
+-- return Return the amplitude of the effect. +-- @function [parent=#Waves] getAmplitude +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- brief Get the amplitude rate of the effect.
-- return Return the amplitude rate of the effect. @@ -19,21 +53,6 @@ -- @param #float amplitude -- @return Waves#Waves self (return value: cc.Waves) --------------------------------- --- brief Set the ampliture rate of the effect.
--- param amplitudeRate The value of amplitude rate will be set. --- @function [parent=#Waves] setAmplitudeRate --- @param self --- @param #float amplitudeRate --- @return Waves#Waves self (return value: cc.Waves) - --------------------------------- --- brief Get the amplitude of the effect.
--- return Return the amplitude of the effect. --- @function [parent=#Waves] getAmplitude --- @param self --- @return float#float ret (return value: float) - -------------------------------- -- brief Create the action with amplitude, horizontal sin, vertical sin, grid size, waves count and duration.
-- param duration Specify the duration of the Waves action. It's a value in seconds.
@@ -66,4 +85,10 @@ -- @param #float time -- @return Waves#Waves self (return value: cc.Waves) +-------------------------------- +-- +-- @function [parent=#Waves] Waves +-- @param self +-- @return Waves#Waves self (return value: cc.Waves) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Waves3D.lua b/cocos/scripting/lua-bindings/auto/api/Waves3D.lua index ddc4a0e4c2..f1368dadbd 100644 --- a/cocos/scripting/lua-bindings/auto/api/Waves3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Waves3D.lua @@ -4,6 +4,36 @@ -- @extend Grid3DAction -- @parent_module cc +-------------------------------- +-- brief Set the ampliture rate of the effect.
+-- param amplitudeRate The value of amplitude rate will be set. +-- @function [parent=#Waves3D] setAmplitudeRate +-- @param self +-- @param #float amplitudeRate +-- @return Waves3D#Waves3D self (return value: cc.Waves3D) + +-------------------------------- +-- brief Initializes an action with duration, grid size, waves and amplitude.
+-- param duration Specify the duration of the Waves3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param waves Specify the waves count of the Waves3D action.
+-- param amplitude Specify the amplitude of the Waves3D action.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#Waves3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int waves +-- @param #float amplitude +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- brief Get the amplitude of the effect.
+-- return Return the amplitude of the effect. +-- @function [parent=#Waves3D] getAmplitude +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- brief Get the amplitude rate of the effect.
-- return Return the amplitude rate of the effect. @@ -19,21 +49,6 @@ -- @param #float amplitude -- @return Waves3D#Waves3D self (return value: cc.Waves3D) --------------------------------- --- brief Set the ampliture rate of the effect.
--- param amplitudeRate The value of amplitude rate will be set. --- @function [parent=#Waves3D] setAmplitudeRate --- @param self --- @param #float amplitudeRate --- @return Waves3D#Waves3D self (return value: cc.Waves3D) - --------------------------------- --- brief Get the amplitude of the effect.
--- return Return the amplitude of the effect. --- @function [parent=#Waves3D] getAmplitude --- @param self --- @return float#float ret (return value: float) - -------------------------------- -- brief Create an action with duration, grid size, waves and amplitude.
-- param duration Specify the duration of the Waves3D action. It's a value in seconds.
@@ -62,4 +77,10 @@ -- @param #float time -- @return Waves3D#Waves3D self (return value: cc.Waves3D) +-------------------------------- +-- +-- @function [parent=#Waves3D] Waves3D +-- @param self +-- @return Waves3D#Waves3D self (return value: cc.Waves3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua b/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua index 11edbeb158..a6d13b10f6 100644 --- a/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua @@ -4,6 +4,36 @@ -- @extend TiledGrid3DAction -- @parent_module cc +-------------------------------- +-- brief Set the ampliture rate of the effect.
+-- param amplitudeRate The value of amplitude rate will be set. +-- @function [parent=#WavesTiles3D] setAmplitudeRate +-- @param self +-- @param #float amplitudeRate +-- @return WavesTiles3D#WavesTiles3D self (return value: cc.WavesTiles3D) + +-------------------------------- +-- brief Initializes an action with duration, grid size, waves count and amplitude.
+-- param duration Specify the duration of the WavesTiles3D action. It's a value in seconds.
+-- param gridSize Specify the size of the grid.
+-- param waves Specify the waves count of the WavesTiles3D action.
+-- param amplitude Specify the amplitude of the WavesTiles3D action.
+-- return If the initialization success, return true; otherwise, return false. +-- @function [parent=#WavesTiles3D] initWithDuration +-- @param self +-- @param #float duration +-- @param #size_table gridSize +-- @param #unsigned int waves +-- @param #float amplitude +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- brief Get the amplitude of the effect.
+-- return Return the amplitude of the effect. +-- @function [parent=#WavesTiles3D] getAmplitude +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- brief Get the amplitude rate of the effect.
-- return Return the amplitude rate of the effect. @@ -19,21 +49,6 @@ -- @param #float amplitude -- @return WavesTiles3D#WavesTiles3D self (return value: cc.WavesTiles3D) --------------------------------- --- brief Set the ampliture rate of the effect.
--- param amplitudeRate The value of amplitude rate will be set. --- @function [parent=#WavesTiles3D] setAmplitudeRate --- @param self --- @param #float amplitudeRate --- @return WavesTiles3D#WavesTiles3D self (return value: cc.WavesTiles3D) - --------------------------------- --- brief Get the amplitude of the effect.
--- return Return the amplitude of the effect. --- @function [parent=#WavesTiles3D] getAmplitude --- @param self --- @return float#float ret (return value: float) - -------------------------------- -- brief Create the action with a number of waves, the waves amplitude, the grid size and the duration.
-- param duration Specify the duration of the WavesTiles3D action. It's a value in seconds.
@@ -62,4 +77,10 @@ -- @param #float time -- @return WavesTiles3D#WavesTiles3D self (return value: cc.WavesTiles3D) +-------------------------------- +-- +-- @function [parent=#WavesTiles3D] WavesTiles3D +-- @param self +-- @return WavesTiles3D#WavesTiles3D self (return value: cc.WavesTiles3D) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/WebView.lua b/cocos/scripting/lua-bindings/auto/api/WebView.lua index 751e0ef854..cb2aea1a8b 100644 --- a/cocos/scripting/lua-bindings/auto/api/WebView.lua +++ b/cocos/scripting/lua-bindings/auto/api/WebView.lua @@ -4,14 +4,6 @@ -- @extend Widget -- @parent_module ccexp --------------------------------- --- Loads the given URL.
--- param url Content URL. --- @function [parent=#WebView] loadURL --- @param self --- @param #string url --- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) - -------------------------------- -- Gets whether this WebView has a back history item.
-- return WebView has a back history item. @@ -42,11 +34,26 @@ -- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) -------------------------------- --- Set javascript interface scheme.
--- see WebView::setOnJSCallback() --- @function [parent=#WebView] setJavascriptInterfaceScheme +-- Set WebView should support zooming. The default value is false. +-- @function [parent=#WebView] setScalesPageToFit -- @param self --- @param #string scheme +-- @param #bool scalesPageToFit +-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) + +-------------------------------- +-- Loads the given fileName.
+-- param fileName Content fileName. +-- @function [parent=#WebView] loadFile +-- @param self +-- @param #string fileName +-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) + +-------------------------------- +-- Loads the given URL.
+-- param url Content URL. +-- @function [parent=#WebView] loadURL +-- @param self +-- @param #string url -- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) -------------------------------- @@ -62,19 +69,6 @@ -- @param self -- @return function#function ret (return value: function) --------------------------------- --- Reloads the current URL. --- @function [parent=#WebView] reload --- @param self --- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) - --------------------------------- --- Set WebView should support zooming. The default value is false. --- @function [parent=#WebView] setScalesPageToFit --- @param self --- @param #bool scalesPageToFit --- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) - -------------------------------- -- Gets whether this WebView has a forward history item.
-- return WebView has a forward history item. @@ -82,20 +76,26 @@ -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- Loads the given fileName.
--- param fileName Content fileName. --- @function [parent=#WebView] loadFile --- @param self --- @param #string fileName --- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) - -------------------------------- -- Stops the current load. -- @function [parent=#WebView] stopLoading -- @param self -- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) +-------------------------------- +-- Reloads the current URL. +-- @function [parent=#WebView] reload +-- @param self +-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) + +-------------------------------- +-- Set javascript interface scheme.
+-- see WebView::setOnJSCallback() +-- @function [parent=#WebView] setJavascriptInterfaceScheme +-- @param self +-- @param #string scheme +-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) + -------------------------------- -- Allocates and initializes a WebView. -- @function [parent=#WebView] create @@ -109,4 +109,10 @@ -- @param #bool visible -- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) +-------------------------------- +-- Default constructor. +-- @function [parent=#WebView] WebView +-- @param self +-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Widget.lua b/cocos/scripting/lua-bindings/auto/api/Widget.lua index 09c7d76a4d..6c5428f66b 100644 --- a/cocos/scripting/lua-bindings/auto/api/Widget.lua +++ b/cocos/scripting/lua-bindings/auto/api/Widget.lua @@ -348,6 +348,17 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- Dispatch a EventFocus through a EventDispatcher
+-- param widgetLoseFocus The widget which lose its focus
+-- param widgetGetFocus he widget whihc get its focus
+-- return void +-- @function [parent=#Widget] dispatchFocusEvent +-- @param self +-- @param #ccui.Widget widgetLoseFocus +-- @param #ccui.Widget widgetGetFocus +-- @return Widget#Widget self (return value: ccui.Widget) + -------------------------------- -- Toggle use unify size.
-- param enable True to use unify size, false otherwise.
@@ -403,6 +414,17 @@ -- @param #size_table parentSize -- @return Widget#Widget self (return value: ccui.Widget) +-------------------------------- +-- This method is called when a focus change event happens
+-- param widgetLostFocus The widget which lose its focus
+-- param widgetGetFocus The widget whihc get its focus
+-- return void +-- @function [parent=#Widget] onFocusChange +-- @param self +-- @param #ccui.Widget widgetLostFocus +-- @param #ccui.Widget widgetGetFocus +-- @return Widget#Widget self (return value: ccui.Widget) + -------------------------------- -- -- @function [parent=#Widget] getTouchMovePosition @@ -437,6 +459,15 @@ -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) +-------------------------------- +-- brief Propagate touch events to its parents +-- @function [parent=#Widget] propagateTouchEvent +-- @param self +-- @param #int event +-- @param #ccui.Widget sender +-- @param #cc.Touch touch +-- @return Widget#Widget self (return value: ccui.Widget) + -------------------------------- -- Returns the flag which indicates whether the widget is flipped horizontally or not.
-- It not only flips the texture of the widget, but also the texture of the widget's children.
@@ -475,6 +506,15 @@ -- @param #int type -- @return Widget#Widget self (return value: ccui.Widget) +-------------------------------- +-- +-- @function [parent=#Widget] interceptTouchEvent +-- @param self +-- @param #int event +-- @param #ccui.Widget sender +-- @param #cc.Touch touch +-- @return Widget#Widget self (return value: ccui.Widget) + -------------------------------- -- Sets whether the widget is bright
-- The default value is true, a widget is default to bright
@@ -555,6 +595,12 @@ -- @param #float scaley -- @return Widget#Widget self (return value: ccui.Widget) +-------------------------------- +-- +-- @function [parent=#Widget] init +-- @param self +-- @return bool#bool ret (return value: bool) + -------------------------------- -- Changes the position (x,y) of the widget in OpenGL coordinates
-- Usually we use p(x,y) to compose a Vec2 object.
diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp index 7a641f832c..0f64f4fb95 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp @@ -5,6 +5,110 @@ +int lua_cocos2dx_3d_Animation3D_initWithFile(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animation3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Animation3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Animation3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animation3D_initWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::string arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Animation3D:initWithFile"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Animation3D:initWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animation3D_initWithFile'", nullptr); + return 0; + } + bool ret = cobj->initWithFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation3D:initWithFile",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animation3D_initWithFile'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Animation3D_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animation3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Animation3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Animation3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animation3D_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Animation3DData arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR Animation3DData + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animation3D_init'", nullptr); + return 0; + } + bool ret = cobj->init(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.Animation3D:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animation3D_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Animation3D_getDuration(lua_State* tolua_S) { int argc = 0; @@ -103,6 +207,43 @@ int lua_cocos2dx_3d_Animation3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_Animation3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animation3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animation3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Animation3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Animation3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation3D:Animation3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animation3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_Animation3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Animation3D)"); @@ -115,6 +256,9 @@ int lua_register_cocos2dx_3d_Animation3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Animation3D","cc.Animation3D","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Animation3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_Animation3D_constructor); + tolua_function(tolua_S,"initWithFile",lua_cocos2dx_3d_Animation3D_initWithFile); + tolua_function(tolua_S,"init",lua_cocos2dx_3d_Animation3D_init); tolua_function(tolua_S,"getDuration",lua_cocos2dx_3d_Animation3D_getDuration); tolua_function(tolua_S,"create", lua_cocos2dx_3d_Animation3D_create); tolua_endmodule(tolua_S); @@ -271,6 +415,112 @@ int lua_cocos2dx_3d_Animate3D_setWeight(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Animate3D_removeFromMap(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animate3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animate3D_removeFromMap'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_removeFromMap'", nullptr); + return 0; + } + cobj->removeFromMap(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate3D:removeFromMap",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animate3D_removeFromMap'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Animate3D_initWithFrames(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animate3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animate3D_initWithFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + cocos2d::Animation3D* arg0; + int arg1; + int arg2; + double arg3; + + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Animate3D:initWithFrames"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Animate3D:initWithFrames"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Animate3D:initWithFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_initWithFrames'", nullptr); + return 0; + } + bool ret = cobj->initWithFrames(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate3D:initWithFrames",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animate3D_initWithFrames'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Animate3D_getOriginInterval(lua_State* tolua_S) { int argc = 0; @@ -368,6 +618,69 @@ int lua_cocos2dx_3d_Animate3D_setSpeed(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Animate3D_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animate3D* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Animate3D_init'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + cocos2d::Animation3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animate3D:init"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Animate3D:init"); + + if (!ok) { break; } + bool ret = cobj->init(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + cocos2d::Animation3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0); + + if (!ok) { break; } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate3D:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animate3D_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Animate3D_setOriginInterval(lua_State* tolua_S) { int argc = 0; @@ -695,6 +1008,43 @@ int lua_cocos2dx_3d_Animate3D_setTransitionTime(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_Animate3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animate3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Animate3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Animate3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate3D:Animate3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Animate3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_Animate3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Animate3D)"); @@ -707,11 +1057,15 @@ int lua_register_cocos2dx_3d_Animate3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Animate3D","cc.Animate3D","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Animate3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_Animate3D_constructor); tolua_function(tolua_S,"getSpeed",lua_cocos2dx_3d_Animate3D_getSpeed); tolua_function(tolua_S,"setQuality",lua_cocos2dx_3d_Animate3D_setQuality); tolua_function(tolua_S,"setWeight",lua_cocos2dx_3d_Animate3D_setWeight); + tolua_function(tolua_S,"removeFromMap",lua_cocos2dx_3d_Animate3D_removeFromMap); + tolua_function(tolua_S,"initWithFrames",lua_cocos2dx_3d_Animate3D_initWithFrames); tolua_function(tolua_S,"getOriginInterval",lua_cocos2dx_3d_Animate3D_getOriginInterval); tolua_function(tolua_S,"setSpeed",lua_cocos2dx_3d_Animate3D_setSpeed); + tolua_function(tolua_S,"init",lua_cocos2dx_3d_Animate3D_init); tolua_function(tolua_S,"setOriginInterval",lua_cocos2dx_3d_Animate3D_setOriginInterval); tolua_function(tolua_S,"getWeight",lua_cocos2dx_3d_Animate3D_getWeight); tolua_function(tolua_S,"getQuality",lua_cocos2dx_3d_Animate3D_getQuality); @@ -726,6 +1080,103 @@ int lua_register_cocos2dx_3d_Animate3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_3d_Skeleton3D_removeAllBones(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Skeleton3D_removeAllBones'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_removeAllBones'", nullptr); + return 0; + } + cobj->removeAllBones(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skeleton3D:removeAllBones",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Skeleton3D_removeAllBones'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Skeleton3D_addBone(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Skeleton3D_addBone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Bone3D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_addBone'", nullptr); + return 0; + } + cobj->addBone(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skeleton3D:addBone",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Skeleton3D_addBone'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) { int argc = 0; @@ -1067,6 +1518,43 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneCount(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Skeleton3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Skeleton3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Skeleton3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Skeleton3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skeleton3D:Skeleton3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Skeleton3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_Skeleton3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Skeleton3D)"); @@ -1079,6 +1567,9 @@ int lua_register_cocos2dx_3d_Skeleton3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Skeleton3D","cc.Skeleton3D","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Skeleton3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_Skeleton3D_constructor); + tolua_function(tolua_S,"removeAllBones",lua_cocos2dx_3d_Skeleton3D_removeAllBones); + tolua_function(tolua_S,"addBone",lua_cocos2dx_3d_Skeleton3D_addBone); tolua_function(tolua_S,"getBoneByName",lua_cocos2dx_3d_Skeleton3D_getBoneByName); tolua_function(tolua_S,"getRootBone",lua_cocos2dx_3d_Skeleton3D_getRootBone); tolua_function(tolua_S,"updateBoneMatrix",lua_cocos2dx_3d_Skeleton3D_updateBoneMatrix); @@ -1093,53 +1584,6 @@ int lua_register_cocos2dx_3d_Skeleton3D(lua_State* tolua_S) return 1; } -int lua_cocos2dx_3d_Sprite3D_isForceDepthWrite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Sprite3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_isForceDepthWrite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_isForceDepthWrite'", nullptr); - return 0; - } - bool ret = cobj->isForceDepthWrite(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:isForceDepthWrite",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_isForceDepthWrite'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_Sprite3D_setCullFaceEnabled(lua_State* tolua_S) { int argc = 0; @@ -1292,6 +1736,56 @@ int lua_cocos2dx_3d_Sprite3D_getLightMask(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Sprite3D_setCullFace(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sprite3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_setCullFace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Sprite3D:setCullFace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_setCullFace'", nullptr); + return 0; + } + cobj->setCullFace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:setCullFace",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_setCullFace'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Sprite3D_removeAllAttachNode(lua_State* tolua_S) { int argc = 0; @@ -1339,56 +1833,6 @@ int lua_cocos2dx_3d_Sprite3D_removeAllAttachNode(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Sprite3D_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Sprite3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Sprite3D:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:setBlendFunc",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_Sprite3D_getMesh(lua_State* tolua_S) { int argc = 0; @@ -1436,7 +1880,7 @@ int lua_cocos2dx_3d_Sprite3D_getMesh(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Sprite3D_setCullFace(lua_State* tolua_S) +int lua_cocos2dx_3d_Sprite3D_getMeshCount(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite3D* cobj = nullptr; @@ -1456,7 +1900,54 @@ int lua_cocos2dx_3d_Sprite3D_setCullFace(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_setCullFace'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getMeshCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getMeshCount'", nullptr); + return 0; + } + ssize_t ret = cobj->getMeshCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getMeshCount",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getMeshCount'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Sprite3D_getMeshByIndex(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sprite3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getMeshByIndex'", nullptr); return 0; } #endif @@ -1464,24 +1955,118 @@ int lua_cocos2dx_3d_Sprite3D_setCullFace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - unsigned int arg0; + int arg0; - ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Sprite3D:setCullFace"); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Sprite3D:getMeshByIndex"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_setCullFace'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getMeshByIndex'", nullptr); return 0; } - cobj->setCullFace(arg0); - lua_settop(tolua_S, 1); + cocos2d::Mesh* ret = cobj->getMeshByIndex(arg0); + object_to_luaval(tolua_S, "cc.Mesh",(cocos2d::Mesh*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:setCullFace",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getMeshByIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_setCullFace'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getMeshByIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Sprite3D_isForceDepthWrite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sprite3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_isForceDepthWrite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_isForceDepthWrite'", nullptr); + return 0; + } + bool ret = cobj->isForceDepthWrite(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:isForceDepthWrite",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_isForceDepthWrite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Sprite3D_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sprite3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getBlendFunc'", nullptr); + return 0; + } + const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getBlendFunc",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getBlendFunc'.",&tolua_err); #endif return 0; @@ -1536,7 +2121,7 @@ int lua_cocos2dx_3d_Sprite3D_setLightMask(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Sprite3D_getBlendFunc(lua_State* tolua_S) +int lua_cocos2dx_3d_Sprite3D_getAttachNode(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite3D* cobj = nullptr; @@ -1556,34 +2141,37 @@ int lua_cocos2dx_3d_Sprite3D_getBlendFunc(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getAttachNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite3D:getAttachNode"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getAttachNode'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); + cocos2d::AttachNode* ret = cobj->getAttachNode(arg0); + object_to_luaval(tolua_S, "cc.AttachNode",(cocos2d::AttachNode*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getBlendFunc",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getAttachNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getAttachNode'.",&tolua_err); #endif return 0; } -int lua_cocos2dx_3d_Sprite3D_getMeshCount(lua_State* tolua_S) +int lua_cocos2dx_3d_Sprite3D_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite3D* cobj = nullptr; @@ -1603,29 +2191,32 @@ int lua_cocos2dx_3d_Sprite3D_getMeshCount(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getMeshCount'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + cocos2d::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Sprite3D:setBlendFunc"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getMeshCount'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_setBlendFunc'", nullptr); return 0; } - ssize_t ret = cobj->getMeshCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getMeshCount",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getMeshCount'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_setBlendFunc'.",&tolua_err); #endif return 0; @@ -1727,56 +2318,6 @@ int lua_cocos2dx_3d_Sprite3D_getSkeleton(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Sprite3D_getMeshByIndex(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Sprite3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getMeshByIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Sprite3D:getMeshByIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getMeshByIndex'", nullptr); - return 0; - } - cocos2d::Mesh* ret = cobj->getMeshByIndex(arg0); - object_to_luaval(tolua_S, "cc.Mesh",(cocos2d::Mesh*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getMeshByIndex",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getMeshByIndex'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_Sprite3D_setForceDepthWrite(lua_State* tolua_S) { int argc = 0; @@ -1877,56 +2418,6 @@ int lua_cocos2dx_3d_Sprite3D_getMeshByName(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Sprite3D_getAttachNode(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Sprite3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Sprite3D_getAttachNode'", nullptr); - 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.Sprite3D:getAttachNode"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3D_getAttachNode'", nullptr); - return 0; - } - cocos2d::AttachNode* ret = cobj->getAttachNode(arg0); - object_to_luaval(tolua_S, "cc.AttachNode",(cocos2d::AttachNode*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getAttachNode",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3D_getAttachNode'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_Sprite3D_create(lua_State* tolua_S) { int argc = 0; @@ -2000,23 +2491,23 @@ int lua_register_cocos2dx_3d_Sprite3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Sprite3D","cc.Sprite3D","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Sprite3D"); - tolua_function(tolua_S,"isForceDepthWrite",lua_cocos2dx_3d_Sprite3D_isForceDepthWrite); tolua_function(tolua_S,"setCullFaceEnabled",lua_cocos2dx_3d_Sprite3D_setCullFaceEnabled); tolua_function(tolua_S,"setTexture",lua_cocos2dx_3d_Sprite3D_setTexture); tolua_function(tolua_S,"getLightMask",lua_cocos2dx_3d_Sprite3D_getLightMask); - tolua_function(tolua_S,"removeAllAttachNode",lua_cocos2dx_3d_Sprite3D_removeAllAttachNode); - tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_3d_Sprite3D_setBlendFunc); - tolua_function(tolua_S,"getMesh",lua_cocos2dx_3d_Sprite3D_getMesh); tolua_function(tolua_S,"setCullFace",lua_cocos2dx_3d_Sprite3D_setCullFace); - tolua_function(tolua_S,"setLightMask",lua_cocos2dx_3d_Sprite3D_setLightMask); - tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_3d_Sprite3D_getBlendFunc); + tolua_function(tolua_S,"removeAllAttachNode",lua_cocos2dx_3d_Sprite3D_removeAllAttachNode); + tolua_function(tolua_S,"getMesh",lua_cocos2dx_3d_Sprite3D_getMesh); tolua_function(tolua_S,"getMeshCount",lua_cocos2dx_3d_Sprite3D_getMeshCount); + tolua_function(tolua_S,"getMeshByIndex",lua_cocos2dx_3d_Sprite3D_getMeshByIndex); + tolua_function(tolua_S,"isForceDepthWrite",lua_cocos2dx_3d_Sprite3D_isForceDepthWrite); + tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_3d_Sprite3D_getBlendFunc); + tolua_function(tolua_S,"setLightMask",lua_cocos2dx_3d_Sprite3D_setLightMask); + tolua_function(tolua_S,"getAttachNode",lua_cocos2dx_3d_Sprite3D_getAttachNode); + tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_3d_Sprite3D_setBlendFunc); tolua_function(tolua_S,"removeAttachNode",lua_cocos2dx_3d_Sprite3D_removeAttachNode); tolua_function(tolua_S,"getSkeleton",lua_cocos2dx_3d_Sprite3D_getSkeleton); - tolua_function(tolua_S,"getMeshByIndex",lua_cocos2dx_3d_Sprite3D_getMeshByIndex); tolua_function(tolua_S,"setForceDepthWrite",lua_cocos2dx_3d_Sprite3D_setForceDepthWrite); tolua_function(tolua_S,"getMeshByName",lua_cocos2dx_3d_Sprite3D_getMeshByName); - tolua_function(tolua_S,"getAttachNode",lua_cocos2dx_3d_Sprite3D_getAttachNode); tolua_function(tolua_S,"create", lua_cocos2dx_3d_Sprite3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sprite3D).name(); @@ -2190,6 +2681,41 @@ int lua_cocos2dx_3d_Sprite3DCache_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_Sprite3DCache_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sprite3DCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Sprite3DCache_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Sprite3DCache(); + tolua_pushusertype(tolua_S,(void*)cobj,"cc.Sprite3DCache"); + tolua_register_gc(tolua_S,lua_gettop(tolua_S)); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3DCache:Sprite3DCache",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Sprite3DCache_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_Sprite3DCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Sprite3DCache)"); @@ -2202,6 +2728,7 @@ int lua_register_cocos2dx_3d_Sprite3DCache(lua_State* tolua_S) tolua_cclass(tolua_S,"Sprite3DCache","cc.Sprite3DCache","",nullptr); tolua_beginmodule(tolua_S,"Sprite3DCache"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_Sprite3DCache_constructor); tolua_function(tolua_S,"removeSprite3DData",lua_cocos2dx_3d_Sprite3DCache_removeSprite3DData); tolua_function(tolua_S,"removeAllSprite3DData",lua_cocos2dx_3d_Sprite3DCache_removeAllSprite3DData); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_3d_Sprite3DCache_destroyInstance); @@ -2213,53 +2740,6 @@ int lua_register_cocos2dx_3d_Sprite3DCache(lua_State* tolua_S) return 1; } -int lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Mesh* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount'", nullptr); - return 0; - } - ssize_t ret = cobj->getMeshVertexAttribCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getMeshVertexAttribCount",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_Mesh_setTexture(lua_State* tolua_S) { int argc = 0; @@ -2362,103 +2842,6 @@ int lua_cocos2dx_3d_Mesh_getTexture(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Mesh_getName(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Mesh* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_getName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getName'", nullptr); - return 0; - } - const std::string& ret = cobj->getName(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getName",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_getName'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_3d_Mesh_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Mesh* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Mesh:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:setBlendFunc",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) { int argc = 0; @@ -2506,7 +2889,7 @@ int lua_cocos2dx_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) +int lua_cocos2dx_3d_Mesh_getName(lua_State* tolua_S) { int argc = 0; cocos2d::Mesh* cobj = nullptr; @@ -2526,7 +2909,7 @@ int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_getName'", nullptr); return 0; } #endif @@ -2536,19 +2919,19 @@ int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getName'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); + const std::string& ret = cobj->getName(); + tolua_pushcppstring(tolua_S,ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getBlendFunc",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_getName'.",&tolua_err); #endif return 0; @@ -2603,6 +2986,150 @@ int lua_cocos2dx_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Mesh_calculateAABB(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_calculateAABB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_calculateAABB'", nullptr); + return 0; + } + cobj->calculateAABB(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:calculateAABB",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_calculateAABB'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'", nullptr); + return 0; + } + const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getBlendFunc",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_setName(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_setName'", nullptr); + 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.Mesh:setName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setName'", nullptr); + return 0; + } + cobj->setName(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:setName",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_setName'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Mesh_isVisible(lua_State* tolua_S) { int argc = 0; @@ -2650,6 +3177,300 @@ int lua_cocos2dx_3d_Mesh_isVisible(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Mesh_bindMeshCommand(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_bindMeshCommand'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_bindMeshCommand'", nullptr); + return 0; + } + cobj->bindMeshCommand(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:bindMeshCommand",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_bindMeshCommand'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_setMeshIndexData(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_setMeshIndexData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::MeshIndexData* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.MeshIndexData",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setMeshIndexData'", nullptr); + return 0; + } + cobj->setMeshIndexData(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:setMeshIndexData",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_setMeshIndexData'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount'", nullptr); + return 0; + } + ssize_t ret = cobj->getMeshVertexAttribCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getMeshVertexAttribCount",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Mesh:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:setBlendFunc",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_setSkin(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_setSkin'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::MeshSkin* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.MeshSkin",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setSkin'", nullptr); + return 0; + } + cobj->setSkin(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:setSkin",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_setSkin'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_3d_Mesh_setGLProgramState(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Mesh_setGLProgramState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::GLProgramState* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.GLProgramState",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setGLProgramState'", nullptr); + return 0; + } + cobj->setGLProgramState(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:setGLProgramState",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_setGLProgramState'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Mesh_setVisible(lua_State* tolua_S) { int argc = 0; @@ -2700,6 +3521,43 @@ int lua_cocos2dx_3d_Mesh_setVisible(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Mesh_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Mesh* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Mesh(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Mesh"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:Mesh",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Mesh_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_Mesh_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Mesh)"); @@ -2712,15 +3570,22 @@ int lua_register_cocos2dx_3d_Mesh(lua_State* tolua_S) tolua_cclass(tolua_S,"Mesh","cc.Mesh","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Mesh"); - tolua_function(tolua_S,"getMeshVertexAttribCount",lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_Mesh_constructor); tolua_function(tolua_S,"setTexture",lua_cocos2dx_3d_Mesh_setTexture); tolua_function(tolua_S,"getTexture",lua_cocos2dx_3d_Mesh_getTexture); - tolua_function(tolua_S,"getName",lua_cocos2dx_3d_Mesh_getName); - tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_3d_Mesh_setBlendFunc); tolua_function(tolua_S,"getVertexSizeInBytes",lua_cocos2dx_3d_Mesh_getVertexSizeInBytes); - tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_3d_Mesh_getBlendFunc); + tolua_function(tolua_S,"getName",lua_cocos2dx_3d_Mesh_getName); tolua_function(tolua_S,"getMeshVertexAttribute",lua_cocos2dx_3d_Mesh_getMeshVertexAttribute); + tolua_function(tolua_S,"calculateAABB",lua_cocos2dx_3d_Mesh_calculateAABB); + tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_3d_Mesh_getBlendFunc); + tolua_function(tolua_S,"setName",lua_cocos2dx_3d_Mesh_setName); tolua_function(tolua_S,"isVisible",lua_cocos2dx_3d_Mesh_isVisible); + tolua_function(tolua_S,"bindMeshCommand",lua_cocos2dx_3d_Mesh_bindMeshCommand); + tolua_function(tolua_S,"setMeshIndexData",lua_cocos2dx_3d_Mesh_setMeshIndexData); + tolua_function(tolua_S,"getMeshVertexAttribCount",lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount); + tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_3d_Mesh_setBlendFunc); + tolua_function(tolua_S,"setSkin",lua_cocos2dx_3d_Mesh_setSkin); + tolua_function(tolua_S,"setGLProgramState",lua_cocos2dx_3d_Mesh_setGLProgramState); tolua_function(tolua_S,"setVisible",lua_cocos2dx_3d_Mesh_setVisible); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Mesh).name(); @@ -2765,6 +3630,43 @@ int lua_cocos2dx_3d_AttachNode_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_AttachNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::AttachNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_AttachNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::AttachNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AttachNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AttachNode:AttachNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_AttachNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_AttachNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AttachNode)"); @@ -2777,6 +3679,7 @@ int lua_register_cocos2dx_3d_AttachNode(lua_State* tolua_S) tolua_cclass(tolua_S,"AttachNode","cc.AttachNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"AttachNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_AttachNode_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_3d_AttachNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AttachNode).name(); @@ -3042,6 +3945,43 @@ int lua_cocos2dx_3d_BillBoard_createWithTexture(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_BillBoard_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::BillBoard* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_BillBoard_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::BillBoard(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.BillBoard"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BillBoard:BillBoard",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_BillBoard_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_BillBoard_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BillBoard)"); @@ -3054,6 +3994,7 @@ int lua_register_cocos2dx_3d_BillBoard(lua_State* tolua_S) tolua_cclass(tolua_S,"BillBoard","cc.BillBoard","cc.Sprite",nullptr); tolua_beginmodule(tolua_S,"BillBoard"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_BillBoard_constructor); tolua_function(tolua_S,"getMode",lua_cocos2dx_3d_BillBoard_getMode); tolua_function(tolua_S,"setMode",lua_cocos2dx_3d_BillBoard_setMode); tolua_function(tolua_S,"create", lua_cocos2dx_3d_BillBoard_create); @@ -3208,6 +4149,43 @@ int lua_cocos2dx_3d_TextureCube_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_TextureCube_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TextureCube* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_TextureCube_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TextureCube(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TextureCube"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCube:TextureCube",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_TextureCube_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_TextureCube_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TextureCube)"); @@ -3220,6 +4198,7 @@ int lua_register_cocos2dx_3d_TextureCube(lua_State* tolua_S) tolua_cclass(tolua_S,"TextureCube","cc.TextureCube","cc.Texture2D",nullptr); tolua_beginmodule(tolua_S,"TextureCube"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_TextureCube_constructor); tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_3d_TextureCube_reloadTexture); tolua_function(tolua_S,"setTexParameters",lua_cocos2dx_3d_TextureCube_setTexParameters); tolua_function(tolua_S,"create", lua_cocos2dx_3d_TextureCube_create); @@ -3277,6 +4256,77 @@ int lua_cocos2dx_3d_Skybox_reload(lua_State* tolua_S) return 0; } +int lua_cocos2dx_3d_Skybox_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Skybox* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Skybox",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::Skybox*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_Skybox_init'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 6) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Skybox:init"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Skybox:init"); + + if (!ok) { break; } + std::string arg2; + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.Skybox:init"); + + if (!ok) { break; } + std::string arg3; + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "cc.Skybox:init"); + + if (!ok) { break; } + std::string arg4; + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.Skybox:init"); + + if (!ok) { break; } + std::string arg5; + ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.Skybox:init"); + + if (!ok) { break; } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skybox:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Skybox_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_3d_Skybox_setTexture(lua_State* tolua_S) { int argc = 0; @@ -3387,6 +4437,43 @@ int lua_cocos2dx_3d_Skybox_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_3d_Skybox_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Skybox* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skybox_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Skybox(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Skybox"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skybox:Skybox",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_Skybox_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_3d_Skybox_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Skybox)"); @@ -3399,7 +4486,9 @@ int lua_register_cocos2dx_3d_Skybox(lua_State* tolua_S) tolua_cclass(tolua_S,"Skybox","cc.Skybox","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Skybox"); + tolua_function(tolua_S,"new",lua_cocos2dx_3d_Skybox_constructor); tolua_function(tolua_S,"reload",lua_cocos2dx_3d_Skybox_reload); + tolua_function(tolua_S,"init",lua_cocos2dx_3d_Skybox_init); tolua_function(tolua_S,"setTexture",lua_cocos2dx_3d_Skybox_setTexture); tolua_function(tolua_S,"create", lua_cocos2dx_3d_Skybox_create); tolua_endmodule(tolua_S); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp index b26b4797b2..930ad92d40 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp @@ -83,6 +83,29 @@ int register_all_cocos2dx_3d(lua_State* tolua_S); + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 18911b4c33..e1cc7aab8c 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -1271,6 +1271,53 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) return 0; } +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_getSpeed'", nullptr); + return 0; + } + double ret = cobj->getSpeed(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getSpeed'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) { int argc = 0; @@ -1321,6 +1368,59 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Speed_initWithAction(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_initWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::ActionInterval* arg0; + double arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Speed:initWithAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:initWithAction",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_initWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) { int argc = 0; @@ -1368,53 +1468,6 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) return 0; } -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_getSpeed'", nullptr); - return 0; - } - double ret = cobj->getSpeed(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_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; @@ -1453,6 +1506,43 @@ int lua_cocos2dx_Speed_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Speed_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Speed* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Speed(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Speed"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:Speed",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Speed_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Speed)"); @@ -1465,10 +1555,12 @@ int lua_register_cocos2dx_Speed(lua_State* tolua_S) tolua_cclass(tolua_S,"Speed","cc.Speed","cc.Action",nullptr); tolua_beginmodule(tolua_S,"Speed"); + tolua_function(tolua_S,"new",lua_cocos2dx_Speed_constructor); 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,"setSpeed",lua_cocos2dx_Speed_setSpeed); + tolua_function(tolua_S,"initWithAction",lua_cocos2dx_Speed_initWithAction); + tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Speed).name(); @@ -1527,6 +1619,73 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Follow_initWithTarget(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); + return 0; + } + bool ret = cobj->initWithTarget(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + cocos2d::Node* arg0; + cocos2d::Rect arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Follow:initWithTarget"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); + return 0; + } + bool ret = cobj->initWithTarget(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:initWithTarget",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_initWithTarget'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) { int argc = 0; @@ -1625,6 +1784,43 @@ int lua_cocos2dx_Follow_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Follow_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Follow* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Follow(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Follow"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:Follow",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Follow_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Follow)"); @@ -1637,7 +1833,9 @@ int lua_register_cocos2dx_Follow(lua_State* tolua_S) tolua_cclass(tolua_S,"Follow","cc.Follow","cc.Action",nullptr); tolua_beginmodule(tolua_S,"Follow"); + tolua_function(tolua_S,"new",lua_cocos2dx_Follow_constructor); tolua_function(tolua_S,"setBoundarySet",lua_cocos2dx_Follow_setBoundarySet); + tolua_function(tolua_S,"initWithTarget",lua_cocos2dx_Follow_initWithTarget); tolua_function(tolua_S,"isBoundarySet",lua_cocos2dx_Follow_isBoundarySet); tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); tolua_endmodule(tolua_S); @@ -3797,6 +3995,46 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Event_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Event* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Event::Type arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Event:Event"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Event(arg0); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Event"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:Event",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Event_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Event)"); @@ -3809,6 +4047,7 @@ int lua_register_cocos2dx_Event(lua_State* tolua_S) tolua_cclass(tolua_S,"Event","cc.Event","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Event"); + tolua_function(tolua_S,"new",lua_cocos2dx_Event_constructor); 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); @@ -4735,6 +4974,53 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Node_init(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) { int argc = 0; @@ -10619,6 +10905,43 @@ int lua_cocos2dx_Node_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Node_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Node* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Node(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Node"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:Node",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Node_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Node)"); @@ -10631,6 +10954,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) tolua_cclass(tolua_S,"Node","cc.Node","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Node"); + tolua_function(tolua_S,"new",lua_cocos2dx_Node_constructor); tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); tolua_function(tolua_S,"removeComponent",lua_cocos2dx_Node_removeComponent); tolua_function(tolua_S,"getDescription",lua_cocos2dx_Node_getDescription); @@ -10644,6 +10968,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) 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,"init",lua_cocos2dx_Node_init); 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); @@ -11402,6 +11727,81 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) return 0; } +int lua_cocos2dx_SpriteFrame_initWithTexture(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_initWithTexture'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 5) { + cocos2d::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTexture"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:initWithTexture"); + + if (!ok) { break; } + cocos2d::Vec2 arg3; + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:initWithTexture"); + + if (!ok) { break; } + cocos2d::Size arg4; + ok &= luaval_to_size(tolua_S, 6, &arg4, "cc.SpriteFrame:initWithTexture"); + + if (!ok) { break; } + bool ret = cobj->initWithTexture(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + cocos2d::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTexture"); + + if (!ok) { break; } + bool ret = cobj->initWithTexture(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:initWithTexture",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_initWithTexture'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) { int argc = 0; @@ -11449,6 +11849,81 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) return 0; } +int lua_cocos2dx_SpriteFrame_initWithTextureFilename(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_initWithTextureFilename'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 5) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + cocos2d::Vec2 arg3; + ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + cocos2d::Size arg4; + ok &= luaval_to_size(tolua_S, 6, &arg4, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + bool ret = cobj->initWithTextureFilename(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTextureFilename"); + + if (!ok) { break; } + bool ret = cobj->initWithTextureFilename(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:initWithTextureFilename",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_initWithTextureFilename'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) { int argc = 0; @@ -11719,6 +12194,43 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SpriteFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SpriteFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SpriteFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SpriteFrame"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:SpriteFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SpriteFrame_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteFrame)"); @@ -11731,6 +12243,7 @@ int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) tolua_cclass(tolua_S,"SpriteFrame","cc.SpriteFrame","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"SpriteFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_SpriteFrame_constructor); 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); @@ -11744,7 +12257,9 @@ int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) 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,"initWithTexture",lua_cocos2dx_SpriteFrame_initWithTexture); tolua_function(tolua_S,"isRotated",lua_cocos2dx_SpriteFrame_isRotated); + tolua_function(tolua_S,"initWithTextureFilename",lua_cocos2dx_SpriteFrame_initWithTextureFilename); 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); @@ -12095,6 +12610,62 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) return 0; } +int lua_cocos2dx_AnimationFrame_initWithSpriteFrame(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_initWithSpriteFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + cocos2d::SpriteFrame* arg0; + double arg1; + cocos2d::ValueMap arg2; + + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.AnimationFrame:initWithSpriteFrame"); + + ok &= luaval_to_ccvaluemap(tolua_S, 4, &arg2, "cc.AnimationFrame:initWithSpriteFrame"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_initWithSpriteFrame'", nullptr); + return 0; + } + bool ret = cobj->initWithSpriteFrame(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:initWithSpriteFrame",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_initWithSpriteFrame'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) { int argc = 0; @@ -12135,6 +12706,43 @@ int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_AnimationFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::AnimationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::AnimationFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AnimationFrame"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:AnimationFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_AnimationFrame_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AnimationFrame)"); @@ -12147,6 +12755,7 @@ int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) tolua_cclass(tolua_S,"AnimationFrame","cc.AnimationFrame","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_AnimationFrame_constructor); 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); @@ -12154,6 +12763,7 @@ int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) 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,"initWithSpriteFrame",lua_cocos2dx_AnimationFrame_initWithSpriteFrame); tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationFrame).name(); @@ -12403,6 +13013,109 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Animation_initWithAnimationFrames(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_initWithAnimationFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + cocos2d::Vector arg0; + double arg1; + unsigned int arg2; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithAnimationFrames"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:initWithAnimationFrames"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:initWithAnimationFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithAnimationFrames'", nullptr); + return 0; + } + bool ret = cobj->initWithAnimationFrames(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:initWithAnimationFrames",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_initWithAnimationFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Animation_init(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) { int argc = 0; @@ -12744,6 +13457,93 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Animation_initWithSpriteFrames(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); + return 0; + } + bool ret = cobj->initWithSpriteFrames(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + cocos2d::Vector arg0; + double arg1; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:initWithSpriteFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); + return 0; + } + bool ret = cobj->initWithSpriteFrames(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 3) + { + cocos2d::Vector arg0; + double arg1; + unsigned int arg2; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:initWithSpriteFrames"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:initWithSpriteFrames"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); + return 0; + } + bool ret = cobj->initWithSpriteFrames(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:initWithSpriteFrames",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_initWithSpriteFrames'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) { int argc = 0; @@ -12979,6 +13779,43 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Animation_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animation* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Animation(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Animation"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:Animation",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Animation_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Animation)"); @@ -12991,11 +13828,14 @@ int lua_register_cocos2dx_Animation(lua_State* tolua_S) tolua_cclass(tolua_S,"Animation","cc.Animation","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Animation"); + tolua_function(tolua_S,"new",lua_cocos2dx_Animation_constructor); 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,"initWithAnimationFrames",lua_cocos2dx_Animation_initWithAnimationFrames); + tolua_function(tolua_S,"init",lua_cocos2dx_Animation_init); 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); @@ -13003,6 +13843,7 @@ int lua_register_cocos2dx_Animation(lua_State* tolua_S) 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,"initWithSpriteFrames",lua_cocos2dx_Animation_initWithSpriteFrames); 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); @@ -13061,6 +13902,56 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ActionInterval_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionInterval:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionInterval_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(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.ActionInterval:initWithDuration",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -13171,6 +14062,7 @@ int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionInterval"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionInterval_initWithDuration); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); tolua_endmodule(tolua_S); @@ -13180,6 +14072,96 @@ int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Sequence_initWithTwoActions(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sequence* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Sequence",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Sequence*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sequence_initWithTwoActions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::FiniteTimeAction* arg0; + cocos2d::FiniteTimeAction* arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0); + + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_initWithTwoActions'", nullptr); + return 0; + } + bool ret = cobj->initWithTwoActions(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sequence:initWithTwoActions",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sequence_initWithTwoActions'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Sequence_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sequence* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Sequence(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Sequence"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sequence:Sequence",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sequence_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Sequence_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Sequence)"); @@ -13192,6 +14174,8 @@ int lua_register_cocos2dx_Sequence(lua_State* tolua_S) tolua_cclass(tolua_S,"Sequence","cc.Sequence","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Sequence"); + tolua_function(tolua_S,"new",lua_cocos2dx_Sequence_constructor); + tolua_function(tolua_S,"initWithTwoActions",lua_cocos2dx_Sequence_initWithTwoActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sequence).name(); g_luaType[typeName] = "cc.Sequence"; @@ -13249,6 +14233,59 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Repeat_initWithAction(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_initWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::FiniteTimeAction* arg0; + unsigned int arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0); + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Repeat:initWithAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:initWithAction",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_initWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) { int argc = 0; @@ -13334,6 +14371,43 @@ int lua_cocos2dx_Repeat_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Repeat_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Repeat* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Repeat(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Repeat"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:Repeat",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Repeat_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Repeat)"); @@ -13346,7 +14420,9 @@ int lua_register_cocos2dx_Repeat(lua_State* tolua_S) tolua_cclass(tolua_S,"Repeat","cc.Repeat","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Repeat"); + tolua_function(tolua_S,"new",lua_cocos2dx_Repeat_constructor); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); + tolua_function(tolua_S,"initWithAction",lua_cocos2dx_Repeat_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); tolua_endmodule(tolua_S); @@ -13406,6 +14482,56 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) return 0; } +int lua_cocos2dx_RepeatForever_initWithAction(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_initWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ActionInterval* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(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.RepeatForever:initWithAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_initWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) { int argc = 0; @@ -13489,6 +14615,43 @@ int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_RepeatForever_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RepeatForever* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::RepeatForever(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RepeatForever"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:RepeatForever",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_RepeatForever_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RepeatForever)"); @@ -13501,7 +14664,9 @@ int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) tolua_cclass(tolua_S,"RepeatForever","cc.RepeatForever","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RepeatForever"); + tolua_function(tolua_S,"new",lua_cocos2dx_RepeatForever_constructor); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); + tolua_function(tolua_S,"initWithAction",lua_cocos2dx_RepeatForever_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); tolua_endmodule(tolua_S); @@ -13511,6 +14676,96 @@ int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Spawn_initWithTwoActions(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Spawn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Spawn",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Spawn*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Spawn_initWithTwoActions'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::FiniteTimeAction* arg0; + cocos2d::FiniteTimeAction* arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0); + + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_initWithTwoActions'", nullptr); + return 0; + } + bool ret = cobj->initWithTwoActions(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Spawn:initWithTwoActions",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Spawn_initWithTwoActions'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Spawn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Spawn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Spawn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Spawn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Spawn:Spawn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Spawn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Spawn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Spawn)"); @@ -13523,6 +14778,8 @@ int lua_register_cocos2dx_Spawn(lua_State* tolua_S) tolua_cclass(tolua_S,"Spawn","cc.Spawn","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Spawn"); + tolua_function(tolua_S,"new",lua_cocos2dx_Spawn_constructor); + tolua_function(tolua_S,"initWithTwoActions",lua_cocos2dx_Spawn_initWithTwoActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Spawn).name(); g_luaType[typeName] = "cc.Spawn"; @@ -13530,6 +14787,73 @@ int lua_register_cocos2dx_Spawn(lua_State* tolua_S) return 1; } +int lua_cocos2dx_RotateTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RotateTo* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.RotateTo",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::RotateTo*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RotateTo_initWithDuration'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:initWithDuration"); + + if (!ok) { break; } + cocos2d::Vec3 arg1; + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:initWithDuration"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateTo:initWithDuration"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateTo:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) { int argc = 0; @@ -13603,6 +14927,43 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_RotateTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RotateTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RotateTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::RotateTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RotateTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateTo:RotateTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_RotateTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RotateTo)"); @@ -13615,6 +14976,8 @@ int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) tolua_cclass(tolua_S,"RotateTo","cc.RotateTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RotateTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_RotateTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_RotateTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateTo).name(); @@ -13623,6 +14986,89 @@ int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_RotateBy_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RotateBy* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.RotateBy",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::RotateBy*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RotateBy_initWithDuration'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + cocos2d::Vec3 arg1; + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateBy:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateBy:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) { int argc = 0; @@ -13696,6 +15142,43 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_RotateBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RotateBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RotateBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::RotateBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RotateBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateBy:RotateBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_RotateBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RotateBy)"); @@ -13708,6 +15191,8 @@ int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) tolua_cclass(tolua_S,"RotateBy","cc.RotateBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RotateBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_RotateBy_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_RotateBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateBy).name(); @@ -13716,6 +15201,69 @@ int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_MoveBy_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MoveBy* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.MoveBy",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::MoveBy*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MoveBy_initWithDuration'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:initWithDuration"); + + if (!ok) { break; } + cocos2d::Vec3 arg1; + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveBy:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:initWithDuration"); + + if (!ok) { break; } + cocos2d::Vec2 arg1; + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveBy:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveBy:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) { int argc = 0; @@ -13770,6 +15318,43 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_MoveBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MoveBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MoveBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MoveBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MoveBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveBy:MoveBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MoveBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MoveBy)"); @@ -13782,6 +15367,8 @@ int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) tolua_cclass(tolua_S,"MoveBy","cc.MoveBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"MoveBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_MoveBy_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_MoveBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveBy).name(); @@ -13790,6 +15377,69 @@ int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_MoveTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MoveTo* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.MoveTo",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::MoveTo*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MoveTo_initWithDuration'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:initWithDuration"); + + if (!ok) { break; } + cocos2d::Vec3 arg1; + ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:initWithDuration"); + + if (!ok) { break; } + cocos2d::Vec2 arg1; + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveTo:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) { int argc = 0; @@ -13844,6 +15494,43 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_MoveTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MoveTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MoveTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MoveTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MoveTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveTo:MoveTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MoveTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MoveTo)"); @@ -13856,6 +15543,8 @@ int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) tolua_cclass(tolua_S,"MoveTo","cc.MoveTo","cc.MoveBy",nullptr); tolua_beginmodule(tolua_S,"MoveTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_MoveTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_MoveTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveTo).name(); @@ -13864,6 +15553,62 @@ int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_SkewTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SkewTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.SkewTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::SkewTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SkewTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + double arg0; + double arg1; + double arg2; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SkewTo:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.SkewTo:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SkewTo:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewTo:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) { int argc = 0; @@ -13904,6 +15649,43 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SkewTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SkewTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SkewTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SkewTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewTo:SkewTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SkewTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkewTo)"); @@ -13916,6 +15698,8 @@ int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) tolua_cclass(tolua_S,"SkewTo","cc.SkewTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"SkewTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_SkewTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SkewTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewTo).name(); @@ -13924,6 +15708,62 @@ int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_SkewBy_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SkewBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.SkewBy",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::SkewBy*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SkewBy_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + double arg0; + double arg1; + double arg2; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SkewBy:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.SkewBy:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SkewBy:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewBy:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) { int argc = 0; @@ -13964,6 +15804,43 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SkewBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SkewBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SkewBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SkewBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewBy:SkewBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SkewBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkewBy)"); @@ -13976,6 +15853,8 @@ int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) tolua_cclass(tolua_S,"SkewBy","cc.SkewBy","cc.SkewTo",nullptr); tolua_beginmodule(tolua_S,"SkewBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_SkewBy_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SkewBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewBy).name(); @@ -13984,6 +15863,65 @@ int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_JumpBy_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::JumpBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.JumpBy",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::JumpBy*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpBy_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Vec2 arg1; + double arg2; + int arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpBy:initWithDuration"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.JumpBy:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.JumpBy:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.JumpBy:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpBy:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) { int argc = 0; @@ -14026,6 +15964,43 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_JumpBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::JumpBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::JumpBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.JumpBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpBy:JumpBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_JumpBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (JumpBy)"); @@ -14038,6 +16013,8 @@ int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) tolua_cclass(tolua_S,"JumpBy","cc.JumpBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"JumpBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_JumpBy_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpBy).name(); @@ -14046,6 +16023,65 @@ int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_JumpTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::JumpTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.JumpTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::JumpTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Vec2 arg1; + double arg2; + int arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTo:initWithDuration"); + + ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.JumpTo:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.JumpTo:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.JumpTo:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTo:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) { int argc = 0; @@ -14088,6 +16124,43 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_JumpTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::JumpTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::JumpTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.JumpTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTo:JumpTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_JumpTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (JumpTo)"); @@ -14100,6 +16173,8 @@ int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) tolua_cclass(tolua_S,"JumpTo","cc.JumpTo","cc.JumpBy",nullptr); tolua_beginmodule(tolua_S,"JumpTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_JumpTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTo).name(); @@ -14108,6 +16183,97 @@ int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_BezierBy_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::BezierBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.BezierBy",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::BezierBy*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BezierBy_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + cocos2d::_ccBezierConfig arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BezierBy:initWithDuration"); + + #pragma warning NO CONVERSION TO NATIVE FOR _ccBezierConfig + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierBy_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierBy:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierBy_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_BezierBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::BezierBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::BezierBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.BezierBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierBy:BezierBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_BezierBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BezierBy)"); @@ -14120,6 +16286,8 @@ int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) tolua_cclass(tolua_S,"BezierBy","cc.BezierBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"BezierBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_BezierBy_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_BezierBy_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierBy).name(); g_luaType[typeName] = "cc.BezierBy"; @@ -14127,6 +16295,97 @@ int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_BezierTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::BezierTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.BezierTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::BezierTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BezierTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + cocos2d::_ccBezierConfig arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BezierTo:initWithDuration"); + + #pragma warning NO CONVERSION TO NATIVE FOR _ccBezierConfig + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierTo:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_BezierTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::BezierTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::BezierTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.BezierTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierTo:BezierTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_BezierTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BezierTo)"); @@ -14139,6 +16398,8 @@ int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) tolua_cclass(tolua_S,"BezierTo","cc.BezierTo","cc.BezierBy",nullptr); tolua_beginmodule(tolua_S,"BezierTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_BezierTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_BezierTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierTo).name(); g_luaType[typeName] = "cc.BezierTo"; @@ -14146,6 +16407,97 @@ int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ScaleTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ScaleTo* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ScaleTo",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::ScaleTo*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ScaleTo_initWithDuration'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 4) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + double arg3; + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ScaleTo:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScaleTo:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) { int argc = 0; @@ -14225,6 +16577,43 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ScaleTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ScaleTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ScaleTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ScaleTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ScaleTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScaleTo:ScaleTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ScaleTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ScaleTo)"); @@ -14237,6 +16626,8 @@ int lua_register_cocos2dx_ScaleTo(lua_State* tolua_S) tolua_cclass(tolua_S,"ScaleTo","cc.ScaleTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ScaleTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_ScaleTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ScaleTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleTo).name(); @@ -14324,6 +16715,43 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ScaleBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ScaleBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ScaleBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ScaleBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ScaleBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScaleBy:ScaleBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ScaleBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ScaleBy)"); @@ -14336,6 +16764,7 @@ int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) tolua_cclass(tolua_S,"ScaleBy","cc.ScaleBy","cc.ScaleTo",nullptr); tolua_beginmodule(tolua_S,"ScaleBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_ScaleBy_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleBy).name(); @@ -14344,6 +16773,59 @@ int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Blink_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Blink* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Blink",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Blink*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Blink_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + int arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Blink:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Blink:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Blink:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Blink_create(lua_State* tolua_S) { int argc = 0; @@ -14382,6 +16864,43 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Blink_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Blink* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Blink(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Blink"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Blink:Blink",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Blink_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Blink)"); @@ -14394,6 +16913,8 @@ int lua_register_cocos2dx_Blink(lua_State* tolua_S) tolua_cclass(tolua_S,"Blink","cc.Blink","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Blink"); + tolua_function(tolua_S,"new",lua_cocos2dx_Blink_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Blink_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Blink).name(); @@ -14402,6 +16923,59 @@ int lua_register_cocos2dx_Blink(lua_State* tolua_S) return 1; } +int lua_cocos2dx_FadeTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.FadeTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::FadeTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + uint16_t arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeTo:initWithDuration"); + + ok &= luaval_to_uint16(tolua_S, 3,&arg1, "cc.FadeTo:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeTo:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) { int argc = 0; @@ -14440,6 +17014,43 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeTo:FadeTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeTo)"); @@ -14452,6 +17063,8 @@ int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeTo","cc.FadeTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"FadeTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_FadeTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeTo).name(); @@ -14546,6 +17159,43 @@ int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeIn:FadeIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeIn)"); @@ -14558,6 +17208,7 @@ int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeIn","cc.FadeIn","cc.FadeTo",nullptr); tolua_beginmodule(tolua_S,"FadeIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeIn_constructor); tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); tolua_endmodule(tolua_S); @@ -14653,6 +17304,43 @@ int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOut:FadeOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOut)"); @@ -14665,6 +17353,7 @@ int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeOut","cc.FadeOut","cc.FadeTo",nullptr); tolua_beginmodule(tolua_S,"FadeOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeOut_constructor); tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); tolua_endmodule(tolua_S); @@ -14674,6 +17363,65 @@ int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) return 1; } +int lua_cocos2dx_TintTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TintTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.TintTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::TintTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TintTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + uint16_t arg1; + uint16_t arg2; + uint16_t arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintTo:initWithDuration"); + + ok &= luaval_to_uint16(tolua_S, 3,&arg1, "cc.TintTo:initWithDuration"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "cc.TintTo:initWithDuration"); + + ok &= luaval_to_uint16(tolua_S, 5,&arg3, "cc.TintTo:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintTo:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TintTo_create(lua_State* tolua_S) { int argc = 0; @@ -14734,6 +17482,43 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TintTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TintTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TintTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TintTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintTo:TintTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TintTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TintTo)"); @@ -14746,6 +17531,8 @@ int lua_register_cocos2dx_TintTo(lua_State* tolua_S) tolua_cclass(tolua_S,"TintTo","cc.TintTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TintTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_TintTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TintTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintTo).name(); @@ -14754,6 +17541,65 @@ int lua_register_cocos2dx_TintTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_TintBy_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TintBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.TintBy",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::TintBy*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TintBy_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + int32_t arg1; + int32_t arg2; + int32_t arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintBy:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 3,&arg1, "cc.TintBy:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 4,&arg2, "cc.TintBy:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 5,&arg3, "cc.TintBy:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintBy:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TintBy_create(lua_State* tolua_S) { int argc = 0; @@ -14796,6 +17642,43 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TintBy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TintBy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TintBy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TintBy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintBy:TintBy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TintBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TintBy)"); @@ -14808,6 +17691,8 @@ int lua_register_cocos2dx_TintBy(lua_State* tolua_S) tolua_cclass(tolua_S,"TintBy","cc.TintBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TintBy"); + tolua_function(tolua_S,"new",lua_cocos2dx_TintBy_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TintBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintBy).name(); @@ -14852,6 +17737,43 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_DelayTime_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::DelayTime* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DelayTime_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::DelayTime(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DelayTime"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DelayTime:DelayTime",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DelayTime_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_DelayTime_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DelayTime)"); @@ -14864,6 +17786,7 @@ int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) tolua_cclass(tolua_S,"DelayTime","cc.DelayTime","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"DelayTime"); + tolua_function(tolua_S,"new",lua_cocos2dx_DelayTime_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DelayTime).name(); @@ -14919,6 +17842,56 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Animate_initWithAnimation(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_initWithAnimation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Animation* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_initWithAnimation'", nullptr); + return 0; + } + bool ret = cobj->initWithAnimation(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.Animate:initWithAnimation",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_initWithAnimation'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) { int argc = 0; @@ -15005,6 +17978,43 @@ int lua_cocos2dx_Animate_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Animate_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Animate* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Animate(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Animate"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:Animate",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Animate_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Animate)"); @@ -15017,7 +18027,9 @@ int lua_register_cocos2dx_Animate(lua_State* tolua_S) tolua_cclass(tolua_S,"Animate","cc.Animate","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Animate"); + tolua_function(tolua_S,"new",lua_cocos2dx_Animate_constructor); tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); + tolua_function(tolua_S,"initWithAnimation",lua_cocos2dx_Animate_initWithAnimation); tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); tolua_endmodule(tolua_S); @@ -15074,6 +18086,59 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) return 0; } +int lua_cocos2dx_TargetedAction_initWithTarget(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TargetedAction_initWithTarget'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::Node* arg0; + cocos2d::FiniteTimeAction* arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_initWithTarget'", nullptr); + return 0; + } + bool ret = cobj->initWithTarget(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:initWithTarget",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_initWithTarget'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) { int argc = 0; @@ -15162,6 +18227,43 @@ int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TargetedAction_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TargetedAction* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TargetedAction(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TargetedAction"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:TargetedAction",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TargetedAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TargetedAction)"); @@ -15174,7 +18276,9 @@ int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) tolua_cclass(tolua_S,"TargetedAction","cc.TargetedAction","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TargetedAction"); + tolua_function(tolua_S,"new",lua_cocos2dx_TargetedAction_constructor); tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); + tolua_function(tolua_S,"initWithTarget",lua_cocos2dx_TargetedAction_initWithTarget); tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); tolua_endmodule(tolua_S); @@ -15184,6 +18288,53 @@ int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Scene_setCameraOrderDirty(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_setCameraOrderDirty'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_setCameraOrderDirty'", nullptr); + return 0; + } + cobj->setCameraOrderDirty(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:setCameraOrderDirty",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_setCameraOrderDirty'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Scene_render(lua_State* tolua_S) { int argc = 0; @@ -15234,6 +18385,106 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Scene_onProjectionChanged(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_onProjectionChanged'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::EventCustom* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_onProjectionChanged'", nullptr); + return 0; + } + cobj->onProjectionChanged(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:onProjectionChanged",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_onProjectionChanged'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Scene_initWithSize(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_initWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Size arg0; + + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Scene:initWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_initWithSize'", nullptr); + return 0; + } + bool ret = cobj->initWithSize(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.Scene:initWithSize",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_initWithSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Scene_getDefaultCamera(lua_State* tolua_S) { int argc = 0; @@ -15351,6 +18602,43 @@ int lua_cocos2dx_Scene_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Scene_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Scene* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Scene(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Scene"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:Scene",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Scene_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Scene)"); @@ -15363,7 +18651,11 @@ int lua_register_cocos2dx_Scene(lua_State* tolua_S) tolua_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Scene"); + tolua_function(tolua_S,"new",lua_cocos2dx_Scene_constructor); + tolua_function(tolua_S,"setCameraOrderDirty",lua_cocos2dx_Scene_setCameraOrderDirty); tolua_function(tolua_S,"render",lua_cocos2dx_Scene_render); + tolua_function(tolua_S,"onProjectionChanged",lua_cocos2dx_Scene_onProjectionChanged); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_Scene_initWithSize); tolua_function(tolua_S,"getDefaultCamera",lua_cocos2dx_Scene_getDefaultCamera); tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); @@ -21785,6 +25077,56 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) return 0; } +int lua_cocos2dx_FileUtils_getSuitableFOpen(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSuitableFOpen'", nullptr); + 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.FileUtils:getSuitableFOpen"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getSuitableFOpen'", nullptr); + return 0; + } + std::string ret = cobj->getSuitableFOpen(arg0); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSuitableFOpen",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSuitableFOpen'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_FileUtils_setWritablePath(lua_State* tolua_S) { int argc = 0; @@ -22231,6 +25573,7 @@ int lua_register_cocos2dx_FileUtils(lua_State* tolua_S) 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,"getSuitableFOpen",lua_cocos2dx_FileUtils_getSuitableFOpen); tolua_function(tolua_S,"setWritablePath",lua_cocos2dx_FileUtils_setWritablePath); tolua_function(tolua_S,"setPopupNotify",lua_cocos2dx_FileUtils_setPopupNotify); tolua_function(tolua_S,"isDirectoryExist",lua_cocos2dx_FileUtils_isDirectoryExist); @@ -23039,53 +26382,6 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) return 0; } -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_clone'", nullptr); - return 0; - } - cocos2d::EventListener* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.EventListener",(cocos2d::EventListener*)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_clone'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) { int argc = 0; @@ -23133,6 +26429,53 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) return 0; } +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_clone'", nullptr); + return 0; + } + cocos2d::EventListener* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.EventListener",(cocos2d::EventListener*)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_clone'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) { int argc = 0; @@ -23193,8 +26536,8 @@ int lua_register_cocos2dx_EventListener(lua_State* tolua_S) 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,"clone",lua_cocos2dx_EventListener_clone); tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListener).name(); @@ -24132,6 +27475,90 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S return 0; } +int lua_cocos2dx_EventListenerTouchOneByOne_init(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_EventListenerTouchOneByOne_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerTouchOneByOne* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerTouchOneByOne(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerTouchOneByOne"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:EventListenerTouchOneByOne",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerTouchOneByOne_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerTouchOneByOne)"); @@ -24144,8 +27571,10 @@ int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerTouchOneByOne","cc.EventListenerTouchOneByOne","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerTouchOneByOne"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerTouchOneByOne_constructor); tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); + tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerTouchOneByOne_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchOneByOne).name(); g_luaType[typeName] = "cc.EventListenerTouchOneByOne"; @@ -24153,6 +27582,90 @@ int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) return 1; } +int lua_cocos2dx_EventListenerTouchAllAtOnce_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerTouchAllAtOnce* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchAllAtOnce",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::EventListenerTouchAllAtOnce*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchAllAtOnce:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_EventListenerTouchAllAtOnce_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerTouchAllAtOnce* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerTouchAllAtOnce(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerTouchAllAtOnce"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchAllAtOnce:EventListenerTouchAllAtOnce",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerTouchAllAtOnce_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerTouchAllAtOnce)"); @@ -24165,6 +27678,8 @@ int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerTouchAllAtOnce","cc.EventListenerTouchAllAtOnce","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerTouchAllAtOnce"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerTouchAllAtOnce_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerTouchAllAtOnce_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchAllAtOnce).name(); g_luaType[typeName] = "cc.EventListenerTouchAllAtOnce"; @@ -24172,6 +27687,90 @@ int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) return 1; } +int lua_cocos2dx_EventListenerKeyboard_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerKeyboard* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventListenerKeyboard",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::EventListenerKeyboard*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerKeyboard_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerKeyboard_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerKeyboard:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerKeyboard_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_EventListenerKeyboard_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerKeyboard* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerKeyboard_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerKeyboard(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerKeyboard"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerKeyboard:EventListenerKeyboard",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerKeyboard_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerKeyboard_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerKeyboard)"); @@ -24184,6 +27783,8 @@ int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerKeyboard","cc.EventListenerKeyboard","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerKeyboard"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerKeyboard_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerKeyboard_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerKeyboard).name(); g_luaType[typeName] = "cc.EventListenerKeyboard"; @@ -24986,6 +28587,90 @@ int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) return 1; } +int lua_cocos2dx_EventListenerMouse_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerMouse* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventListenerMouse",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::EventListenerMouse*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerMouse_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerMouse_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerMouse:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerMouse_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_EventListenerMouse_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerMouse* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerMouse_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerMouse(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerMouse"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerMouse:EventListenerMouse",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerMouse_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerMouse_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerMouse)"); @@ -24998,6 +28683,8 @@ int lua_register_cocos2dx_EventListenerMouse(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerMouse","cc.EventListenerMouse","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerMouse"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerMouse_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerMouse_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerMouse).name(); g_luaType[typeName] = "cc.EventListenerMouse"; @@ -25024,6 +28711,97 @@ int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) return 1; } +int lua_cocos2dx_EventListenerAcceleration_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerAcceleration* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventListenerAcceleration",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::EventListenerAcceleration*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerAcceleration_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerAcceleration_init'", nullptr); + return 0; + } + bool ret = cobj->init(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.EventListenerAcceleration:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerAcceleration_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_EventListenerAcceleration_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerAcceleration* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerAcceleration_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerAcceleration(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerAcceleration"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerAcceleration:EventListenerAcceleration",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerAcceleration_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerAcceleration_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerAcceleration)"); @@ -25036,6 +28814,8 @@ int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerAcceleration","cc.EventListenerAcceleration","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerAcceleration"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerAcceleration_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerAcceleration_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerAcceleration).name(); g_luaType[typeName] = "cc.EventListenerAcceleration"; @@ -25151,6 +28931,43 @@ int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) return 1; } +int lua_cocos2dx_EventListenerCustom_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerCustom* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerCustom_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerCustom(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerCustom"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerCustom:EventListenerCustom",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerCustom_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerCustom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerCustom)"); @@ -25163,6 +28980,7 @@ int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerCustom","cc.EventListenerCustom","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerCustom"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerCustom_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerCustom).name(); g_luaType[typeName] = "cc.EventListenerCustom"; @@ -25233,6 +29051,90 @@ int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) return 1; } +int lua_cocos2dx_EventListenerFocus_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerFocus* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventListenerFocus",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::EventListenerFocus*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerFocus_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerFocus_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerFocus:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerFocus_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_EventListenerFocus_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EventListenerFocus* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerFocus_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EventListenerFocus(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerFocus"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerFocus:EventListenerFocus",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerFocus_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EventListenerFocus_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerFocus)"); @@ -25245,6 +29147,8 @@ int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerFocus"); + tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerFocus_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerFocus_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerFocus).name(); g_luaType[typeName] = "cc.EventListenerFocus"; @@ -25619,6 +29523,74 @@ int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) return 1; } +int lua_cocos2dx_OrbitCamera_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::OrbitCamera* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::OrbitCamera*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_OrbitCamera_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 7) + { + double arg0; + double arg1; + double arg2; + double arg3; + double arg4; + double arg5; + double arg6; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.OrbitCamera:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.OrbitCamera:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.OrbitCamera:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.OrbitCamera:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.OrbitCamera:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.OrbitCamera:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.OrbitCamera:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.OrbitCamera:initWithDuration",argc, 7); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) { int argc = 0; @@ -25667,6 +29639,43 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_OrbitCamera_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::OrbitCamera* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::OrbitCamera(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.OrbitCamera"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.OrbitCamera:OrbitCamera",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_OrbitCamera_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (OrbitCamera)"); @@ -25679,6 +29688,8 @@ int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); tolua_beginmodule(tolua_S,"OrbitCamera"); + tolua_function(tolua_S,"new",lua_cocos2dx_OrbitCamera_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_OrbitCamera_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::OrbitCamera).name(); @@ -26416,6 +30427,56 @@ int lua_register_cocos2dx_ActionManager(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ActionEase_initWithAction(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionEase_initWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ActionInterval* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionEase_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(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.ActionEase:initWithAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionEase_initWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) { int argc = 0; @@ -26475,6 +30536,7 @@ int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionEase","cc.ActionEase","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionEase"); + tolua_function(tolua_S,"initWithAction",lua_cocos2dx_ActionEase_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionEase).name(); @@ -26533,6 +30595,59 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) return 0; } +int lua_cocos2dx_EaseRateAction_initWithAction(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_initWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::ActionInterval* arg0; + double arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseRateAction:initWithAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:initWithAction",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_initWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) { int argc = 0; @@ -26631,6 +30746,7 @@ int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EaseRateAction"); tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); + tolua_function(tolua_S,"initWithAction",lua_cocos2dx_EaseRateAction_initWithAction); tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); tolua_function(tolua_S,"create", lua_cocos2dx_EaseRateAction_create); tolua_endmodule(tolua_S); @@ -26678,6 +30794,43 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseIn:EaseIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseIn)"); @@ -26690,6 +30843,7 @@ int lua_register_cocos2dx_EaseIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseIn","cc.EaseIn","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseIn).name(); @@ -26736,6 +30890,43 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseOut:EaseOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseOut)"); @@ -26748,6 +30939,7 @@ int lua_register_cocos2dx_EaseOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseOut","cc.EaseOut","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseOut).name(); @@ -26794,6 +30986,43 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseInOut:EaseInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseInOut)"); @@ -26806,6 +31035,7 @@ int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseInOut","cc.EaseInOut","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseInOut).name(); @@ -26850,6 +31080,43 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseExponentialIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseExponentialIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseExponentialIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseExponentialIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseExponentialIn:EaseExponentialIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseExponentialIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseExponentialIn)"); @@ -26862,6 +31129,7 @@ int lua_register_cocos2dx_EaseExponentialIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseExponentialIn","cc.EaseExponentialIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialIn).name(); @@ -26906,6 +31174,43 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseExponentialOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseExponentialOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseExponentialOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseExponentialOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseExponentialOut:EaseExponentialOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseExponentialOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseExponentialOut)"); @@ -26918,6 +31223,7 @@ int lua_register_cocos2dx_EaseExponentialOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseExponentialOut","cc.EaseExponentialOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialOut).name(); @@ -26962,6 +31268,43 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseExponentialInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseExponentialInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseExponentialInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseExponentialInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseExponentialInOut:EaseExponentialInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseExponentialInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseExponentialInOut)"); @@ -26974,6 +31317,7 @@ int lua_register_cocos2dx_EaseExponentialInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseExponentialInOut","cc.EaseExponentialInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialInOut).name(); @@ -27018,6 +31362,43 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseSineIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseSineIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseSineIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseSineIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseSineIn:EaseSineIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseSineIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseSineIn)"); @@ -27030,6 +31411,7 @@ int lua_register_cocos2dx_EaseSineIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseSineIn","cc.EaseSineIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineIn).name(); @@ -27074,6 +31456,43 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseSineOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseSineOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseSineOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseSineOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseSineOut:EaseSineOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseSineOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseSineOut)"); @@ -27086,6 +31505,7 @@ int lua_register_cocos2dx_EaseSineOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseSineOut","cc.EaseSineOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineOut).name(); @@ -27130,6 +31550,43 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseSineInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseSineInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseSineInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseSineInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseSineInOut:EaseSineInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseSineInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseSineInOut)"); @@ -27142,6 +31599,7 @@ int lua_register_cocos2dx_EaseSineInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseSineInOut","cc.EaseSineInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineInOut).name(); @@ -27200,6 +31658,73 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) return 0; } +int lua_cocos2dx_EaseElastic_initWithAction(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ActionInterval* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + cocos2d::ActionInterval* arg0; + double arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElastic:initWithAction"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); + return 0; + } + bool ret = cobj->initWithAction(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:initWithAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_initWithAction'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) { int argc = 0; @@ -27260,6 +31785,7 @@ int lua_register_cocos2dx_EaseElastic(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EaseElastic"); tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); + tolua_function(tolua_S,"initWithAction",lua_cocos2dx_EaseElastic_initWithAction); tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElastic).name(); @@ -27319,6 +31845,43 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseElasticIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseElasticIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseElasticIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseElasticIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElasticIn:EaseElasticIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseElasticIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElasticIn)"); @@ -27331,6 +31894,7 @@ int lua_register_cocos2dx_EaseElasticIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseElasticIn","cc.EaseElasticIn","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticIn).name(); @@ -27390,6 +31954,43 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseElasticOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseElasticOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseElasticOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseElasticOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElasticOut:EaseElasticOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseElasticOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElasticOut)"); @@ -27402,6 +32003,7 @@ int lua_register_cocos2dx_EaseElasticOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseElasticOut","cc.EaseElasticOut","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticOut).name(); @@ -27461,6 +32063,43 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseElasticInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseElasticInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseElasticInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseElasticInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElasticInOut:EaseElasticInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseElasticInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElasticInOut)"); @@ -27473,6 +32112,7 @@ int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseElasticInOut","cc.EaseElasticInOut","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticInOut).name(); @@ -27536,6 +32176,43 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBounceIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBounceIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBounceIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBounceIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBounceIn:EaseBounceIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBounceIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounceIn)"); @@ -27548,6 +32225,7 @@ int lua_register_cocos2dx_EaseBounceIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBounceIn","cc.EaseBounceIn","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceIn).name(); @@ -27592,6 +32270,43 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBounceOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBounceOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBounceOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBounceOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBounceOut:EaseBounceOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBounceOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounceOut)"); @@ -27604,6 +32319,7 @@ int lua_register_cocos2dx_EaseBounceOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBounceOut","cc.EaseBounceOut","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceOut).name(); @@ -27648,6 +32364,43 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBounceInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBounceInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBounceInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBounceInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBounceInOut:EaseBounceInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBounceInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounceInOut)"); @@ -27660,6 +32413,7 @@ int lua_register_cocos2dx_EaseBounceInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBounceInOut","cc.EaseBounceInOut","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceInOut).name(); @@ -27704,6 +32458,43 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBackIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBackIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBackIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBackIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBackIn:EaseBackIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBackIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBackIn)"); @@ -27716,6 +32507,7 @@ int lua_register_cocos2dx_EaseBackIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBackIn","cc.EaseBackIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackIn).name(); @@ -27760,6 +32552,43 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBackOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBackOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBackOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBackOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBackOut:EaseBackOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBackOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBackOut)"); @@ -27772,6 +32601,7 @@ int lua_register_cocos2dx_EaseBackOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBackOut","cc.EaseBackOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackOut).name(); @@ -27816,6 +32646,43 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBackInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBackInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBackInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBackInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBackInOut:EaseBackInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBackInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBackInOut)"); @@ -27828,6 +32695,7 @@ int lua_register_cocos2dx_EaseBackInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBackInOut","cc.EaseBackInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackInOut).name(); @@ -27931,6 +32799,43 @@ int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseBezierAction_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseBezierAction* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBezierAction_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseBezierAction(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBezierAction"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBezierAction:EaseBezierAction",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseBezierAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBezierAction)"); @@ -27943,6 +32848,7 @@ int lua_register_cocos2dx_EaseBezierAction(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseBezierAction","cc.EaseBezierAction","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBezierAction"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseBezierAction_constructor); tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); tolua_endmodule(tolua_S); @@ -27988,6 +32894,43 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuadraticActionIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuadraticActionIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuadraticActionIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuadraticActionIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuadraticActionIn:EaseQuadraticActionIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuadraticActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuadraticActionIn)"); @@ -28000,6 +32943,7 @@ int lua_register_cocos2dx_EaseQuadraticActionIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuadraticActionIn","cc.EaseQuadraticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionIn).name(); @@ -28044,6 +32988,43 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuadraticActionOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuadraticActionOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuadraticActionOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuadraticActionOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuadraticActionOut:EaseQuadraticActionOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuadraticActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuadraticActionOut)"); @@ -28056,6 +33037,7 @@ int lua_register_cocos2dx_EaseQuadraticActionOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuadraticActionOut","cc.EaseQuadraticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionOut).name(); @@ -28100,6 +33082,43 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuadraticActionInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuadraticActionInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuadraticActionInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuadraticActionInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuadraticActionInOut:EaseQuadraticActionInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuadraticActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuadraticActionInOut)"); @@ -28112,6 +33131,7 @@ int lua_register_cocos2dx_EaseQuadraticActionInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuadraticActionInOut","cc.EaseQuadraticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionInOut).name(); @@ -28156,6 +33176,43 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuarticActionIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuarticActionIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuarticActionIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuarticActionIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuarticActionIn:EaseQuarticActionIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuarticActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuarticActionIn)"); @@ -28168,6 +33225,7 @@ int lua_register_cocos2dx_EaseQuarticActionIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuarticActionIn","cc.EaseQuarticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionIn).name(); @@ -28212,6 +33270,43 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuarticActionOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuarticActionOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuarticActionOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuarticActionOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuarticActionOut:EaseQuarticActionOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuarticActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuarticActionOut)"); @@ -28224,6 +33319,7 @@ int lua_register_cocos2dx_EaseQuarticActionOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuarticActionOut","cc.EaseQuarticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionOut).name(); @@ -28268,6 +33364,43 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuarticActionInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuarticActionInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuarticActionInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuarticActionInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuarticActionInOut:EaseQuarticActionInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuarticActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuarticActionInOut)"); @@ -28280,6 +33413,7 @@ int lua_register_cocos2dx_EaseQuarticActionInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuarticActionInOut","cc.EaseQuarticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionInOut).name(); @@ -28324,6 +33458,43 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuinticActionIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuinticActionIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuinticActionIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuinticActionIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuinticActionIn:EaseQuinticActionIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuinticActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuinticActionIn)"); @@ -28336,6 +33507,7 @@ int lua_register_cocos2dx_EaseQuinticActionIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuinticActionIn","cc.EaseQuinticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionIn).name(); @@ -28380,6 +33552,43 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuinticActionOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuinticActionOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuinticActionOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuinticActionOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuinticActionOut:EaseQuinticActionOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuinticActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuinticActionOut)"); @@ -28392,6 +33601,7 @@ int lua_register_cocos2dx_EaseQuinticActionOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuinticActionOut","cc.EaseQuinticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionOut).name(); @@ -28436,6 +33646,43 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseQuinticActionInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseQuinticActionInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseQuinticActionInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuinticActionInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuinticActionInOut:EaseQuinticActionInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseQuinticActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuinticActionInOut)"); @@ -28448,6 +33695,7 @@ int lua_register_cocos2dx_EaseQuinticActionInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseQuinticActionInOut","cc.EaseQuinticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionInOut).name(); @@ -28492,6 +33740,43 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseCircleActionIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseCircleActionIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseCircleActionIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCircleActionIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCircleActionIn:EaseCircleActionIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseCircleActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCircleActionIn)"); @@ -28504,6 +33789,7 @@ int lua_register_cocos2dx_EaseCircleActionIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseCircleActionIn","cc.EaseCircleActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionIn).name(); @@ -28548,6 +33834,43 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseCircleActionOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseCircleActionOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseCircleActionOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCircleActionOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCircleActionOut:EaseCircleActionOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseCircleActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCircleActionOut)"); @@ -28560,6 +33883,7 @@ int lua_register_cocos2dx_EaseCircleActionOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseCircleActionOut","cc.EaseCircleActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionOut).name(); @@ -28604,6 +33928,43 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseCircleActionInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseCircleActionInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseCircleActionInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCircleActionInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCircleActionInOut:EaseCircleActionInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseCircleActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCircleActionInOut)"); @@ -28616,6 +33977,7 @@ int lua_register_cocos2dx_EaseCircleActionInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseCircleActionInOut","cc.EaseCircleActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionInOut).name(); @@ -28660,6 +34022,43 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseCubicActionIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseCubicActionIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseCubicActionIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCubicActionIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCubicActionIn:EaseCubicActionIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseCubicActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCubicActionIn)"); @@ -28672,6 +34071,7 @@ int lua_register_cocos2dx_EaseCubicActionIn(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseCubicActionIn","cc.EaseCubicActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionIn).name(); @@ -28716,6 +34116,43 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseCubicActionOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseCubicActionOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseCubicActionOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCubicActionOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCubicActionOut:EaseCubicActionOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseCubicActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCubicActionOut)"); @@ -28728,6 +34165,7 @@ int lua_register_cocos2dx_EaseCubicActionOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseCubicActionOut","cc.EaseCubicActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionOut).name(); @@ -28772,6 +34210,43 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_EaseCubicActionInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::EaseCubicActionInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::EaseCubicActionInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCubicActionInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCubicActionInOut:EaseCubicActionInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_EaseCubicActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCubicActionInOut)"); @@ -28784,6 +34259,7 @@ int lua_register_cocos2dx_EaseCubicActionInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"EaseCubicActionInOut","cc.EaseCubicActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionInOut).name(); @@ -28845,6 +34321,43 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Show_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Show* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Show_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Show(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Show"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Show:Show",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Show_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Show_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Show)"); @@ -28857,6 +34370,7 @@ int lua_register_cocos2dx_Show(lua_State* tolua_S) tolua_cclass(tolua_S,"Show","cc.Show","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Show"); + tolua_function(tolua_S,"new",lua_cocos2dx_Show_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Show).name(); @@ -28899,6 +34413,43 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Hide_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Hide* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Hide_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Hide(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Hide"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Hide:Hide",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Hide_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Hide_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Hide)"); @@ -28911,6 +34462,7 @@ int lua_register_cocos2dx_Hide(lua_State* tolua_S) tolua_cclass(tolua_S,"Hide","cc.Hide","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Hide"); + tolua_function(tolua_S,"new",lua_cocos2dx_Hide_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Hide).name(); @@ -28953,6 +34505,43 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ToggleVisibility_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ToggleVisibility* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ToggleVisibility_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ToggleVisibility(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ToggleVisibility"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ToggleVisibility:ToggleVisibility",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ToggleVisibility_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ToggleVisibility_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ToggleVisibility)"); @@ -28965,6 +34554,7 @@ int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) tolua_cclass(tolua_S,"ToggleVisibility","cc.ToggleVisibility","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"ToggleVisibility"); + tolua_function(tolua_S,"new",lua_cocos2dx_ToggleVisibility_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ToggleVisibility).name(); @@ -28973,6 +34563,56 @@ int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) return 1; } +int lua_cocos2dx_RemoveSelf_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RemoveSelf* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.RemoveSelf",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::RemoveSelf*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RemoveSelf_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RemoveSelf:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_init'", nullptr); + return 0; + } + bool ret = cobj->init(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.RemoveSelf:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) { int argc = 0; @@ -29020,6 +34660,43 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_RemoveSelf_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::RemoveSelf* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::RemoveSelf(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RemoveSelf"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RemoveSelf:RemoveSelf",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_RemoveSelf_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RemoveSelf)"); @@ -29032,6 +34709,8 @@ int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) tolua_cclass(tolua_S,"RemoveSelf","cc.RemoveSelf","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"RemoveSelf"); + tolua_function(tolua_S,"new",lua_cocos2dx_RemoveSelf_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_RemoveSelf_init); tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RemoveSelf).name(); @@ -29040,6 +34719,56 @@ int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) return 1; } +int lua_cocos2dx_FlipX_initWithFlipX(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipX* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.FlipX",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::FlipX*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipX_initWithFlipX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FlipX:initWithFlipX"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_initWithFlipX'", nullptr); + return 0; + } + bool ret = cobj->initWithFlipX(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.FlipX:initWithFlipX",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_initWithFlipX'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_FlipX_create(lua_State* tolua_S) { int argc = 0; @@ -29076,6 +34805,43 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FlipX_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipX* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FlipX(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipX"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX:FlipX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FlipX_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipX)"); @@ -29088,6 +34854,8 @@ int lua_register_cocos2dx_FlipX(lua_State* tolua_S) tolua_cclass(tolua_S,"FlipX","cc.FlipX","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"FlipX"); + tolua_function(tolua_S,"new",lua_cocos2dx_FlipX_constructor); + tolua_function(tolua_S,"initWithFlipX",lua_cocos2dx_FlipX_initWithFlipX); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX).name(); @@ -29096,6 +34864,56 @@ int lua_register_cocos2dx_FlipX(lua_State* tolua_S) return 1; } +int lua_cocos2dx_FlipY_initWithFlipY(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipY* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.FlipY",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::FlipY*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipY_initWithFlipY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FlipY:initWithFlipY"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_initWithFlipY'", nullptr); + return 0; + } + bool ret = cobj->initWithFlipY(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.FlipY:initWithFlipY",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_initWithFlipY'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_FlipY_create(lua_State* tolua_S) { int argc = 0; @@ -29132,6 +34950,43 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FlipY_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipY* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FlipY(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipY"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipY:FlipY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FlipY_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipY)"); @@ -29144,6 +34999,8 @@ int lua_register_cocos2dx_FlipY(lua_State* tolua_S) tolua_cclass(tolua_S,"FlipY","cc.FlipY","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"FlipY"); + tolua_function(tolua_S,"new",lua_cocos2dx_FlipY_constructor); + tolua_function(tolua_S,"initWithFlipY",lua_cocos2dx_FlipY_initWithFlipY); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY).name(); @@ -29152,6 +35009,56 @@ int lua_register_cocos2dx_FlipY(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Place_initWithPosition(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Place* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Place",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Place*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Place_initWithPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Place:initWithPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_initWithPosition'", nullptr); + return 0; + } + bool ret = cobj->initWithPosition(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.Place:initWithPosition",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_initWithPosition'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Place_create(lua_State* tolua_S) { int argc = 0; @@ -29188,6 +35095,43 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Place_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Place* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Place(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Place"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Place:Place",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Place_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Place)"); @@ -29200,6 +35144,8 @@ int lua_register_cocos2dx_Place(lua_State* tolua_S) tolua_cclass(tolua_S,"Place","cc.Place","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Place"); + tolua_function(tolua_S,"new",lua_cocos2dx_Place_constructor); + tolua_function(tolua_S,"initWithPosition",lua_cocos2dx_Place_initWithPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Place).name(); @@ -29352,6 +35298,43 @@ int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) return 0; } +int lua_cocos2dx_CallFunc_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::CallFunc* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CallFunc_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::CallFunc(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CallFunc"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:CallFunc",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_CallFunc_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CallFunc)"); @@ -29364,6 +35347,7 @@ int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) tolua_cclass(tolua_S,"CallFunc","cc.CallFunc","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"CallFunc"); + tolua_function(tolua_S,"new",lua_cocos2dx_CallFunc_constructor); 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); @@ -29421,6 +35405,59 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) return 0; } +int lua_cocos2dx_GridAction_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridAction_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + cocos2d::Size arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GridAction:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.GridAction:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridAction_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridAction:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridAction_initWithDuration'.",&tolua_err); +#endif + + return 0; +} static int lua_cocos2dx_GridAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GridAction)"); @@ -29434,6 +35471,7 @@ int lua_register_cocos2dx_GridAction(lua_State* tolua_S) tolua_beginmodule(tolua_S,"GridAction"); tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_GridAction_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridAction).name(); g_luaType[typeName] = "cc.GridAction"; @@ -29513,6 +35551,43 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_StopGrid_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::StopGrid* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_StopGrid_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::StopGrid(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.StopGrid"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.StopGrid:StopGrid",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_StopGrid_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_StopGrid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (StopGrid)"); @@ -29525,6 +35600,7 @@ int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) tolua_cclass(tolua_S,"StopGrid","cc.StopGrid","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"StopGrid"); + tolua_function(tolua_S,"new",lua_cocos2dx_StopGrid_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::StopGrid).name(); @@ -29533,6 +35609,56 @@ int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ReuseGrid_initWithTimes(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ReuseGrid* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ReuseGrid",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ReuseGrid*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ReuseGrid_initWithTimes'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ReuseGrid:initWithTimes"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_initWithTimes'", nullptr); + return 0; + } + bool ret = cobj->initWithTimes(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.ReuseGrid:initWithTimes",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_initWithTimes'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) { int argc = 0; @@ -29569,6 +35695,43 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ReuseGrid_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ReuseGrid* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ReuseGrid(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ReuseGrid"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ReuseGrid:ReuseGrid",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ReuseGrid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ReuseGrid)"); @@ -29581,6 +35744,8 @@ int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) tolua_cclass(tolua_S,"ReuseGrid","cc.ReuseGrid","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"ReuseGrid"); + tolua_function(tolua_S,"new",lua_cocos2dx_ReuseGrid_constructor); + tolua_function(tolua_S,"initWithTimes",lua_cocos2dx_ReuseGrid_initWithTimes); tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ReuseGrid).name(); @@ -29589,6 +35754,162 @@ int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) return 1; } +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) + { + 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) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitudeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'", nullptr); + return 0; + } + cobj->setAmplitudeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Waves3D_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Waves3D:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Waves3D:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Waves3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_getAmplitude'", nullptr); + return 0; + } + double ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -29686,103 +36007,6 @@ int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) return 0; } -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) - { - 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) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitudeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'", nullptr); - return 0; - } - cobj->setAmplitudeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_getAmplitude'", nullptr); - return 0; - } - double ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_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; @@ -29825,6 +36049,43 @@ int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Waves3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Waves3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Waves3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Waves3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:Waves3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Waves3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Waves3D)"); @@ -29837,10 +36098,12 @@ int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Waves3D","cc.Waves3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Waves3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_Waves3D_constructor); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves3D_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Waves3D_initWithDuration); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves3D_getAmplitude); 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(); @@ -29849,6 +36112,109 @@ int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_FlipX3D_initWithSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipX3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::FlipX3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipX3D_initWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::Size arg0; + double arg1; + + ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.FlipX3D:initWithSize"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FlipX3D:initWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_initWithSize'", nullptr); + return 0; + } + bool ret = cobj->initWithSize(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX3D:initWithSize",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_initWithSize'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_FlipX3D_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipX3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::FlipX3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipX3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FlipX3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(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.FlipX3D:initWithDuration",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) { int argc = 0; @@ -29885,6 +36251,43 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FlipX3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipX3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FlipX3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipX3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX3D:FlipX3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FlipX3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipX3D)"); @@ -29897,6 +36300,9 @@ int lua_register_cocos2dx_FlipX3D(lua_State* tolua_S) tolua_cclass(tolua_S,"FlipX3D","cc.FlipX3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"FlipX3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_FlipX3D_constructor); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_FlipX3D_initWithSize); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_FlipX3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX3D).name(); @@ -29941,6 +36347,43 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FlipY3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FlipY3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FlipY3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipY3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipY3D:FlipY3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FlipY3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipY3D)"); @@ -29953,6 +36396,7 @@ int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) tolua_cclass(tolua_S,"FlipY3D","cc.FlipY3D","cc.FlipX3D",nullptr); tolua_beginmodule(tolua_S,"FlipY3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_FlipY3D_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY3D).name(); @@ -29961,56 +36405,6 @@ int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) return 1; } -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) - { - 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) - { - cocos2d::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Lens3D:setPosition"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_setPosition'", nullptr); - return 0; - } - cobj->setPosition(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setPosition'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) { int argc = 0; @@ -30061,6 +36455,65 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Lens3D_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + cocos2d::Vec2 arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Lens3D:initWithDuration"); + + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Lens3D:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Lens3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) { int argc = 0; @@ -30111,53 +36564,6 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) return 0; } -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); - return 0; - } - const cocos2d::Vec2& ret = cobj->getPosition(); - vec2_to_luaval(tolua_S, ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getPosition'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) { int argc = 0; @@ -30205,6 +36611,103 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) return 0; } +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) + { + 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) + { + cocos2d::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Lens3D:setPosition"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_setPosition'", nullptr); + return 0; + } + cobj->setPosition(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setPosition'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); + return 0; + } + const cocos2d::Vec2& ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getPosition'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) { int argc = 0; @@ -30247,6 +36750,43 @@ int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Lens3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Lens3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Lens3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Lens3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:Lens3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Lens3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Lens3D)"); @@ -30259,11 +36799,13 @@ int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) 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,"new",lua_cocos2dx_Lens3D_constructor); tolua_function(tolua_S,"setConcave",lua_cocos2dx_Lens3D_setConcave); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Lens3D_initWithDuration); 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,"setPosition",lua_cocos2dx_Lens3D_setPosition); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Lens3D).name(); @@ -30322,6 +36864,71 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Ripple3D_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 6) + { + double arg0; + cocos2d::Size arg1; + cocos2d::Vec2 arg2; + double arg3; + unsigned int arg4; + double arg5; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Ripple3D:initWithDuration"); + + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Ripple3D:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Ripple3D:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 6,&arg4, "cc.Ripple3D:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.Ripple3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:initWithDuration",argc, 6); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -30609,6 +37216,43 @@ int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Ripple3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Ripple3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Ripple3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Ripple3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:Ripple3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Ripple3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Ripple3D)"); @@ -30621,7 +37265,9 @@ int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Ripple3D","cc.Ripple3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Ripple3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_Ripple3D_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Ripple3D_initWithDuration); 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); @@ -30635,6 +37281,65 @@ int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Shaky3D_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Shaky3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Shaky3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Shaky3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Shaky3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + int arg2; + bool arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Shaky3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Shaky3D:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Shaky3D:initWithDuration"); + + ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.Shaky3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Shaky3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) { int argc = 0; @@ -30677,6 +37382,43 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Shaky3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Shaky3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Shaky3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Shaky3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Shaky3D:Shaky3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Shaky3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Shaky3D)"); @@ -30689,6 +37431,8 @@ int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) tolua_cclass(tolua_S,"Shaky3D","cc.Shaky3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Shaky3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_Shaky3D_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Shaky3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Shaky3D).name(); @@ -30697,6 +37441,162 @@ int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) return 1; } +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) + { + 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) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitudeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_setAmplitudeRate'", nullptr); + return 0; + } + cobj->setAmplitudeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Liquid_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Liquid:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Liquid:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Liquid:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_getAmplitude'", nullptr); + return 0; + } + double ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitude'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -30794,103 +37694,6 @@ int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) return 0; } -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) - { - 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) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitudeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_setAmplitudeRate'", nullptr); - return 0; - } - cobj->setAmplitudeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_getAmplitude'", nullptr); - return 0; - } - double ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_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; @@ -30933,6 +37736,43 @@ int lua_cocos2dx_Liquid_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Liquid_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Liquid* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Liquid(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Liquid"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:Liquid",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Liquid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Liquid)"); @@ -30945,10 +37785,12 @@ int lua_register_cocos2dx_Liquid(lua_State* tolua_S) tolua_cclass(tolua_S,"Liquid","cc.Liquid","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Liquid"); + tolua_function(tolua_S,"new",lua_cocos2dx_Liquid_constructor); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Liquid_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Liquid_initWithDuration); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Liquid_getAmplitude); 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(); @@ -30957,6 +37799,168 @@ int lua_register_cocos2dx_Liquid(lua_State* tolua_S) return 1; } +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) + { + 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) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitudeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_setAmplitudeRate'", nullptr); + return 0; + } + cobj->setAmplitudeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Waves_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 6) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + double arg3; + bool arg4; + bool arg5; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Waves:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Waves:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Waves:initWithDuration"); + + ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.Waves:initWithDuration"); + + ok &= luaval_to_boolean(tolua_S, 7,&arg5, "cc.Waves:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:initWithDuration",argc, 6); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_getAmplitude'", nullptr); + return 0; + } + double ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitude'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -31054,103 +38058,6 @@ int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) return 0; } -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) - { - 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) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitudeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_setAmplitudeRate'", nullptr); - return 0; - } - cobj->setAmplitudeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_getAmplitude'", nullptr); - return 0; - } - double ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_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; @@ -31197,6 +38104,43 @@ int lua_cocos2dx_Waves_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Waves_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Waves* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Waves(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Waves"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:Waves",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Waves_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Waves)"); @@ -31209,10 +38153,12 @@ int lua_register_cocos2dx_Waves(lua_State* tolua_S) tolua_cclass(tolua_S,"Waves","cc.Waves","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Waves"); + tolua_function(tolua_S,"new",lua_cocos2dx_Waves_constructor); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Waves_initWithDuration); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves_getAmplitude); 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(); @@ -31271,6 +38217,68 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Twirl_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 5) + { + double arg0; + cocos2d::Size arg1; + cocos2d::Vec2 arg2; + unsigned int arg3; + double arg4; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Twirl:initWithDuration"); + + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Twirl:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.Twirl:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.Twirl:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:initWithDuration",argc, 5); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -31556,6 +38564,43 @@ int lua_cocos2dx_Twirl_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Twirl_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Twirl* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Twirl(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Twirl"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:Twirl",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Twirl_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Twirl)"); @@ -31568,7 +38613,9 @@ int lua_register_cocos2dx_Twirl(lua_State* tolua_S) tolua_cclass(tolua_S,"Twirl","cc.Twirl","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Twirl"); + tolua_function(tolua_S,"new",lua_cocos2dx_Twirl_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Twirl_initWithDuration); 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); @@ -31640,6 +38687,59 @@ int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ProgressTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ProgressTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ProgressTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ProgressTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + double arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressTo:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ProgressTo:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTo:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) { int argc = 0; @@ -31678,6 +38778,43 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ProgressTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ProgressTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ProgressTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProgressTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTo:ProgressTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ProgressTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProgressTo)"); @@ -31690,6 +38827,8 @@ int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) tolua_cclass(tolua_S,"ProgressTo","cc.ProgressTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ProgressTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_ProgressTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ProgressTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTo).name(); @@ -31698,6 +38837,62 @@ int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ProgressFromTo_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ProgressFromTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ProgressFromTo",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ProgressFromTo*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressFromTo_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + double arg0; + double arg1; + double arg2; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressFromTo:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ProgressFromTo:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ProgressFromTo:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressFromTo:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) { int argc = 0; @@ -31738,6 +38933,43 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ProgressFromTo_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ProgressFromTo* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ProgressFromTo(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProgressFromTo"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressFromTo:ProgressFromTo",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ProgressFromTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProgressFromTo)"); @@ -31750,6 +38982,8 @@ int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) tolua_cclass(tolua_S,"ProgressFromTo","cc.ProgressFromTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ProgressFromTo"); + tolua_function(tolua_S,"new",lua_cocos2dx_ProgressFromTo_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ProgressFromTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressFromTo).name(); @@ -31758,6 +38992,65 @@ int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ShakyTiles3D_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ShakyTiles3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ShakyTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ShakyTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShakyTiles3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + int arg2; + bool arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShakyTiles3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShakyTiles3D:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ShakyTiles3D:initWithDuration"); + + ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.ShakyTiles3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShakyTiles3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) { int argc = 0; @@ -31800,6 +39093,43 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ShakyTiles3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ShakyTiles3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ShakyTiles3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ShakyTiles3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShakyTiles3D:ShakyTiles3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ShakyTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShakyTiles3D)"); @@ -31812,6 +39142,8 @@ int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) tolua_cclass(tolua_S,"ShakyTiles3D","cc.ShakyTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShakyTiles3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_ShakyTiles3D_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShakyTiles3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShakyTiles3D).name(); @@ -31820,6 +39152,65 @@ int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ShatteredTiles3D_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ShatteredTiles3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ShatteredTiles3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ShatteredTiles3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShatteredTiles3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + int arg2; + bool arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShatteredTiles3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShatteredTiles3D:initWithDuration"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ShatteredTiles3D:initWithDuration"); + + ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.ShatteredTiles3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShatteredTiles3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) { int argc = 0; @@ -31862,6 +39253,43 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ShatteredTiles3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ShatteredTiles3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ShatteredTiles3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ShatteredTiles3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShatteredTiles3D:ShatteredTiles3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ShatteredTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShatteredTiles3D)"); @@ -31874,6 +39302,8 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) tolua_cclass(tolua_S,"ShatteredTiles3D","cc.ShatteredTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShatteredTiles3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_ShatteredTiles3D_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShatteredTiles3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShatteredTiles3D).name(); @@ -31882,6 +39312,62 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ShuffleTiles_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShuffleTiles:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShuffleTiles:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.ShuffleTiles:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) { int argc = 0; @@ -31972,6 +39458,43 @@ int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ShuffleTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ShuffleTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ShuffleTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ShuffleTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:ShuffleTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ShuffleTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShuffleTiles)"); @@ -31984,6 +39507,8 @@ int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShuffleTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_ShuffleTiles_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShuffleTiles_initWithDuration); tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); tolua_endmodule(tolua_S); @@ -32237,6 +39762,43 @@ int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeOutTRTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeOutTRTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeOutTRTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutTRTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:FadeOutTRTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeOutTRTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutTRTiles)"); @@ -32249,6 +39811,7 @@ int lua_register_cocos2dx_FadeOutTRTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeOutTRTiles","cc.FadeOutTRTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"FadeOutTRTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutTRTiles_constructor); 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); @@ -32299,6 +39862,43 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeOutBLTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeOutBLTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutBLTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeOutBLTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutBLTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutBLTiles:FadeOutBLTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutBLTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeOutBLTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutBLTiles)"); @@ -32311,6 +39911,7 @@ int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeOutBLTiles","cc.FadeOutBLTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutBLTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutBLTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutBLTiles).name(); @@ -32357,6 +39958,43 @@ int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeOutUpTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeOutUpTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutUpTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeOutUpTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutUpTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutUpTiles:FadeOutUpTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeOutUpTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutUpTiles)"); @@ -32369,6 +40007,7 @@ int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutUpTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutUpTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutUpTiles).name(); @@ -32415,6 +40054,43 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_FadeOutDownTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::FadeOutDownTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutDownTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::FadeOutDownTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutDownTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutDownTiles:FadeOutDownTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutDownTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_FadeOutDownTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutDownTiles)"); @@ -32427,6 +40103,7 @@ int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeOutDownTiles","cc.FadeOutDownTiles","cc.FadeOutUpTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutDownTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutDownTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutDownTiles).name(); @@ -32535,6 +40212,62 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) return 0; } +int lua_cocos2dx_TurnOffTiles_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.TurnOffTiles:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.TurnOffTiles:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) { int argc = 0; @@ -32592,6 +40325,43 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TurnOffTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TurnOffTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TurnOffTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TurnOffTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:TurnOffTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TurnOffTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TurnOffTiles)"); @@ -32604,8 +40374,10 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"TurnOffTiles","cc.TurnOffTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"TurnOffTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_TurnOffTiles_constructor); tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TurnOffTiles_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TurnOffTiles).name(); @@ -32614,6 +40386,162 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) return 1; } +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) + { + 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) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitudeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'", nullptr); + return 0; + } + cobj->setAmplitudeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_WavesTiles3D_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.WavesTiles3D:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.WavesTiles3D:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.WavesTiles3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'", nullptr); + return 0; + } + double ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -32711,103 +40639,6 @@ int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) return 0; } -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) - { - 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) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitudeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'", nullptr); - return 0; - } - cobj->setAmplitudeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'", nullptr); - return 0; - } - double ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_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; @@ -32850,6 +40681,43 @@ int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_WavesTiles3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::WavesTiles3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::WavesTiles3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.WavesTiles3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:WavesTiles3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_WavesTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (WavesTiles3D)"); @@ -32862,10 +40730,12 @@ int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) tolua_cclass(tolua_S,"WavesTiles3D","cc.WavesTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"WavesTiles3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_WavesTiles3D_constructor); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_WavesTiles3D_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_WavesTiles3D_initWithDuration); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_WavesTiles3D_getAmplitude); 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(); @@ -32874,6 +40744,162 @@ int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) return 1; } +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) + { + 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) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitudeRate"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'", nullptr); + return 0; + } + cobj->setAmplitudeRate(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_JumpTiles3D_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + cocos2d::Size arg1; + unsigned int arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:initWithDuration"); + + ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.JumpTiles3D:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.JumpTiles3D:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.JumpTiles3D:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_initWithDuration'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'", nullptr); + return 0; + } + double ret = cobj->getAmplitude(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; @@ -32971,103 +40997,6 @@ int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) return 0; } -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) - { - 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) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitudeRate"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'", nullptr); - return 0; - } - cobj->setAmplitudeRate(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'", nullptr); - return 0; - } - double ret = cobj->getAmplitude(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_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; @@ -33110,6 +41039,43 @@ int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_JumpTiles3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::JumpTiles3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::JumpTiles3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.JumpTiles3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:JumpTiles3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_JumpTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (JumpTiles3D)"); @@ -33122,10 +41088,12 @@ int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) tolua_cclass(tolua_S,"JumpTiles3D","cc.JumpTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"JumpTiles3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_JumpTiles3D_constructor); + tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_JumpTiles3D_setAmplitudeRate); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpTiles3D_initWithDuration); + tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_JumpTiles3D_getAmplitude); 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(); @@ -33134,6 +41102,59 @@ int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_SplitRows_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SplitRows* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.SplitRows",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::SplitRows*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SplitRows_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + unsigned int arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SplitRows:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.SplitRows:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitRows:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) { int argc = 0; @@ -33172,6 +41193,43 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SplitRows_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SplitRows* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SplitRows(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SplitRows"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitRows:SplitRows",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SplitRows_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SplitRows)"); @@ -33184,6 +41242,8 @@ int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) tolua_cclass(tolua_S,"SplitRows","cc.SplitRows","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"SplitRows"); + tolua_function(tolua_S,"new",lua_cocos2dx_SplitRows_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SplitRows_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitRows).name(); @@ -33192,6 +41252,59 @@ int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) return 1; } +int lua_cocos2dx_SplitCols_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SplitCols* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.SplitCols",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::SplitCols*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SplitCols_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + unsigned int arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SplitCols:initWithDuration"); + + ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.SplitCols:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitCols:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) { int argc = 0; @@ -33230,6 +41343,43 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SplitCols_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SplitCols* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SplitCols(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SplitCols"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitCols:SplitCols",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SplitCols_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SplitCols)"); @@ -33242,6 +41392,8 @@ int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) tolua_cclass(tolua_S,"SplitCols","cc.SplitCols","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"SplitCols"); + tolua_function(tolua_S,"new",lua_cocos2dx_SplitCols_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SplitCols_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitCols).name(); @@ -33250,6 +41402,65 @@ int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ActionTween_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ActionTween* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ActionTween",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ActionTween*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionTween_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + std::string arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionTween:initWithDuration"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.ActionTween:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionTween:initWithDuration"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ActionTween:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionTween_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionTween:initWithDuration",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionTween_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) { int argc = 0; @@ -33304,6 +41515,7 @@ int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionTween","cc.ActionTween","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionTween"); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionTween_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionTween).name(); @@ -34316,6 +42528,43 @@ int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ProtectedNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ProtectedNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ProtectedNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProtectedNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:ProtectedNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ProtectedNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProtectedNode)"); @@ -34328,6 +42577,7 @@ int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) tolua_cclass(tolua_S,"ProtectedNode","cc.ProtectedNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ProtectedNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_ProtectedNode_constructor); 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); @@ -35458,6 +43708,65 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) return 0; } +int lua_cocos2dx_AtlasNode_initWithTileFile(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_initWithTileFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + std::string arg0; + int arg1; + int arg2; + int arg3; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AtlasNode:initWithTileFile"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.AtlasNode:initWithTileFile"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.AtlasNode:initWithTileFile"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.AtlasNode:initWithTileFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_initWithTileFile'", nullptr); + return 0; + } + bool ret = cobj->initWithTileFile(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:initWithTileFile",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_initWithTileFile'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) { int argc = 0; @@ -35796,6 +44105,65 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) return 0; } +int lua_cocos2dx_AtlasNode_initWithTexture(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_initWithTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + cocos2d::Texture2D* arg0; + int arg1; + int arg2; + int arg3; + + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.AtlasNode:initWithTexture"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.AtlasNode:initWithTexture"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.AtlasNode:initWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_initWithTexture'", nullptr); + return 0; + } + bool ret = cobj->initWithTexture(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:initWithTexture",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_initWithTexture'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) { int argc = 0; @@ -35888,6 +44256,43 @@ int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_AtlasNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::AtlasNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::AtlasNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AtlasNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:AtlasNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_AtlasNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AtlasNode)"); @@ -35900,7 +44305,9 @@ int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) tolua_cclass(tolua_S,"AtlasNode","cc.AtlasNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"AtlasNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_AtlasNode_constructor); tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); + tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_AtlasNode_initWithTileFile); tolua_function(tolua_S,"getTexture",lua_cocos2dx_AtlasNode_getTexture); tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_AtlasNode_setTextureAtlas); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_AtlasNode_setBlendFunc); @@ -35908,6 +44315,7 @@ int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_AtlasNode_getBlendFunc); tolua_function(tolua_S,"getQuadsToDraw",lua_cocos2dx_AtlasNode_getQuadsToDraw); tolua_function(tolua_S,"setTexture",lua_cocos2dx_AtlasNode_setTexture); + tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_AtlasNode_initWithTexture); tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); tolua_endmodule(tolua_S); @@ -37000,6 +45408,43 @@ int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_DrawNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::DrawNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::DrawNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DrawNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:DrawNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_DrawNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DrawNode)"); @@ -37012,6 +45457,7 @@ int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) tolua_cclass(tolua_S,"DrawNode","cc.DrawNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"DrawNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_DrawNode_constructor); 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); @@ -37310,6 +45756,43 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_LabelAtlas_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::LabelAtlas* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LabelAtlas_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::LabelAtlas(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LabelAtlas"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:LabelAtlas",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_LabelAtlas_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LabelAtlas)"); @@ -37322,6 +45805,7 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) tolua_cclass(tolua_S,"LabelAtlas","cc.LabelAtlas","cc.AtlasNode",nullptr); tolua_beginmodule(tolua_S,"LabelAtlas"); + tolua_function(tolua_S,"new",lua_cocos2dx_LabelAtlas_constructor); tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); @@ -37383,62 +45867,6 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) return 0; } -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) - { - 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) - { - 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) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); - return 0; - } - cocos2d::SpriteBatchNode* ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) { int argc = 0; @@ -37489,256 +45917,6 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) return 0; } -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) - { - 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) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:removeAllChildrenWithCleanup"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'", nullptr); - return 0; - } - cobj->removeAllChildrenWithCleanup(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_SpriteBatchNode_getBlendFunc(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) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); - return 0; - } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getBlendFunc",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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) - { - cocos2d::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); - return 0; - } - ssize_t ret = cobj->lowestAtlasIndexInChild(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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) - { - 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) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'", nullptr); - return 0; - } - ssize_t ret = cobj->atlasIndexForChild(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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) - { - cocos2d::TextureAtlas* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); - return 0; - } - cobj->setTextureAtlas(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) { int argc = 0; @@ -37786,153 +45964,6 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) return 0; } -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'", nullptr); - return 0; - } - cobj->increaseAtlasCapacity(); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); - return 0; - } - cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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) - { - 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) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'", nullptr); - return 0; - } - cobj->insertQuadFromSprite(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) { int argc = 0; @@ -37983,109 +46014,6 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) return 0; } -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) - { - 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) - { - 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) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'", nullptr); - return 0; - } - ssize_t ret = cobj->rebuildIndexInOrder(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); -#endif - - return 0; -} -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) - { - 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) - { - cocos2d::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); - return 0; - } - ssize_t ret = cobj->highestAtlasIndexInChild(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) { int argc = 0; @@ -38189,6 +46117,546 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) return 0; } +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) + { + 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) + { + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); + return 0; + } + cocos2d::SpriteBatchNode* ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'", nullptr); + return 0; + } + ssize_t ret = cobj->atlasIndexForChild(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'", nullptr); + return 0; + } + cobj->increaseAtlasCapacity(); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + cocos2d::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); + return 0; + } + ssize_t ret = cobj->lowestAtlasIndexInChild(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_SpriteBatchNode_getBlendFunc(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); + return 0; + } + const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + blendfunc_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getBlendFunc",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_SpriteBatchNode_initWithTexture(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Texture2D* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); + return 0; + } + bool ret = cobj->initWithTexture(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + cocos2d::Texture2D* arg0; + ssize_t arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:initWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); + return 0; + } + bool ret = cobj->initWithTexture(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:initWithTexture",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + cocos2d::TextureAtlas* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); + return 0; + } + cobj->setTextureAtlas(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:removeAllChildrenWithCleanup"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'", nullptr); + return 0; + } + cobj->removeAllChildrenWithCleanup(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'", nullptr); + return 0; + } + cobj->insertQuadFromSprite(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_SpriteBatchNode_initWithFile(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'", nullptr); + 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.SpriteBatchNode:initWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'", nullptr); + return 0; + } + bool ret = cobj->initWithFile(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + std::string arg0; + ssize_t arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteBatchNode:initWithFile"); + + ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:initWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'", nullptr); + return 0; + } + bool ret = cobj->initWithFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:initWithFile",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -38239,6 +46707,156 @@ int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) return 0; } +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) + { + 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) + { + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'", nullptr); + return 0; + } + ssize_t ret = cobj->rebuildIndexInOrder(arg0, arg1); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); + return 0; + } + cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + cocos2d::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); + return 0; + } + ssize_t ret = cobj->highestAtlasIndexInChild(arg0); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) { int argc = 0; @@ -38341,6 +46959,43 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SpriteBatchNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SpriteBatchNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SpriteBatchNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SpriteBatchNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:SpriteBatchNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SpriteBatchNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteBatchNode)"); @@ -38353,24 +47008,27 @@ int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) tolua_cclass(tolua_S,"SpriteBatchNode","cc.SpriteBatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"SpriteBatchNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_SpriteBatchNode_constructor); 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,"getBlendFunc",lua_cocos2dx_SpriteBatchNode_getBlendFunc); - 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,"addSpriteWithoutQuad",lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad); + tolua_function(tolua_S,"atlasIndexForChild",lua_cocos2dx_SpriteBatchNode_atlasIndexForChild); + tolua_function(tolua_S,"increaseAtlasCapacity",lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity); + tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild); + tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_SpriteBatchNode_getBlendFunc); + tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_SpriteBatchNode_initWithTexture); + tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_SpriteBatchNode_setTextureAtlas); + tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup); + tolua_function(tolua_S,"insertQuadFromSprite",lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite); + tolua_function(tolua_S,"initWithFile",lua_cocos2dx_SpriteBatchNode_initWithFile); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_SpriteBatchNode_setBlendFunc); + tolua_function(tolua_S,"rebuildIndexInOrder",lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder); + tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_SpriteBatchNode_getTextureAtlas); + tolua_function(tolua_S,"highestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild); tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); tolua_endmodule(tolua_S); @@ -41065,6 +49723,43 @@ int lua_cocos2dx_Layer_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Layer_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Layer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Layer_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Layer(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Layer"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Layer:Layer",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Layer_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Layer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Layer)"); @@ -41077,6 +49772,7 @@ int lua_register_cocos2dx_Layer(lua_State* tolua_S) tolua_cclass(tolua_S,"Layer","cc.Layer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Layer"); + tolua_function(tolua_S,"new",lua_cocos2dx_Layer_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Layer).name(); @@ -41185,56 +49881,6 @@ int lua_cocos2dx_LayerColor_getBlendFunc(lua_State* tolua_S) return 0; } -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) - { - 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) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeHeight"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_changeHeight'", nullptr); - return 0; - } - cobj->changeHeight(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeHeight'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_LayerColor_setBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -41335,6 +49981,119 @@ int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) return 0; } +int lua_cocos2dx_LayerColor_initWithColor(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_initWithColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + cocos2d::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:initWithColor"); + + if (!ok) { break; } + bool ret = cobj->initWithColor(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + cocos2d::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:initWithColor"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LayerColor:initWithColor"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LayerColor:initWithColor"); + + if (!ok) { break; } + bool ret = cobj->initWithColor(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:initWithColor",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_initWithColor'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeHeight"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_changeHeight'", nullptr); + return 0; + } + cobj->changeHeight(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeHeight'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) { int argc = 0; @@ -41399,6 +50158,43 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_LayerColor_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::LayerColor* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::LayerColor(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LayerColor"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:LayerColor",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_LayerColor_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayerColor)"); @@ -41411,11 +50207,13 @@ int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) tolua_cclass(tolua_S,"LayerColor","cc.LayerColor","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"LayerColor"); + tolua_function(tolua_S,"new",lua_cocos2dx_LayerColor_constructor); tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_LayerColor_getBlendFunc); - tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_LayerColor_setBlendFunc); tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); + tolua_function(tolua_S,"initWithColor",lua_cocos2dx_LayerColor_initWithColor); + tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerColor).name(); @@ -41862,6 +50660,73 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) return 0; } +int lua_cocos2dx_LayerGradient_initWithColor(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_initWithColor'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + cocos2d::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:initWithColor"); + + if (!ok) { break; } + cocos2d::Color4B arg1; + ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:initWithColor"); + + if (!ok) { break; } + cocos2d::Vec2 arg2; + ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.LayerGradient:initWithColor"); + + if (!ok) { break; } + bool ret = cobj->initWithColor(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + cocos2d::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:initWithColor"); + + if (!ok) { break; } + cocos2d::Color4B arg1; + ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:initWithColor"); + + if (!ok) { break; } + bool ret = cobj->initWithColor(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:initWithColor",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_initWithColor'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) { int argc = 0; @@ -42073,6 +50938,43 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_LayerGradient_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::LayerGradient* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::LayerGradient(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LayerGradient"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:LayerGradient",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_LayerGradient_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayerGradient)"); @@ -42085,6 +50987,7 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) tolua_cclass(tolua_S,"LayerGradient","cc.LayerGradient","cc.LayerColor",nullptr); tolua_beginmodule(tolua_S,"LayerGradient"); + tolua_function(tolua_S,"new",lua_cocos2dx_LayerGradient_constructor); 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); @@ -42094,6 +50997,7 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) 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,"initWithColor",lua_cocos2dx_LayerGradient_initWithColor); 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); @@ -42105,6 +51009,56 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) return 1; } +int lua_cocos2dx_LayerMultiplex_initWithArray(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_initWithArray'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.LayerMultiplex:initWithArray"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_initWithArray'", nullptr); + return 0; + } + bool ret = cobj->initWithArray(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.LayerMultiplex:initWithArray",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_initWithArray'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) { int argc = 0; @@ -42255,6 +51209,43 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) return 0; } +int lua_cocos2dx_LayerMultiplex_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::LayerMultiplex* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::LayerMultiplex(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LayerMultiplex"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:LayerMultiplex",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_LayerMultiplex_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayerMultiplex)"); @@ -42267,6 +51258,8 @@ int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) tolua_cclass(tolua_S,"LayerMultiplex","cc.LayerMultiplex","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"LayerMultiplex"); + tolua_function(tolua_S,"new",lua_cocos2dx_LayerMultiplex_constructor); + tolua_function(tolua_S,"initWithArray",lua_cocos2dx_LayerMultiplex_initWithArray); 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); @@ -42441,6 +51434,59 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) return 0; } +int lua_cocos2dx_TransitionScene_initWithDuration(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + cocos2d::Scene* arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionScene:initWithDuration"); + + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:initWithDuration",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TransitionScene_getDuration(lua_State* tolua_S) { int argc = 0; @@ -42573,6 +51619,43 @@ int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionScene_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionScene* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionScene(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionScene"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:TransitionScene",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionScene_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionScene)"); @@ -42585,8 +51668,10 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); tolua_beginmodule(tolua_S,"TransitionScene"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionScene_constructor); tolua_function(tolua_S,"getInScene",lua_cocos2dx_TransitionScene_getInScene); tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionScene_initWithDuration); tolua_function(tolua_S,"getDuration",lua_cocos2dx_TransitionScene_getDuration); tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); @@ -42597,6 +51682,62 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) return 1; } +int lua_cocos2dx_TransitionSceneOriented_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSceneOriented* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.TransitionSceneOriented",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::TransitionSceneOriented*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSceneOriented_initWithDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + double arg0; + cocos2d::Scene* arg1; + cocos2d::TransitionScene::Orientation arg2; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSceneOriented:initWithDuration"); + + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionSceneOriented:initWithDuration"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_initWithDuration'", nullptr); + return 0; + } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSceneOriented:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) { int argc = 0; @@ -42637,6 +51778,43 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSceneOriented_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSceneOriented* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSceneOriented(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSceneOriented"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSceneOriented:TransitionSceneOriented",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSceneOriented_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSceneOriented)"); @@ -42649,6 +51827,8 @@ int lua_register_cocos2dx_TransitionSceneOriented(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSceneOriented","cc.TransitionSceneOriented","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSceneOriented"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSceneOriented_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionSceneOriented_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSceneOriented).name(); @@ -42695,6 +51875,43 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionRotoZoom_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionRotoZoom* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionRotoZoom_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionRotoZoom(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionRotoZoom"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionRotoZoom:TransitionRotoZoom",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionRotoZoom_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionRotoZoom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionRotoZoom)"); @@ -42707,6 +51924,7 @@ int lua_register_cocos2dx_TransitionRotoZoom(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionRotoZoom","cc.TransitionRotoZoom","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionRotoZoom"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionRotoZoom_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionRotoZoom).name(); @@ -42753,6 +51971,43 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionJumpZoom_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionJumpZoom* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionJumpZoom_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionJumpZoom(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionJumpZoom"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionJumpZoom:TransitionJumpZoom",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionJumpZoom_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionJumpZoom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionJumpZoom)"); @@ -42765,6 +52020,7 @@ int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionJumpZoom","cc.TransitionJumpZoom","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionJumpZoom"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionJumpZoom_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionJumpZoom).name(); @@ -42908,6 +52164,43 @@ int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionMoveInL_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionMoveInL* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionMoveInL(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInL"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:TransitionMoveInL",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionMoveInL_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInL)"); @@ -42920,6 +52213,7 @@ int lua_register_cocos2dx_TransitionMoveInL(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionMoveInL","cc.TransitionMoveInL","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInL"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInL_constructor); 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); @@ -42968,6 +52262,43 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionMoveInR_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionMoveInR* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInR_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionMoveInR(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInR"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInR:TransitionMoveInR",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInR_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionMoveInR_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInR)"); @@ -42980,6 +52311,7 @@ int lua_register_cocos2dx_TransitionMoveInR(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionMoveInR","cc.TransitionMoveInR","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInR"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInR_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInR).name(); @@ -43026,6 +52358,43 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionMoveInT_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionMoveInT* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInT_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionMoveInT(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInT"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInT:TransitionMoveInT",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInT_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionMoveInT_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInT)"); @@ -43038,6 +52407,7 @@ int lua_register_cocos2dx_TransitionMoveInT(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionMoveInT","cc.TransitionMoveInT","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInT"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInT_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInT).name(); @@ -43084,6 +52454,43 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionMoveInB_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionMoveInB* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInB_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionMoveInB(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInB"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInB:TransitionMoveInB",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInB_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionMoveInB_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInB)"); @@ -43096,6 +52503,7 @@ int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionMoveInB","cc.TransitionMoveInB","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInB"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInB_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInB).name(); @@ -43239,6 +52647,43 @@ int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSlideInL_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSlideInL* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSlideInL(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInL"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:TransitionSlideInL",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSlideInL_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInL)"); @@ -43251,6 +52696,7 @@ int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInL","cc.TransitionSlideInL","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInL"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInL_constructor); 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); @@ -43299,6 +52745,43 @@ int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSlideInR_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSlideInR* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInR_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSlideInR(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInR"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInR:TransitionSlideInR",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSlideInR_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInR)"); @@ -43311,6 +52794,7 @@ int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInR"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInR_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInR).name(); @@ -43357,6 +52841,43 @@ int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSlideInB_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSlideInB* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInB_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSlideInB(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInB"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInB:TransitionSlideInB",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSlideInB_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInB)"); @@ -43369,6 +52890,7 @@ int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInB"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInB_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInB).name(); @@ -43415,6 +52937,43 @@ int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSlideInT_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSlideInT* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInT_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSlideInT(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInT"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInT:TransitionSlideInT",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSlideInT_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInT)"); @@ -43427,6 +52986,7 @@ int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInT"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInT_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInT).name(); @@ -43523,6 +53083,43 @@ int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionShrinkGrow_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionShrinkGrow* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionShrinkGrow(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionShrinkGrow"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionShrinkGrow:TransitionShrinkGrow",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionShrinkGrow_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionShrinkGrow)"); @@ -43535,6 +53132,7 @@ int lua_register_cocos2dx_TransitionShrinkGrow(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionShrinkGrow","cc.TransitionShrinkGrow","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionShrinkGrow"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionShrinkGrow_constructor); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); tolua_endmodule(tolua_S); @@ -43601,6 +53199,43 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFlipX_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFlipX* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipX_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFlipX(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFlipX"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFlipX:TransitionFlipX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipX_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFlipX_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFlipX)"); @@ -43613,6 +53248,7 @@ int lua_register_cocos2dx_TransitionFlipX(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFlipX","cc.TransitionFlipX","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipX"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipX_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipX).name(); @@ -43678,6 +53314,43 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFlipY_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFlipY* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipY_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFlipY(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFlipY"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFlipY:TransitionFlipY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipY_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFlipY_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFlipY)"); @@ -43690,6 +53363,7 @@ int lua_register_cocos2dx_TransitionFlipY(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFlipY","cc.TransitionFlipY","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipY"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipY_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipY).name(); @@ -43755,6 +53429,43 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFlipAngular_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFlipAngular* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipAngular_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFlipAngular(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFlipAngular"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFlipAngular:TransitionFlipAngular",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipAngular_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFlipAngular_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFlipAngular)"); @@ -43767,6 +53478,7 @@ int lua_register_cocos2dx_TransitionFlipAngular(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFlipAngular","cc.TransitionFlipAngular","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipAngular"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipAngular_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipAngular).name(); @@ -43832,6 +53544,43 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionZoomFlipX_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionZoomFlipX* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipX_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionZoomFlipX(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionZoomFlipX"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionZoomFlipX:TransitionZoomFlipX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipX_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionZoomFlipX_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionZoomFlipX)"); @@ -43844,6 +53593,7 @@ int lua_register_cocos2dx_TransitionZoomFlipX(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionZoomFlipX","cc.TransitionZoomFlipX","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipX"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipX_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipX).name(); @@ -43909,6 +53659,43 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionZoomFlipY_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionZoomFlipY* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipY_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionZoomFlipY(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionZoomFlipY"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionZoomFlipY:TransitionZoomFlipY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipY_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionZoomFlipY_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionZoomFlipY)"); @@ -43921,6 +53708,7 @@ int lua_register_cocos2dx_TransitionZoomFlipY(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionZoomFlipY","cc.TransitionZoomFlipY","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipY"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipY_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipY).name(); @@ -43986,6 +53774,43 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionZoomFlipAngular_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionZoomFlipAngular* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipAngular_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionZoomFlipAngular(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionZoomFlipAngular"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionZoomFlipAngular:TransitionZoomFlipAngular",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipAngular_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionZoomFlipAngular_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionZoomFlipAngular)"); @@ -43998,6 +53823,7 @@ int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionZoomFlipAngular","cc.TransitionZoomFlipAngular","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipAngular"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipAngular_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipAngular).name(); @@ -44006,6 +53832,73 @@ int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) return 1; } +int lua_cocos2dx_TransitionFade_initWithDuration(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFade* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.TransitionFade",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::TransitionFade*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFade_initWithDuration'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:initWithDuration"); + + if (!ok) { break; } + cocos2d::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:initWithDuration"); + + if (!ok) { break; } + cocos2d::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1); + + if (!ok) { break; } + cocos2d::Color3B arg2; + ok &= luaval_to_color3b(tolua_S, 4, &arg2, "cc.TransitionFade:initWithDuration"); + + if (!ok) { break; } + bool ret = cobj->initWithDuration(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFade:initWithDuration",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_initWithDuration'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) { int argc = 0; @@ -44063,6 +53956,43 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFade_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFade* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFade_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFade(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFade"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFade:TransitionFade",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFade_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFade)"); @@ -44075,6 +54005,8 @@ int lua_register_cocos2dx_TransitionFade(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFade","cc.TransitionFade","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionFade"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFade_constructor); + tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionFade_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFade).name(); @@ -44121,6 +54053,43 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionCrossFade_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionCrossFade* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionCrossFade_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionCrossFade(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionCrossFade"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionCrossFade:TransitionCrossFade",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionCrossFade_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionCrossFade_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionCrossFade)"); @@ -44133,6 +54102,7 @@ int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionCrossFade","cc.TransitionCrossFade","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionCrossFade"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionCrossFade_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionCrossFade).name(); @@ -44229,6 +54199,43 @@ int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionTurnOffTiles_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionTurnOffTiles* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionTurnOffTiles(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionTurnOffTiles"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionTurnOffTiles:TransitionTurnOffTiles",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionTurnOffTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionTurnOffTiles)"); @@ -44241,6 +54248,7 @@ int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionTurnOffTiles","cc.TransitionTurnOffTiles","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionTurnOffTiles"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionTurnOffTiles_constructor); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); tolua_endmodule(tolua_S); @@ -44385,6 +54393,43 @@ int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSplitCols_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSplitCols* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSplitCols(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSplitCols"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:TransitionSplitCols",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSplitCols_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSplitCols)"); @@ -44397,6 +54442,7 @@ int lua_register_cocos2dx_TransitionSplitCols(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSplitCols","cc.TransitionSplitCols","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSplitCols"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSplitCols_constructor); 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); @@ -44445,6 +54491,43 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionSplitRows_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionSplitRows* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitRows_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionSplitRows(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSplitRows"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitRows:TransitionSplitRows",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitRows_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionSplitRows_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSplitRows)"); @@ -44457,6 +54540,7 @@ int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSplitRows","cc.TransitionSplitRows","cc.TransitionSplitCols",nullptr); tolua_beginmodule(tolua_S,"TransitionSplitRows"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSplitRows_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitRows).name(); @@ -44603,6 +54687,43 @@ int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFadeTR_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFadeTR* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFadeTR(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeTR"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:TransitionFadeTR",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFadeTR_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeTR)"); @@ -44615,6 +54736,7 @@ int lua_register_cocos2dx_TransitionFadeTR(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFadeTR","cc.TransitionFadeTR","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeTR"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeTR_constructor); 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); @@ -44663,6 +54785,43 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFadeBL_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFadeBL* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeBL_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFadeBL(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeBL"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeBL:TransitionFadeBL",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeBL_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFadeBL_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeBL)"); @@ -44675,6 +54834,7 @@ int lua_register_cocos2dx_TransitionFadeBL(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFadeBL","cc.TransitionFadeBL","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeBL"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeBL_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeBL).name(); @@ -44721,6 +54881,43 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFadeUp_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFadeUp* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeUp_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFadeUp(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeUp"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeUp:TransitionFadeUp",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeUp_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFadeUp_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeUp)"); @@ -44733,6 +54930,7 @@ int lua_register_cocos2dx_TransitionFadeUp(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFadeUp","cc.TransitionFadeUp","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeUp"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeUp_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeUp).name(); @@ -44779,6 +54977,43 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionFadeDown_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionFadeDown* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeDown_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionFadeDown(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeDown"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeDown:TransitionFadeDown",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeDown_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionFadeDown_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeDown)"); @@ -44791,6 +55026,7 @@ int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionFadeDown","cc.TransitionFadeDown","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeDown"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeDown_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeDown).name(); @@ -44945,6 +55181,43 @@ int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionPageTurn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionPageTurn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionPageTurn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionPageTurn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:TransitionPageTurn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionPageTurn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionPageTurn)"); @@ -44957,6 +55230,7 @@ int lua_register_cocos2dx_TransitionPageTurn(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionPageTurn","cc.TransitionPageTurn","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionPageTurn"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionPageTurn_constructor); 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); @@ -45005,6 +55279,43 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgress_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgress* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgress_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgress(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgress"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgress:TransitionProgress",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgress_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgress_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgress)"); @@ -45017,6 +55328,7 @@ int lua_register_cocos2dx_TransitionProgress(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgress","cc.TransitionProgress","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionProgress"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgress_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgress).name(); @@ -45063,6 +55375,43 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgressRadialCCW_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgressRadialCCW* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCCW_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgressRadialCCW(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressRadialCCW"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressRadialCCW:TransitionProgressRadialCCW",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCCW_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgressRadialCCW_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressRadialCCW)"); @@ -45075,6 +55424,7 @@ int lua_register_cocos2dx_TransitionProgressRadialCCW(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgressRadialCCW","cc.TransitionProgressRadialCCW","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressRadialCCW"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressRadialCCW_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCCW).name(); @@ -45121,6 +55471,43 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgressRadialCW_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgressRadialCW* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCW_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgressRadialCW(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressRadialCW"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressRadialCW:TransitionProgressRadialCW",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCW_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgressRadialCW_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressRadialCW)"); @@ -45133,6 +55520,7 @@ int lua_register_cocos2dx_TransitionProgressRadialCW(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgressRadialCW","cc.TransitionProgressRadialCW","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressRadialCW"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressRadialCW_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCW).name(); @@ -45179,6 +55567,43 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgressHorizontal_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgressHorizontal* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressHorizontal_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgressHorizontal(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressHorizontal"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressHorizontal:TransitionProgressHorizontal",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressHorizontal_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgressHorizontal_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressHorizontal)"); @@ -45191,6 +55616,7 @@ int lua_register_cocos2dx_TransitionProgressHorizontal(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgressHorizontal","cc.TransitionProgressHorizontal","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressHorizontal"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressHorizontal_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressHorizontal).name(); @@ -45237,6 +55663,43 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgressVertical_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgressVertical* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressVertical_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgressVertical(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressVertical"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressVertical:TransitionProgressVertical",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressVertical_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgressVertical_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressVertical)"); @@ -45249,6 +55712,7 @@ int lua_register_cocos2dx_TransitionProgressVertical(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgressVertical","cc.TransitionProgressVertical","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressVertical"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressVertical_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressVertical).name(); @@ -45295,6 +55759,43 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgressInOut_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgressInOut* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressInOut_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgressInOut(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressInOut"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressInOut:TransitionProgressInOut",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressInOut_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgressInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressInOut)"); @@ -45307,6 +55808,7 @@ int lua_register_cocos2dx_TransitionProgressInOut(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgressInOut","cc.TransitionProgressInOut","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressInOut"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressInOut).name(); @@ -45353,6 +55855,43 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TransitionProgressOutIn_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TransitionProgressOutIn* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressOutIn_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TransitionProgressOutIn(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressOutIn"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressOutIn:TransitionProgressOutIn",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressOutIn_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TransitionProgressOutIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressOutIn)"); @@ -45365,6 +55904,7 @@ int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionProgressOutIn","cc.TransitionProgressOutIn","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressOutIn"); + tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressOutIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressOutIn).name(); @@ -45705,6 +56245,43 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItem_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItem* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItem(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItem"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:MenuItem",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItem_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItem)"); @@ -45717,6 +56294,7 @@ int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) tolua_cclass(tolua_S,"MenuItem","cc.MenuItem","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MenuItem"); + tolua_function(tolua_S,"new",lua_cocos2dx_MenuItem_constructor); 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); @@ -45731,6 +56309,56 @@ int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) return 1; } +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) + { + 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) + { + cocos2d::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); + return 0; + } + cobj->setLabel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setLabel'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) { int argc = 0; @@ -45828,7 +56456,7 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) return 0; } -int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) +int lua_cocos2dx_MenuItemLabel_initWithLabel(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; @@ -45848,32 +56476,39 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_initWithLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { cocos2d::Node* arg0; + std::function arg1; ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_initWithLabel'", nullptr); return 0; } - cobj->setLabel(arg0); - lua_settop(tolua_S, 1); + bool ret = cobj->initWithLabel(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setLabel",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:initWithLabel",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setLabel'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_initWithLabel'.",&tolua_err); #endif return 0; @@ -45975,6 +56610,43 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemLabel_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemLabel* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItemLabel(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemLabel"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:MenuItemLabel",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItemLabel_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemLabel)"); @@ -45987,9 +56659,11 @@ int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) tolua_cclass(tolua_S,"MenuItemLabel","cc.MenuItemLabel","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemLabel"); + tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemLabel_constructor); + tolua_function(tolua_S,"setLabel",lua_cocos2dx_MenuItemLabel_setLabel); 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,"initWithLabel",lua_cocos2dx_MenuItemLabel_initWithLabel); tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); tolua_endmodule(tolua_S); @@ -45999,6 +56673,112 @@ int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) return 1; } +int lua_cocos2dx_MenuItemAtlasFont_initWithString(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemAtlasFont* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.MenuItemAtlasFont",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::MenuItemAtlasFont*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemAtlasFont_initWithString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 6) + { + std::string arg0; + std::string arg1; + int arg2; + int arg3; + int32_t arg4; + std::function arg5; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemAtlasFont:initWithString"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.MenuItemAtlasFont:initWithString"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.MenuItemAtlasFont:initWithString"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.MenuItemAtlasFont:initWithString"); + + ok &= luaval_to_int32(tolua_S, 6,&arg4, "cc.MenuItemAtlasFont:initWithString"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemAtlasFont_initWithString'", nullptr); + return 0; + } + bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemAtlasFont:initWithString",argc, 6); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemAtlasFont_initWithString'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_MenuItemAtlasFont_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemAtlasFont* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemAtlasFont_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItemAtlasFont(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemAtlasFont"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemAtlasFont:MenuItemAtlasFont",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemAtlasFont_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItemAtlasFont_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemAtlasFont)"); @@ -46011,6 +56791,8 @@ int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) tolua_cclass(tolua_S,"MenuItemAtlasFont","cc.MenuItemAtlasFont","cc.MenuItemLabel",nullptr); tolua_beginmodule(tolua_S,"MenuItemAtlasFont"); + tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemAtlasFont_constructor); + tolua_function(tolua_S,"initWithString",lua_cocos2dx_MenuItemAtlasFont_initWithString); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemAtlasFont).name(); g_luaType[typeName] = "cc.MenuItemAtlasFont"; @@ -46018,53 +56800,6 @@ int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) return 1; } -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) - { - 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(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'", nullptr); - return 0; - } - int ret = cobj->getFontSizeObj(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) { int argc = 0; @@ -46112,56 +56847,6 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) return 0; } -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) - { - 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) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.MenuItemFont:setFontSizeObj"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'", nullptr); - return 0; - } - cobj->setFontSizeObj(arg0); - lua_settop(tolua_S, 1); - return 1; - } - 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) { int argc = 0; @@ -46212,6 +56897,160 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemFont_initWithString(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_initWithString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::function arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemFont:initWithString"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_initWithString'", nullptr); + return 0; + } + bool ret = cobj->initWithString(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:initWithString",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_initWithString'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'", nullptr); + return 0; + } + int ret = cobj->getFontSizeObj(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'.",&tolua_err); +#endif + + return 0; +} +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) + { + 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) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.MenuItemFont:setFontSizeObj"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'", nullptr); + return 0; + } + cobj->setFontSizeObj(arg0); + lua_settop(tolua_S, 1); + return 1; + } + 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_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) { int argc = 0; @@ -46352,6 +57191,43 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_MenuItemFont_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemFont* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItemFont(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemFont"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:MenuItemFont",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItemFont_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemFont)"); @@ -46364,10 +57240,12 @@ int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) 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,"new",lua_cocos2dx_MenuItemFont_constructor); 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,"initWithString",lua_cocos2dx_MenuItemFont_initWithString); + tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); + tolua_function(tolua_S,"setFontSizeObj",lua_cocos2dx_MenuItemFont_setFontSizeObj); 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); @@ -46576,6 +57454,69 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemSprite_initWithNormalSprite(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_initWithNormalSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + cocos2d::Node* arg0; + cocos2d::Node* arg1; + cocos2d::Node* arg2; + std::function arg3; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1); + + ok &= luaval_to_object(tolua_S, 4, "cc.Node",&arg2); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_initWithNormalSprite'", nullptr); + return 0; + } + bool ret = cobj->initWithNormalSprite(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:initWithNormalSprite",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_initWithNormalSprite'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) { int argc = 0; @@ -46814,6 +57755,43 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemSprite_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemSprite* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItemSprite(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemSprite"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:MenuItemSprite",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItemSprite_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemSprite)"); @@ -46826,10 +57804,12 @@ int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) tolua_cclass(tolua_S,"MenuItemSprite","cc.MenuItemSprite","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemSprite"); + tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemSprite_constructor); 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,"initWithNormalSprite",lua_cocos2dx_MenuItemSprite_initWithNormalSprite); 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); @@ -46992,6 +57972,153 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemImage_init(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_MenuItemImage_initWithNormalImage(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_initWithNormalImage'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + std::string arg0; + std::string arg1; + std::string arg2; + std::function arg3; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemImage:initWithNormalImage"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.MenuItemImage:initWithNormalImage"); + + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.MenuItemImage:initWithNormalImage"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_initWithNormalImage'", nullptr); + return 0; + } + bool ret = cobj->initWithNormalImage(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:initWithNormalImage",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_initWithNormalImage'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_MenuItemImage_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemImage* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItemImage(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemImage"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:MenuItemImage",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItemImage_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemImage)"); @@ -47004,9 +58131,12 @@ int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) tolua_cclass(tolua_S,"MenuItemImage","cc.MenuItemImage","cc.MenuItemSprite",nullptr); tolua_beginmodule(tolua_S,"MenuItemImage"); + tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemImage_constructor); 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,"init",lua_cocos2dx_MenuItemImage_init); + tolua_function(tolua_S,"initWithNormalImage",lua_cocos2dx_MenuItemImage_initWithNormalImage); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemImage).name(); g_luaType[typeName] = "cc.MenuItemImage"; @@ -47064,6 +58194,56 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemToggle_initWithItem(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_initWithItem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::MenuItem* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_initWithItem'", nullptr); + return 0; + } + bool ret = cobj->initWithItem(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.MenuItemToggle:initWithItem",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_initWithItem'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) { int argc = 0; @@ -47258,6 +58438,43 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MenuItemToggle_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MenuItemToggle* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MenuItemToggle(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemToggle"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:MenuItemToggle",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MenuItemToggle_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemToggle)"); @@ -47270,7 +58487,9 @@ int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) tolua_cclass(tolua_S,"MenuItemToggle","cc.MenuItemToggle","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemToggle"); + tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemToggle_constructor); tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); + tolua_function(tolua_S,"initWithItem",lua_cocos2dx_MenuItemToggle_initWithItem); 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); @@ -47282,6 +58501,56 @@ int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Menu_initWithArray(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_initWithArray'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Vector arg0; + + ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Menu:initWithArray"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_initWithArray'", nullptr); + return 0; + } + bool ret = cobj->initWithArray(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.Menu:initWithArray",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_initWithArray'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) { int argc = 0; @@ -47573,6 +58842,43 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Menu_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Menu* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Menu(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Menu"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:Menu",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Menu_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Menu)"); @@ -47585,6 +58891,8 @@ int lua_register_cocos2dx_Menu(lua_State* tolua_S) tolua_cclass(tolua_S,"Menu","cc.Menu","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"Menu"); + tolua_function(tolua_S,"new",lua_cocos2dx_Menu_constructor); + tolua_function(tolua_S,"initWithArray",lua_cocos2dx_Menu_initWithArray); 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); @@ -47792,6 +59100,56 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ClippingNode_init(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_init'", nullptr); + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_init'", nullptr); + return 0; + } + bool ret = cobj->init(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.ClippingNode:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) { int argc = 0; @@ -47997,6 +59355,7 @@ int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) 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,"init",lua_cocos2dx_ClippingNode_init); 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); @@ -48753,6 +60112,93 @@ int lua_cocos2dx_MotionStreak_getStroke(lua_State* tolua_S) return 0; } +int lua_cocos2dx_MotionStreak_initWithFade(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_initWithFade'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 5) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + cocos2d::Color3B arg3; + ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + cocos2d::Texture2D* arg4; + ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4); + + if (!ok) { break; } + bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 5) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + double arg1; + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + cocos2d::Color3B arg3; + ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + std::string arg4; + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.MotionStreak:initWithFade"); + + if (!ok) { break; } + bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:initWithFade",argc, 5); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_initWithFade'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) { int argc = 0; @@ -48925,6 +60371,43 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_MotionStreak_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::MotionStreak* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::MotionStreak(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MotionStreak"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:MotionStreak",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_MotionStreak_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MotionStreak)"); @@ -48937,6 +60420,7 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) tolua_cclass(tolua_S,"MotionStreak","cc.MotionStreak","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MotionStreak"); + tolua_function(tolua_S,"new",lua_cocos2dx_MotionStreak_constructor); 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); @@ -48947,6 +60431,7 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak_isStartingPositionInitialized); tolua_function(tolua_S,"isFastMode",lua_cocos2dx_MotionStreak_isFastMode); tolua_function(tolua_S,"getStroke",lua_cocos2dx_MotionStreak_getStroke); + tolua_function(tolua_S,"initWithFade",lua_cocos2dx_MotionStreak_initWithFade); tolua_function(tolua_S,"setFastMode",lua_cocos2dx_MotionStreak_setFastMode); tolua_function(tolua_S,"setStroke",lua_cocos2dx_MotionStreak_setStroke); tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); @@ -48957,6 +60442,56 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ProgressTimer_initWithSprite(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_initWithSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_initWithSprite'", nullptr); + return 0; + } + bool ret = cobj->initWithSprite(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.ProgressTimer:initWithSprite",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_initWithSprite'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) { int argc = 0; @@ -49580,6 +61115,43 @@ int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ProgressTimer_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ProgressTimer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ProgressTimer(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProgressTimer"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:ProgressTimer",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ProgressTimer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProgressTimer)"); @@ -49592,6 +61164,8 @@ int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) tolua_cclass(tolua_S,"ProgressTimer","cc.ProgressTimer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ProgressTimer"); + tolua_function(tolua_S,"new",lua_cocos2dx_ProgressTimer_constructor); + tolua_function(tolua_S,"initWithSprite",lua_cocos2dx_ProgressTimer_initWithSprite); 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); @@ -49869,6 +61443,85 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Sprite_initWithTexture(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithTexture'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + cocos2d::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithTexture"); + + if (!ok) { break; } + bool ret = cobj->initWithTexture(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + cocos2d::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + if (!ok) { break; } + bool ret = cobj->initWithTexture(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + cocos2d::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithTexture"); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Sprite:initWithTexture"); + + if (!ok) { break; } + bool ret = cobj->initWithTexture(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:initWithTexture",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithTexture'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) { int argc = 0; @@ -50076,6 +61729,56 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Sprite_initWithSpriteFrameName(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithSpriteFrameName'", nullptr); + 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.Sprite:initWithSpriteFrameName"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_initWithSpriteFrameName'", nullptr); + return 0; + } + bool ret = cobj->initWithSpriteFrameName(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.Sprite:initWithSpriteFrameName",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithSpriteFrameName'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) { int argc = 0; @@ -50661,6 +62364,65 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Sprite_initWithFile(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithFile'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:initWithFile"); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithFile"); + + if (!ok) { break; } + bool ret = cobj->initWithFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:initWithFile"); + + if (!ok) { break; } + bool ret = cobj->initWithFile(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:initWithFile",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithFile'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Sprite_setBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -50758,6 +62520,56 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Sprite_initWithSpriteFrame(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::SpriteFrame* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'", nullptr); + return 0; + } + bool ret = cobj->initWithSpriteFrame(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.Sprite:initWithSpriteFrame",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) { int argc = 0; @@ -51105,6 +62917,43 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Sprite_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Sprite* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Sprite(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Sprite"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:Sprite",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Sprite_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Sprite)"); @@ -51117,15 +62966,18 @@ int lua_register_cocos2dx_Sprite(lua_State* tolua_S) tolua_cclass(tolua_S,"Sprite","cc.Sprite","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Sprite"); + tolua_function(tolua_S,"new",lua_cocos2dx_Sprite_constructor); 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,"initWithTexture",lua_cocos2dx_Sprite_initWithTexture); 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,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); + tolua_function(tolua_S,"initWithSpriteFrameName",lua_cocos2dx_Sprite_initWithSpriteFrameName); 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); @@ -51138,8 +62990,10 @@ int lua_register_cocos2dx_Sprite(lua_State* tolua_S) 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,"initWithFile",lua_cocos2dx_Sprite_initWithFile); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_Sprite_setBlendFunc); tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_Sprite_getTextureAtlas); + tolua_function(tolua_S,"initWithSpriteFrame",lua_cocos2dx_Sprite_initWithSpriteFrame); 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); @@ -53527,6 +65381,43 @@ int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_NodeGrid_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::NodeGrid* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::NodeGrid(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.NodeGrid"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:NodeGrid",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_NodeGrid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (NodeGrid)"); @@ -53539,6 +65430,7 @@ int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) tolua_cclass(tolua_S,"NodeGrid","cc.NodeGrid","cc.Node",nullptr); tolua_beginmodule(tolua_S,"NodeGrid"); + tolua_function(tolua_S,"new",lua_cocos2dx_NodeGrid_constructor); 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); @@ -53600,6 +65492,59 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ParticleBatchNode_initWithTexture(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_initWithTexture'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocos2d::Texture2D* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:initWithTexture"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_initWithTexture'", nullptr); + return 0; + } + bool ret = cobj->initWithTexture(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:initWithTexture",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_initWithTexture'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) { int argc = 0; @@ -53747,6 +65692,59 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ParticleBatchNode_initWithFile(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_initWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + int arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleBatchNode:initWithFile"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:initWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_initWithFile'", nullptr); + return 0; + } + bool ret = cobj->initWithFile(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:initWithFile",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_initWithFile'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -54149,6 +66147,43 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleBatchNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleBatchNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleBatchNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleBatchNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:ParticleBatchNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleBatchNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleBatchNode)"); @@ -54161,10 +66196,13 @@ int lua_register_cocos2dx_ParticleBatchNode(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleBatchNode","cc.ParticleBatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleBatchNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleBatchNode_constructor); tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); + tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_ParticleBatchNode_initWithTexture); 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,"initWithFile",lua_cocos2dx_ParticleBatchNode_initWithFile); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_ParticleBatchNode_setBlendFunc); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup); tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_ParticleBatchNode_getTextureAtlas); @@ -55385,6 +67423,56 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ParticleSystem_initWithTotalParticles(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleSystem:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) { int argc = 0; @@ -57284,6 +69372,56 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ParticleSystem_initWithFile(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initWithFile'", nullptr); + 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.ParticleSystem:initWithFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_initWithFile'", nullptr); + return 0; + } + bool ret = cobj->initWithFile(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.ParticleSystem:initWithFile",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initWithFile'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) { int argc = 0; @@ -58439,6 +70577,65 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ParticleSystem_initWithDictionary(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initWithDictionary'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + cocos2d::ValueMap arg0; + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystem:initWithDictionary"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.ParticleSystem:initWithDictionary"); + + if (!ok) { break; } + bool ret = cobj->initWithDictionary(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + cocos2d::ValueMap arg0; + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystem:initWithDictionary"); + + if (!ok) { break; } + bool ret = cobj->initWithDictionary(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:initWithDictionary",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initWithDictionary'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) { int argc = 0; @@ -58799,6 +70996,43 @@ int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleSystem_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleSystem(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSystem"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:ParticleSystem",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleSystem_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSystem)"); @@ -58811,6 +71045,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSystem","cc.ParticleSystem","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleSystem"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSystem_constructor); 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); @@ -58836,6 +71071,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) 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,"initWithTotalParticles",lua_cocos2dx_ParticleSystem_initWithTotalParticles); 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); @@ -58875,6 +71111,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) 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,"initWithFile",lua_cocos2dx_ParticleSystem_initWithFile); 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); @@ -58899,6 +71136,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) 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,"initWithDictionary",lua_cocos2dx_ParticleSystem_initWithDictionary); 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); @@ -59161,6 +71399,43 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleSystemQuad_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystemQuad* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleSystemQuad(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSystemQuad"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:ParticleSystemQuad",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleSystemQuad_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSystemQuad)"); @@ -59173,6 +71448,7 @@ int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSystemQuad","cc.ParticleSystemQuad","cc.ParticleSystem",nullptr); tolua_beginmodule(tolua_S,"ParticleSystemQuad"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSystemQuad_constructor); 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); @@ -59255,6 +71531,43 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleFire_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFire* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleFire(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleFire"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFire:ParticleFire",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleFire_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleFire)"); @@ -59267,6 +71580,7 @@ int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleFire","cc.ParticleFire","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFire"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleFire_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59276,6 +71590,103 @@ int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleFireworks_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFireworks* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFireworks_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFireworks:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleFireworks_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFireworks* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFireworks_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFireworks:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleFireworks:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) { int argc = 0; @@ -59346,6 +71757,43 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleFireworks_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFireworks* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleFireworks(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleFireworks"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFireworks:ParticleFireworks",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleFireworks_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleFireworks)"); @@ -59358,6 +71806,9 @@ int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleFireworks","cc.ParticleFireworks","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFireworks"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleFireworks_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleFireworks_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleFireworks_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59367,6 +71818,103 @@ int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleSun_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSun* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSun*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSun_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSun:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleSun_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSun* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSun*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSun_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSun:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleSun:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) { int argc = 0; @@ -59437,6 +71985,43 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleSun_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSun* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleSun(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSun"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSun:ParticleSun",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleSun_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSun)"); @@ -59449,6 +72034,9 @@ int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSun","cc.ParticleSun","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSun"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSun_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSun_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSun_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59458,6 +72046,103 @@ int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleGalaxy_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleGalaxy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleGalaxy_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleGalaxy:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleGalaxy_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleGalaxy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleGalaxy_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleGalaxy:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleGalaxy:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) { int argc = 0; @@ -59528,6 +72213,43 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleGalaxy_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleGalaxy* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleGalaxy(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleGalaxy"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleGalaxy:ParticleGalaxy",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleGalaxy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleGalaxy)"); @@ -59540,6 +72262,9 @@ int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleGalaxy","cc.ParticleGalaxy","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleGalaxy"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleGalaxy_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleGalaxy_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleGalaxy_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59549,6 +72274,103 @@ int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleFlower_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFlower* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleFlower*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFlower_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFlower:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleFlower_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFlower* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleFlower*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFlower_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFlower:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleFlower:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) { int argc = 0; @@ -59619,6 +72441,43 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleFlower_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleFlower* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleFlower(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleFlower"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFlower:ParticleFlower",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleFlower_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleFlower)"); @@ -59631,6 +72490,9 @@ int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleFlower","cc.ParticleFlower","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFlower"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleFlower_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleFlower_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleFlower_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59640,6 +72502,103 @@ int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleMeteor_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleMeteor* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleMeteor_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleMeteor:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleMeteor_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleMeteor* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleMeteor_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleMeteor:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleMeteor:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) { int argc = 0; @@ -59710,6 +72669,43 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleMeteor_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleMeteor* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleMeteor(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleMeteor"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleMeteor:ParticleMeteor",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleMeteor_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleMeteor)"); @@ -59722,6 +72718,9 @@ int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleMeteor","cc.ParticleMeteor","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleMeteor"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleMeteor_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleMeteor_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleMeteor_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59731,6 +72730,103 @@ int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleSpiral_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSpiral* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSpiral_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSpiral:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleSpiral_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSpiral* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSpiral_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSpiral:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleSpiral:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) { int argc = 0; @@ -59801,6 +72897,43 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleSpiral_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSpiral* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleSpiral(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSpiral"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSpiral:ParticleSpiral",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleSpiral_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSpiral)"); @@ -59813,6 +72946,9 @@ int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSpiral","cc.ParticleSpiral","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSpiral"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSpiral_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSpiral_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSpiral_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59822,6 +72958,103 @@ int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleExplosion_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleExplosion* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleExplosion_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleExplosion:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleExplosion_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleExplosion* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleExplosion_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleExplosion:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleExplosion:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) { int argc = 0; @@ -59892,6 +73125,43 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleExplosion_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleExplosion* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleExplosion(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleExplosion"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleExplosion:ParticleExplosion",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleExplosion_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleExplosion)"); @@ -59904,6 +73174,9 @@ int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleExplosion","cc.ParticleExplosion","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleExplosion"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleExplosion_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleExplosion_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleExplosion_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -59913,6 +73186,103 @@ int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleSmoke_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSmoke* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSmoke_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSmoke:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleSmoke_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSmoke* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSmoke_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSmoke:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleSmoke:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) { int argc = 0; @@ -59983,6 +73353,43 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleSmoke_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSmoke* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleSmoke(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSmoke"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSmoke:ParticleSmoke",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleSmoke_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSmoke)"); @@ -59995,6 +73402,9 @@ int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSmoke","cc.ParticleSmoke","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSmoke"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSmoke_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSmoke_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSmoke_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -60004,6 +73414,103 @@ int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleSnow_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSnow* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSnow*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSnow_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSnow:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleSnow_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSnow* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSnow*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSnow_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSnow:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleSnow:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) { int argc = 0; @@ -60074,6 +73581,43 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleSnow_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSnow* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleSnow(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSnow"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSnow:ParticleSnow",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleSnow_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSnow)"); @@ -60086,6 +73630,9 @@ int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSnow","cc.ParticleSnow","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSnow"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSnow_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSnow_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSnow_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -60095,6 +73642,103 @@ int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ParticleRain_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleRain* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleRain*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleRain_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_init'", nullptr); + return 0; + } + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleRain:init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ParticleRain_initWithTotalParticles(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleRain* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleRain*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleRain_initWithTotalParticles'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleRain:initWithTotalParticles"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_initWithTotalParticles'", nullptr); + return 0; + } + bool ret = cobj->initWithTotalParticles(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.ParticleRain:initWithTotalParticles",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_initWithTotalParticles'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) { int argc = 0; @@ -60165,6 +73809,43 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParticleRain_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleRain* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParticleRain(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleRain"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleRain:ParticleRain",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParticleRain_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleRain)"); @@ -60177,6 +73858,9 @@ int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleRain","cc.ParticleRain","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleRain"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParticleRain_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_ParticleRain_init); + tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleRain_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); tolua_endmodule(tolua_S); @@ -61529,6 +75213,115 @@ int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Camera_setScene(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_setScene'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Scene* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setScene'", nullptr); + return 0; + } + cobj->setScene(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setScene",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setScene'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Camera_initPerspective(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_initPerspective'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + double arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Camera:initPerspective"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Camera:initPerspective"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Camera:initPerspective"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Camera:initPerspective"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_initPerspective'", nullptr); + return 0; + } + bool ret = cobj->initPerspective(arg0, arg1, arg2, arg3); + 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:initPerspective",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_initPerspective'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) { int argc = 0; @@ -61764,6 +75557,53 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Camera_initDefault(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_initDefault'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_initDefault'", nullptr); + return 0; + } + bool ret = cobj->initDefault(); + 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:initDefault",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_initDefault'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Camera_project(lua_State* tolua_S) { int argc = 0; @@ -62031,6 +75871,115 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Camera_initOrthographic(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_initOrthographic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 4) + { + double arg0; + double arg1; + double arg2; + double arg3; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Camera:initOrthographic"); + + ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Camera:initOrthographic"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Camera:initOrthographic"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Camera:initOrthographic"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_initOrthographic'", nullptr); + return 0; + } + bool ret = cobj->initOrthographic(arg0, arg1, arg2, arg3); + 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:initOrthographic",argc, 4); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_initOrthographic'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Camera_setAdditionalProjection(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_setAdditionalProjection'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Mat4 arg0; + + ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Camera:setAdditionalProjection"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setAdditionalProjection'", nullptr); + return 0; + } + cobj->setAdditionalProjection(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setAdditionalProjection",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setAdditionalProjection'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Camera_getDepth(lua_State* tolua_S) { int argc = 0; @@ -62314,6 +76263,43 @@ int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_Camera_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Camera* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::Camera(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Camera"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:Camera",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_Camera_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Camera)"); @@ -62326,16 +76312,22 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S) tolua_cclass(tolua_S,"Camera","cc.Camera","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Camera"); + tolua_function(tolua_S,"new",lua_cocos2dx_Camera_constructor); + tolua_function(tolua_S,"setScene",lua_cocos2dx_Camera_setScene); + tolua_function(tolua_S,"initPerspective",lua_cocos2dx_Camera_initPerspective); 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,"initDefault",lua_cocos2dx_Camera_initDefault); tolua_function(tolua_S,"project",lua_cocos2dx_Camera_project); tolua_function(tolua_S,"getDepthInView",lua_cocos2dx_Camera_getDepthInView); 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,"initOrthographic",lua_cocos2dx_Camera_initOrthographic); + tolua_function(tolua_S,"setAdditionalProjection",lua_cocos2dx_Camera_setAdditionalProjection); tolua_function(tolua_S,"getDepth",lua_cocos2dx_Camera_getDepth); tolua_function(tolua_S,"setDepth",lua_cocos2dx_Camera_setDepth); tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); @@ -62896,6 +76888,43 @@ int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_DirectionLight_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::DirectionLight* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::DirectionLight(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DirectionLight"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:DirectionLight",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_DirectionLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DirectionLight)"); @@ -62908,6 +76937,7 @@ int lua_register_cocos2dx_DirectionLight(lua_State* tolua_S) tolua_cclass(tolua_S,"DirectionLight","cc.DirectionLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"DirectionLight"); + tolua_function(tolua_S,"new",lua_cocos2dx_DirectionLight_constructor); 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); @@ -63056,6 +77086,43 @@ int lua_cocos2dx_PointLight_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_PointLight_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::PointLight* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::PointLight(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.PointLight"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:PointLight",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_PointLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PointLight)"); @@ -63068,6 +77135,7 @@ int lua_register_cocos2dx_PointLight(lua_State* tolua_S) tolua_cclass(tolua_S,"PointLight","cc.PointLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"PointLight"); + tolua_function(tolua_S,"new",lua_cocos2dx_PointLight_constructor); 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); @@ -63653,6 +77721,43 @@ int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_SpotLight_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::SpotLight* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::SpotLight(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SpotLight"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:SpotLight",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_SpotLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpotLight)"); @@ -63665,6 +77770,7 @@ int lua_register_cocos2dx_SpotLight(lua_State* tolua_S) tolua_cclass(tolua_S,"SpotLight","cc.SpotLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"SpotLight"); + tolua_function(tolua_S,"new",lua_cocos2dx_SpotLight_constructor); 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); @@ -63720,6 +77826,43 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_AmbientLight_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::AmbientLight* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AmbientLight_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::AmbientLight(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AmbientLight"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AmbientLight:AmbientLight",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AmbientLight_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_AmbientLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AmbientLight)"); @@ -63732,6 +77875,7 @@ int lua_register_cocos2dx_AmbientLight(lua_State* tolua_S) tolua_cclass(tolua_S,"AmbientLight","cc.AmbientLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"AmbientLight"); + tolua_function(tolua_S,"new",lua_cocos2dx_AmbientLight_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AmbientLight).name(); @@ -67386,6 +81530,43 @@ int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_ParallaxNode_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParallaxNode* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::ParallaxNode(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParallaxNode"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:ParallaxNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_ParallaxNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParallaxNode)"); @@ -67398,6 +81579,7 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParallaxNode"); + tolua_function(tolua_S,"new",lua_cocos2dx_ParallaxNode_constructor); 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); @@ -71317,6 +85499,109 @@ int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) return 0; } +int lua_cocos2dx_TMXTiledMap_initWithXML(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_initWithXML'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::string arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:initWithXML"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXTiledMap:initWithXML"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_initWithXML'", nullptr); + return 0; + } + bool ret = cobj->initWithXML(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:initWithXML",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_initWithXML'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_TMXTiledMap_initWithTMXFile(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) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_initWithTMXFile'", nullptr); + 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.TMXTiledMap:initWithTMXFile"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_initWithTMXFile'", nullptr); + return 0; + } + bool ret = cobj->initWithTMXFile(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.TMXTiledMap:initWithTMXFile",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_initWithTMXFile'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) { int argc = 0; @@ -71779,6 +86064,43 @@ int lua_cocos2dx_TMXTiledMap_createWithXML(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_TMXTiledMap_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::TMXTiledMap* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::TMXTiledMap(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXTiledMap"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:TMXTiledMap",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_TMXTiledMap_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXTiledMap)"); @@ -71791,11 +86113,14 @@ int lua_register_cocos2dx_TMXTiledMap(lua_State* tolua_S) tolua_cclass(tolua_S,"TMXTiledMap","cc.TMXTiledMap","cc.Node",nullptr); tolua_beginmodule(tolua_S,"TMXTiledMap"); + tolua_function(tolua_S,"new",lua_cocos2dx_TMXTiledMap_constructor); 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,"initWithXML",lua_cocos2dx_TMXTiledMap_initWithXML); + tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXTiledMap_initWithTMXFile); 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); @@ -72694,6 +87019,41 @@ int lua_cocos2dx_AsyncTaskPool_getInstance(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_AsyncTaskPool_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::AsyncTaskPool* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::AsyncTaskPool(); + tolua_pushusertype(tolua_S,(void*)cobj,"cc.AsyncTaskPool"); + tolua_register_gc(tolua_S,lua_gettop(tolua_S)); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AsyncTaskPool:AsyncTaskPool",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AsyncTaskPool_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_AsyncTaskPool_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AsyncTaskPool)"); @@ -72706,6 +87066,7 @@ int lua_register_cocos2dx_AsyncTaskPool(lua_State* tolua_S) tolua_cclass(tolua_S,"AsyncTaskPool","cc.AsyncTaskPool","",nullptr); tolua_beginmodule(tolua_S,"AsyncTaskPool"); + tolua_function(tolua_S,"new",lua_cocos2dx_AsyncTaskPool_constructor); tolua_function(tolua_S,"stopTasks",lua_cocos2dx_AsyncTaskPool_stopTasks); tolua_function(tolua_S,"destoryInstance", lua_cocos2dx_AsyncTaskPool_destoryInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_AsyncTaskPool_getInstance); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp index 15d6d5ccf6..91b409d8c6 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp @@ -1627,6 +1627,321 @@ int register_all_cocos2dx(lua_State* tolua_S); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.cpp index 31dcd5dda6..c352e9276e 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.cpp @@ -763,6 +763,43 @@ int lua_cocos2dx_experimental_video_VideoPlayer_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_experimental_video_VideoPlayer_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::experimental::ui::VideoPlayer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_video_VideoPlayer_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::experimental::ui::VideoPlayer(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccexp.VideoPlayer"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.VideoPlayer:VideoPlayer",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_video_VideoPlayer_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_experimental_video_VideoPlayer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (VideoPlayer)"); @@ -775,6 +812,7 @@ int lua_register_cocos2dx_experimental_video_VideoPlayer(lua_State* tolua_S) tolua_cclass(tolua_S,"VideoPlayer","ccexp.VideoPlayer","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"VideoPlayer"); + tolua_function(tolua_S,"new",lua_cocos2dx_experimental_video_VideoPlayer_constructor); tolua_function(tolua_S,"getFileName",lua_cocos2dx_experimental_video_VideoPlayer_getFileName); tolua_function(tolua_S,"getURL",lua_cocos2dx_experimental_video_VideoPlayer_getURL); tolua_function(tolua_S,"play",lua_cocos2dx_experimental_video_VideoPlayer_play); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.hpp index ca7986e43f..44597483da 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_video_auto.hpp @@ -30,5 +30,6 @@ int register_all_cocos2dx_experimental_video(lua_State* tolua_S); + #endif // __cocos2dx_experimental_video_h__ #endif //#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.cpp index 3a030c2b47..5a4f222df2 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.cpp @@ -6,56 +6,6 @@ -int lua_cocos2dx_experimental_webview_WebView_loadURL(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::experimental::ui::WebView* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_loadURL'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.WebView:loadURL"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_loadURL'", nullptr); - return 0; - } - cobj->loadURL(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:loadURL",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_loadURL'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_experimental_webview_WebView_canGoBack(lua_State* tolua_S) { int argc = 0; @@ -264,7 +214,7 @@ int lua_cocos2dx_experimental_webview_WebView_goBack(lua_State* tolua_S) return 0; } -int lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S) +int lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::ui::WebView* cobj = nullptr; @@ -284,7 +234,57 @@ int lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme(lua_S #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccexp.WebView:setScalesPageToFit"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit'", nullptr); + return 0; + } + cobj->setScalesPageToFit(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:setScalesPageToFit",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_experimental_webview_WebView_loadFile(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::experimental::ui::WebView* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_loadFile'", nullptr); return 0; } #endif @@ -294,22 +294,72 @@ int lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme(lua_S { std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.WebView:setJavascriptInterfaceScheme"); + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.WebView:loadFile"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_loadFile'", nullptr); return 0; } - cobj->setJavascriptInterfaceScheme(arg0); + cobj->loadFile(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:setJavascriptInterfaceScheme",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:loadFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_loadFile'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_experimental_webview_WebView_loadURL(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::experimental::ui::WebView* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_loadURL'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.WebView:loadURL"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_loadURL'", nullptr); + return 0; + } + cobj->loadURL(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:loadURL",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_loadURL'.",&tolua_err); #endif return 0; @@ -411,103 +461,6 @@ int lua_cocos2dx_experimental_webview_WebView_getOnJSCallback(lua_State* tolua_S return 0; } -int lua_cocos2dx_experimental_webview_WebView_reload(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::experimental::ui::WebView* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_reload'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_reload'", nullptr); - return 0; - } - cobj->reload(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:reload",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_reload'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::experimental::ui::WebView* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccexp.WebView:setScalesPageToFit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit'", nullptr); - return 0; - } - cobj->setScalesPageToFit(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:setScalesPageToFit",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_experimental_webview_WebView_canGoForward(lua_State* tolua_S) { int argc = 0; @@ -555,56 +508,6 @@ int lua_cocos2dx_experimental_webview_WebView_canGoForward(lua_State* tolua_S) return 0; } -int lua_cocos2dx_experimental_webview_WebView_loadFile(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::experimental::ui::WebView* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_loadFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.WebView:loadFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_loadFile'", nullptr); - return 0; - } - cobj->loadFile(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:loadFile",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_loadFile'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_experimental_webview_WebView_stopLoading(lua_State* tolua_S) { int argc = 0; @@ -652,6 +555,103 @@ int lua_cocos2dx_experimental_webview_WebView_stopLoading(lua_State* tolua_S) return 0; } +int lua_cocos2dx_experimental_webview_WebView_reload(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::experimental::ui::WebView* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_reload'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_reload'", nullptr); + return 0; + } + cobj->reload(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:reload",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_reload'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::experimental::ui::WebView* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.WebView:setJavascriptInterfaceScheme"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme'", nullptr); + return 0; + } + cobj->setJavascriptInterfaceScheme(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:setJavascriptInterfaceScheme",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_experimental_webview_WebView_create(lua_State* tolua_S) { int argc = 0; @@ -686,6 +686,43 @@ int lua_cocos2dx_experimental_webview_WebView_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_experimental_webview_WebView_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::experimental::ui::WebView* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::experimental::ui::WebView(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccexp.WebView"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:WebView",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_experimental_webview_WebView_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (WebView)"); @@ -698,19 +735,20 @@ int lua_register_cocos2dx_experimental_webview_WebView(lua_State* tolua_S) tolua_cclass(tolua_S,"WebView","ccexp.WebView","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"WebView"); - tolua_function(tolua_S,"loadURL",lua_cocos2dx_experimental_webview_WebView_loadURL); + tolua_function(tolua_S,"new",lua_cocos2dx_experimental_webview_WebView_constructor); tolua_function(tolua_S,"canGoBack",lua_cocos2dx_experimental_webview_WebView_canGoBack); tolua_function(tolua_S,"loadHTMLString",lua_cocos2dx_experimental_webview_WebView_loadHTMLString); tolua_function(tolua_S,"goForward",lua_cocos2dx_experimental_webview_WebView_goForward); tolua_function(tolua_S,"goBack",lua_cocos2dx_experimental_webview_WebView_goBack); - tolua_function(tolua_S,"setJavascriptInterfaceScheme",lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme); + tolua_function(tolua_S,"setScalesPageToFit",lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit); + tolua_function(tolua_S,"loadFile",lua_cocos2dx_experimental_webview_WebView_loadFile); + tolua_function(tolua_S,"loadURL",lua_cocos2dx_experimental_webview_WebView_loadURL); tolua_function(tolua_S,"evaluateJS",lua_cocos2dx_experimental_webview_WebView_evaluateJS); tolua_function(tolua_S,"getOnJSCallback",lua_cocos2dx_experimental_webview_WebView_getOnJSCallback); - tolua_function(tolua_S,"reload",lua_cocos2dx_experimental_webview_WebView_reload); - tolua_function(tolua_S,"setScalesPageToFit",lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit); tolua_function(tolua_S,"canGoForward",lua_cocos2dx_experimental_webview_WebView_canGoForward); - tolua_function(tolua_S,"loadFile",lua_cocos2dx_experimental_webview_WebView_loadFile); tolua_function(tolua_S,"stopLoading",lua_cocos2dx_experimental_webview_WebView_stopLoading); + tolua_function(tolua_S,"reload",lua_cocos2dx_experimental_webview_WebView_reload); + tolua_function(tolua_S,"setJavascriptInterfaceScheme",lua_cocos2dx_experimental_webview_WebView_setJavascriptInterfaceScheme); tolua_function(tolua_S,"create", lua_cocos2dx_experimental_webview_WebView_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::experimental::ui::WebView).name(); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.hpp index aa6680edf3..7a01ebc9c5 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_webview_auto.hpp @@ -28,5 +28,6 @@ int register_all_cocos2dx_experimental_webview(lua_State* tolua_S); + #endif // __cocos2dx_experimental_webview_h__ #endif //#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp index dcda1968e2..2f09abc130 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp @@ -621,6 +621,43 @@ int lua_cocos2dx_extension_Control_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_extension_Control_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::Control* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_Control_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::Control(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Control"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Control:Control",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Control_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_extension_Control_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Control)"); @@ -633,6 +670,7 @@ int lua_register_cocos2dx_extension_Control(lua_State* tolua_S) tolua_cclass(tolua_S,"Control","cc.Control","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"Control"); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_Control_constructor); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_Control_setEnabled); tolua_function(tolua_S,"getState",lua_cocos2dx_extension_Control_getState); tolua_function(tolua_S,"sendActionsForControlEvents",lua_cocos2dx_extension_Control_sendActionsForControlEvents); @@ -953,6 +991,56 @@ int lua_cocos2dx_extension_ControlButton_getLabelAnchorPoint(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ControlButton_initWithBackgroundSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlButton* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ControlButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_initWithBackgroundSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ui::Scale9Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccui.Scale9Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_initWithBackgroundSprite'", nullptr); + return 0; + } + bool ret = cobj->initWithBackgroundSprite(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.ControlButton:initWithBackgroundSprite",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_initWithBackgroundSprite'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlButton_getTitleTTFSizeForState(lua_State* tolua_S) { int argc = 0; @@ -1306,6 +1394,56 @@ int lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ControlButton_setBackgroundSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlButton* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ControlButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setBackgroundSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ui::Scale9Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccui.Scale9Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setBackgroundSprite'", nullptr); + return 0; + } + cobj->setBackgroundSprite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setBackgroundSprite",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setBackgroundSprite'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlButton_getBackgroundSpriteForState(lua_State* tolua_S) { int argc = 0; @@ -1403,6 +1541,62 @@ int lua_cocos2dx_extension_ControlButton_getHorizontalOrigin(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlButton* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ControlButton",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + std::string arg0; + std::string arg1; + double arg2; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ControlButton:initWithTitleAndFontNameAndFontSize"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.ControlButton:initWithTitleAndFontNameAndFontSize"); + + ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ControlButton:initWithTitleAndFontNameAndFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize'", nullptr); + return 0; + } + bool ret = cobj->initWithTitleAndFontNameAndFontSize(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:initWithTitleAndFontNameAndFontSize",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlButton_setTitleBMFontForState(lua_State* tolua_S) { int argc = 0; @@ -1906,7 +2100,7 @@ int lua_cocos2dx_extension_ControlButton_setScaleRatio(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlButton_setBackgroundSprite(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlButton_getTitleBMFontForState(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlButton* cobj = nullptr; @@ -1926,7 +2120,7 @@ int lua_cocos2dx_extension_ControlButton_setBackgroundSprite(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setBackgroundSprite'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_getTitleBMFontForState'", nullptr); return 0; } #endif @@ -1934,24 +2128,24 @@ int lua_cocos2dx_extension_ControlButton_setBackgroundSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Scale9Sprite* arg0; + cocos2d::extension::Control::State arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Scale9Sprite",&arg0); + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ControlButton:getTitleBMFontForState"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setBackgroundSprite'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_getTitleBMFontForState'", nullptr); return 0; } - cobj->setBackgroundSprite(arg0); - lua_settop(tolua_S, 1); + const std::string& ret = cobj->getTitleBMFontForState(arg0); + tolua_pushcppstring(tolua_S,ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setBackgroundSprite",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:getTitleBMFontForState",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setBackgroundSprite'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_getTitleBMFontForState'.",&tolua_err); #endif return 0; @@ -2247,7 +2441,7 @@ int lua_cocos2dx_extension_ControlButton_getCurrentTitle(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlButton_getTitleBMFontForState(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlButton_initWithLabelAndBackgroundSprite(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlButton* cobj = nullptr; @@ -2267,32 +2461,35 @@ int lua_cocos2dx_extension_ControlButton_getTitleBMFontForState(lua_State* tolua #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_getTitleBMFontForState'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_initWithLabelAndBackgroundSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 2) { - cocos2d::extension::Control::State arg0; + cocos2d::Node* arg0; + cocos2d::ui::Scale9Sprite* arg1; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ControlButton:getTitleBMFontForState"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + + ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_getTitleBMFontForState'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_initWithLabelAndBackgroundSprite'", nullptr); return 0; } - const std::string& ret = cobj->getTitleBMFontForState(arg0); - tolua_pushcppstring(tolua_S,ret); + bool ret = cobj->initWithLabelAndBackgroundSprite(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:getTitleBMFontForState",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:initWithLabelAndBackgroundSprite",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_getTitleBMFontForState'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_initWithLabelAndBackgroundSprite'.",&tolua_err); #endif return 0; @@ -2474,6 +2671,43 @@ int lua_cocos2dx_extension_ControlButton_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_extension_ControlButton_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlButton* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::ControlButton(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ControlButton"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:ControlButton",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_extension_ControlButton_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ControlButton)"); @@ -2486,12 +2720,14 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) tolua_cclass(tolua_S,"ControlButton","cc.ControlButton","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlButton"); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlButton_constructor); tolua_function(tolua_S,"isPushed",lua_cocos2dx_extension_ControlButton_isPushed); tolua_function(tolua_S,"setTitleLabelForState",lua_cocos2dx_extension_ControlButton_setTitleLabelForState); tolua_function(tolua_S,"setAdjustBackgroundImage",lua_cocos2dx_extension_ControlButton_setAdjustBackgroundImage); tolua_function(tolua_S,"setTitleForState",lua_cocos2dx_extension_ControlButton_setTitleForState); tolua_function(tolua_S,"setLabelAnchorPoint",lua_cocos2dx_extension_ControlButton_setLabelAnchorPoint); tolua_function(tolua_S,"getLabelAnchorPoint",lua_cocos2dx_extension_ControlButton_getLabelAnchorPoint); + tolua_function(tolua_S,"initWithBackgroundSprite",lua_cocos2dx_extension_ControlButton_initWithBackgroundSprite); tolua_function(tolua_S,"getTitleTTFSizeForState",lua_cocos2dx_extension_ControlButton_getTitleTTFSizeForState); tolua_function(tolua_S,"setTitleTTFForState",lua_cocos2dx_extension_ControlButton_setTitleTTFForState); tolua_function(tolua_S,"setTitleTTFSizeForState",lua_cocos2dx_extension_ControlButton_setTitleTTFSizeForState); @@ -2499,8 +2735,10 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) tolua_function(tolua_S,"setPreferredSize",lua_cocos2dx_extension_ControlButton_setPreferredSize); tolua_function(tolua_S,"getCurrentTitleColor",lua_cocos2dx_extension_ControlButton_getCurrentTitleColor); tolua_function(tolua_S,"setZoomOnTouchDown",lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown); + tolua_function(tolua_S,"setBackgroundSprite",lua_cocos2dx_extension_ControlButton_setBackgroundSprite); tolua_function(tolua_S,"getBackgroundSpriteForState",lua_cocos2dx_extension_ControlButton_getBackgroundSpriteForState); tolua_function(tolua_S,"getHorizontalOrigin",lua_cocos2dx_extension_ControlButton_getHorizontalOrigin); + tolua_function(tolua_S,"initWithTitleAndFontNameAndFontSize",lua_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize); tolua_function(tolua_S,"setTitleBMFontForState",lua_cocos2dx_extension_ControlButton_setTitleBMFontForState); tolua_function(tolua_S,"getScaleRatio",lua_cocos2dx_extension_ControlButton_getScaleRatio); tolua_function(tolua_S,"getTitleTTFForState",lua_cocos2dx_extension_ControlButton_getTitleTTFForState); @@ -2511,14 +2749,14 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) tolua_function(tolua_S,"setBackgroundSpriteFrameForState",lua_cocos2dx_extension_ControlButton_setBackgroundSpriteFrameForState); tolua_function(tolua_S,"setBackgroundSpriteForState",lua_cocos2dx_extension_ControlButton_setBackgroundSpriteForState); tolua_function(tolua_S,"setScaleRatio",lua_cocos2dx_extension_ControlButton_setScaleRatio); - tolua_function(tolua_S,"setBackgroundSprite",lua_cocos2dx_extension_ControlButton_setBackgroundSprite); + tolua_function(tolua_S,"getTitleBMFontForState",lua_cocos2dx_extension_ControlButton_getTitleBMFontForState); tolua_function(tolua_S,"getTitleLabel",lua_cocos2dx_extension_ControlButton_getTitleLabel); tolua_function(tolua_S,"getPreferredSize",lua_cocos2dx_extension_ControlButton_getPreferredSize); tolua_function(tolua_S,"getVerticalMargin",lua_cocos2dx_extension_ControlButton_getVerticalMargin); tolua_function(tolua_S,"getTitleLabelForState",lua_cocos2dx_extension_ControlButton_getTitleLabelForState); tolua_function(tolua_S,"setMargins",lua_cocos2dx_extension_ControlButton_setMargins); tolua_function(tolua_S,"getCurrentTitle",lua_cocos2dx_extension_ControlButton_getCurrentTitle); - tolua_function(tolua_S,"getTitleBMFontForState",lua_cocos2dx_extension_ControlButton_getTitleBMFontForState); + tolua_function(tolua_S,"initWithLabelAndBackgroundSprite",lua_cocos2dx_extension_ControlButton_initWithLabelAndBackgroundSprite); tolua_function(tolua_S,"getZoomOnTouchDown",lua_cocos2dx_extension_ControlButton_getZoomOnTouchDown); tolua_function(tolua_S,"getTitleForState",lua_cocos2dx_extension_ControlButton_getTitleForState); tolua_function(tolua_S,"create", lua_cocos2dx_extension_ControlButton_create); @@ -3806,53 +4044,6 @@ int lua_cocos2dx_extension_ControlColourPicker_setBackground(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlColourPicker_init(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlColourPicker* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ControlColourPicker",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlColourPicker*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlColourPicker_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlColourPicker_init'", nullptr); - return 0; - } - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlColourPicker:init",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlColourPicker_init'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlColourPicker_setcolourPicker(lua_State* tolua_S) { int argc = 0; @@ -4141,7 +4332,6 @@ int lua_register_cocos2dx_extension_ControlColourPicker(lua_State* tolua_S) tolua_function(tolua_S,"getHuePicker",lua_cocos2dx_extension_ControlColourPicker_getHuePicker); tolua_function(tolua_S,"getcolourPicker",lua_cocos2dx_extension_ControlColourPicker_getcolourPicker); tolua_function(tolua_S,"setBackground",lua_cocos2dx_extension_ControlColourPicker_setBackground); - tolua_function(tolua_S,"init",lua_cocos2dx_extension_ControlColourPicker_init); tolua_function(tolua_S,"setcolourPicker",lua_cocos2dx_extension_ControlColourPicker_setcolourPicker); tolua_function(tolua_S,"colourSliderValueChanged",lua_cocos2dx_extension_ControlColourPicker_colourSliderValueChanged); tolua_function(tolua_S,"setHuePicker",lua_cocos2dx_extension_ControlColourPicker_setHuePicker); @@ -8631,7 +8821,7 @@ int lua_cocos2dx_extension_ScrollView_setDirection(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ScrollView_init(lua_State* tolua_S) +int lua_cocos2dx_extension_ScrollView_setBounceable(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ScrollView* cobj = nullptr; @@ -8651,29 +8841,32 @@ int lua_cocos2dx_extension_ScrollView_init(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_init'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_setBounceable'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ScrollView:setBounceable"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_init'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_setBounceable'", nullptr); return 0; } - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setBounceable(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:init",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:setBounceable",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_init'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_setBounceable'.",&tolua_err); #endif return 0; @@ -9227,56 +9420,6 @@ int lua_cocos2dx_extension_ScrollView_maxContainerOffset(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ScrollView_setBounceable(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ScrollView* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_setBounceable'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ScrollView:setBounceable"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_setBounceable'", nullptr); - return 0; - } - cobj->setBounceable(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:setBounceable",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_setBounceable'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ScrollView_isTouchMoved(lua_State* tolua_S) { int argc = 0; @@ -9606,7 +9749,7 @@ int lua_register_cocos2dx_extension_ScrollView(lua_State* tolua_S) tolua_function(tolua_S,"initWithViewSize",lua_cocos2dx_extension_ScrollView_initWithViewSize); tolua_function(tolua_S,"pause",lua_cocos2dx_extension_ScrollView_pause); tolua_function(tolua_S,"setDirection",lua_cocos2dx_extension_ScrollView_setDirection); - tolua_function(tolua_S,"init",lua_cocos2dx_extension_ScrollView_init); + tolua_function(tolua_S,"setBounceable",lua_cocos2dx_extension_ScrollView_setBounceable); tolua_function(tolua_S,"setContentOffset",lua_cocos2dx_extension_ScrollView_setContentOffset); tolua_function(tolua_S,"isDragging",lua_cocos2dx_extension_ScrollView_isDragging); tolua_function(tolua_S,"isTouchEnabled",lua_cocos2dx_extension_ScrollView_isTouchEnabled); @@ -9618,7 +9761,6 @@ int lua_register_cocos2dx_extension_ScrollView(lua_State* tolua_S) tolua_function(tolua_S,"setViewSize",lua_cocos2dx_extension_ScrollView_setViewSize); tolua_function(tolua_S,"getViewSize",lua_cocos2dx_extension_ScrollView_getViewSize); tolua_function(tolua_S,"maxContainerOffset",lua_cocos2dx_extension_ScrollView_maxContainerOffset); - tolua_function(tolua_S,"setBounceable",lua_cocos2dx_extension_ScrollView_setBounceable); tolua_function(tolua_S,"isTouchMoved",lua_cocos2dx_extension_ScrollView_isTouchMoved); tolua_function(tolua_S,"isNodeVisible",lua_cocos2dx_extension_ScrollView_isNodeVisible); tolua_function(tolua_S,"minContainerOffset",lua_cocos2dx_extension_ScrollView_minContainerOffset); @@ -11684,6 +11826,253 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + if (argc == 4) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + double arg3; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + if (argc == 5) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + double arg3; + double arg4; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + if (argc == 6) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + double arg3; + double arg4; + std::string arg5; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + if (argc == 7) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + double arg3; + double arg4; + std::string arg5; + std::string arg6; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 8,&arg6, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + if (argc == 8) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + double arg3; + double arg4; + std::string arg5; + std::string arg6; + int arg7; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 8,&arg6, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + if (argc == 9) + { + std::string arg0; + cocos2d::extension::AssetsManagerEx* arg1; + cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + double arg3; + double arg4; + std::string arg5; + std::string arg6; + int arg7; + int arg8; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 8,&arg6, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + + ok &= luaval_to_int32(tolua_S, 10,(int *)&arg8, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventAssetsManagerEx"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:EventAssetsManagerEx",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_extension_EventAssetsManagerEx_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventAssetsManagerEx)"); @@ -11696,6 +12085,7 @@ int lua_register_cocos2dx_extension_EventAssetsManagerEx(lua_State* tolua_S) tolua_cclass(tolua_S,"EventAssetsManagerEx","cc.EventAssetsManagerEx","cc.EventCustom",nullptr); tolua_beginmodule(tolua_S,"EventAssetsManagerEx"); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_EventAssetsManagerEx_constructor); tolua_function(tolua_S,"getAssetsManagerEx",lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx); tolua_function(tolua_S,"getAssetId",lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId); tolua_function(tolua_S,"getCURLECode",lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode); @@ -12433,6 +12823,49 @@ int lua_cocos2dx_extension_AssetsManagerEx_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_extension_AssetsManagerEx_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::AssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::string arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AssetsManagerEx:AssetsManagerEx"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AssetsManagerEx:AssetsManagerEx"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::AssetsManagerEx(arg0, arg1); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AssetsManagerEx"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:AssetsManagerEx",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_AssetsManagerEx_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_extension_AssetsManagerEx_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AssetsManagerEx)"); @@ -12445,6 +12878,7 @@ int lua_register_cocos2dx_extension_AssetsManagerEx(lua_State* tolua_S) tolua_cclass(tolua_S,"AssetsManagerEx","cc.AssetsManagerEx","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AssetsManagerEx"); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_AssetsManagerEx_constructor); tolua_function(tolua_S,"getState",lua_cocos2dx_extension_AssetsManagerEx_getState); tolua_function(tolua_S,"checkUpdate",lua_cocos2dx_extension_AssetsManagerEx_checkUpdate); tolua_function(tolua_S,"getStoragePath",lua_cocos2dx_extension_AssetsManagerEx_getStoragePath); @@ -12460,6 +12894,100 @@ int lua_register_cocos2dx_extension_AssetsManagerEx(lua_State* tolua_S) return 1; } +int lua_cocos2dx_extension_EventListenerAssetsManagerEx_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventListenerAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.EventListenerAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::EventListenerAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_EventListenerAssetsManagerEx_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + const cocos2d::extension::AssetsManagerEx* arg0; + std::function arg1; + + ok &= luaval_to_object(tolua_S, 2, "cc.AssetsManagerEx",&arg0); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventListenerAssetsManagerEx_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerAssetsManagerEx:init",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventListenerAssetsManagerEx_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::EventListenerAssetsManagerEx* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::extension::EventListenerAssetsManagerEx(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerAssetsManagerEx"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerAssetsManagerEx:EventListenerAssetsManagerEx",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_extension_EventListenerAssetsManagerEx_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerAssetsManagerEx)"); @@ -12472,6 +13000,8 @@ int lua_register_cocos2dx_extension_EventListenerAssetsManagerEx(lua_State* tolu tolua_cclass(tolua_S,"EventListenerAssetsManagerEx","cc.EventListenerAssetsManagerEx","cc.EventListenerCustom",nullptr); tolua_beginmodule(tolua_S,"EventListenerAssetsManagerEx"); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor); + tolua_function(tolua_S,"init",lua_cocos2dx_extension_EventListenerAssetsManagerEx_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::extension::EventListenerAssetsManagerEx).name(); g_luaType[typeName] = "cc.EventListenerAssetsManagerEx"; @@ -12479,7 +13009,7 @@ int lua_register_cocos2dx_extension_EventListenerAssetsManagerEx(lua_State* tolu return 1; } -int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) +int lua_cocos2dx_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem3D* cobj = nullptr; @@ -12499,7 +13029,392 @@ int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAffector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem3D:removeAffector"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAffector'", nullptr); + return 0; + } + cobj->removeAffector(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:removeAffector",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAffector'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); + return 0; + } + cobj->resumeParticleSystem(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:resumeParticleSystem",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector'", nullptr); + return 0; + } + cobj->removeAllAffector(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:removeAllAffector",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Particle3DAffector* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DAffector",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'", nullptr); + return 0; + } + cobj->addAffector(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:addAffector",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem'", nullptr); + return 0; + } + cobj->startParticleSystem(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:startParticleSystem",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_isEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_isEnabled'", nullptr); + return 0; + } + bool ret = cobj->isEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:isEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_isEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Particle3DEmitter* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DEmitter",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'", nullptr); + return 0; + } + cobj->setEmitter(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:setEmitter",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal'", nullptr); + return 0; + } + bool ret = cobj->isKeepLocal(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:isKeepLocal",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_setEnabled'", nullptr); return 0; } #endif @@ -12509,22 +13424,22 @@ int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem3D:setKeepLocal"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem3D:setEnabled"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setEnabled'", nullptr); return 0; } - cobj->setKeepLocal(arg0); + cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:setKeepLocal",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_setEnabled'.",&tolua_err); #endif return 0; @@ -12623,6 +13538,147 @@ int lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); + return 0; + } + cobj->pauseParticleSystem(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:pauseParticleSystem",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_getState(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_getState'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_getState'", nullptr); + return 0; + } + int ret = (int)cobj->getState(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:getState",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_getState'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); + return 0; + } + int ret = cobj->getAliveParticleCount(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:getAliveParticleCount",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) { int argc = 0; @@ -12673,53 +13729,6 @@ int lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem'", nullptr); - return 0; - } - cobj->startParticleSystem(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:startParticleSystem",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -12820,53 +13829,6 @@ int lua_cocos2dx_extension_ParticleSystem3D_setRender(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_isEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_isEnabled'", nullptr); - return 0; - } - bool ret = cobj->isEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:isEnabled",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_isEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_S) { int argc = 0; @@ -12914,7 +13876,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_ return 0; } -int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) +int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem3D* cobj = nullptr; @@ -12934,7 +13896,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal'", nullptr); return 0; } #endif @@ -12944,27 +13906,27 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem3D:setEnabled"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem3D:setKeepLocal"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal'", nullptr); return 0; } - cobj->setEnabled(arg0); + cobj->setKeepLocal(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:setEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:setKeepLocal",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_setEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal'.",&tolua_err); #endif return 0; } -int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) +int lua_cocos2dx_extension_ParticleSystem3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem3D* cobj = nullptr; @@ -12975,427 +13937,32 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) #endif -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Particle3DEmitter* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DEmitter",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'", nullptr); - return 0; - } - cobj->setEmitter(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:setEmitter",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAffector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem3D:removeAffector"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAffector'", nullptr); - return 0; - } - cobj->removeAffector(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:removeAffector",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAffector'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); - return 0; - } -#endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_constructor'", nullptr); return 0; } - cobj->pauseParticleSystem(); - lua_settop(tolua_S, 1); + cobj = new cocos2d::ParticleSystem3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSystem3D"); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:pauseParticleSystem",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:ParticleSystem3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_constructor'.",&tolua_err); #endif return 0; } -int lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem'", nullptr); - return 0; - } - cobj->resumeParticleSystem(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:resumeParticleSystem",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_getState(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_getState'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_getState'", nullptr); - return 0; - } - int ret = (int)cobj->getState(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:getState",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_getState'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal'", nullptr); - return 0; - } - bool ret = cobj->isKeepLocal(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:isKeepLocal",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector'", nullptr); - return 0; - } - cobj->removeAllAffector(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:removeAllAffector",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Particle3DAffector* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DAffector",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'", nullptr); - return 0; - } - cobj->addAffector(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:addAffector",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount'", nullptr); - return 0; - } - int ret = cobj->getAliveParticleCount(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:getAliveParticleCount",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount'.",&tolua_err); -#endif - - return 0; -} static int lua_cocos2dx_extension_ParticleSystem3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSystem3D)"); @@ -13408,25 +13975,26 @@ int lua_register_cocos2dx_extension_ParticleSystem3D(lua_State* tolua_S) tolua_cclass(tolua_S,"ParticleSystem3D","cc.ParticleSystem3D","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleSystem3D"); - tolua_function(tolua_S,"setKeepLocal",lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal); - tolua_function(tolua_S,"getParticleQuota",lua_cocos2dx_extension_ParticleSystem3D_getParticleQuota); - tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc); - tolua_function(tolua_S,"setParticleQuota",lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota); - tolua_function(tolua_S,"startParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem); - tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc); - tolua_function(tolua_S,"setRender",lua_cocos2dx_extension_ParticleSystem3D_setRender); - tolua_function(tolua_S,"isEnabled",lua_cocos2dx_extension_ParticleSystem3D_isEnabled); - tolua_function(tolua_S,"stopParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ParticleSystem3D_setEnabled); - tolua_function(tolua_S,"setEmitter",lua_cocos2dx_extension_ParticleSystem3D_setEmitter); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_ParticleSystem3D_constructor); tolua_function(tolua_S,"removeAffector",lua_cocos2dx_extension_ParticleSystem3D_removeAffector); - tolua_function(tolua_S,"pauseParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem); tolua_function(tolua_S,"resumeParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem); - tolua_function(tolua_S,"getState",lua_cocos2dx_extension_ParticleSystem3D_getState); - tolua_function(tolua_S,"isKeepLocal",lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal); tolua_function(tolua_S,"removeAllAffector",lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector); tolua_function(tolua_S,"addAffector",lua_cocos2dx_extension_ParticleSystem3D_addAffector); + tolua_function(tolua_S,"startParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem); + tolua_function(tolua_S,"isEnabled",lua_cocos2dx_extension_ParticleSystem3D_isEnabled); + tolua_function(tolua_S,"setEmitter",lua_cocos2dx_extension_ParticleSystem3D_setEmitter); + tolua_function(tolua_S,"isKeepLocal",lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal); + tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ParticleSystem3D_setEnabled); + tolua_function(tolua_S,"getParticleQuota",lua_cocos2dx_extension_ParticleSystem3D_getParticleQuota); + tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc); + tolua_function(tolua_S,"pauseParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem); + tolua_function(tolua_S,"getState",lua_cocos2dx_extension_ParticleSystem3D_getState); tolua_function(tolua_S,"getAliveParticleCount",lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount); + tolua_function(tolua_S,"setParticleQuota",lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota); + tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc); + tolua_function(tolua_S,"setRender",lua_cocos2dx_extension_ParticleSystem3D_setRender); + tolua_function(tolua_S,"stopParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem); + tolua_function(tolua_S,"setKeepLocal",lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystem3D).name(); g_luaType[typeName] = "cc.ParticleSystem3D"; @@ -13434,6 +14002,56 @@ int lua_register_cocos2dx_extension_ParticleSystem3D(lua_State* tolua_S) return 1; } +int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath'", nullptr); + 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.PUParticleSystem3D:initWithFilePath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath'", nullptr); + return 0; + } + bool ret = cobj->initWithFilePath(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.PUParticleSystem3D:initWithFilePath",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_PUParticleSystem3D_getParticleSystemScaleVelocity(lua_State* tolua_S) { int argc = 0; @@ -13625,6 +14243,59 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* t return 0; } +int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::string arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.PUParticleSystem3D:initWithFilePathAndMaterialPath"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.PUParticleSystem3D:initWithFilePathAndMaterialPath"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr); + return 0; + } + bool ret = cobj->initWithFilePathAndMaterialPath(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PUParticleSystem3D:initWithFilePathAndMaterialPath",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua_S) { int argc = 0; @@ -15389,6 +16060,43 @@ int lua_cocos2dx_extension_PUParticleSystem3D_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_extension_PUParticleSystem3D_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::PUParticleSystem3D* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_constructor'", nullptr); + return 0; + } + cobj = new cocos2d::PUParticleSystem3D(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.PUParticleSystem3D"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PUParticleSystem3D:PUParticleSystem3D",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_PUParticleSystem3D_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_extension_PUParticleSystem3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PUParticleSystem3D)"); @@ -15401,10 +16109,13 @@ int lua_register_cocos2dx_extension_PUParticleSystem3D(lua_State* tolua_S) tolua_cclass(tolua_S,"PUParticleSystem3D","cc.PUParticleSystem3D","cc.ParticleSystem3D",nullptr); tolua_beginmodule(tolua_S,"PUParticleSystem3D"); + tolua_function(tolua_S,"new",lua_cocos2dx_extension_PUParticleSystem3D_constructor); + tolua_function(tolua_S,"initWithFilePath",lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath); tolua_function(tolua_S,"getParticleSystemScaleVelocity",lua_cocos2dx_extension_PUParticleSystem3D_getParticleSystemScaleVelocity); tolua_function(tolua_S,"setEmittedSystemQuota",lua_cocos2dx_extension_PUParticleSystem3D_setEmittedSystemQuota); tolua_function(tolua_S,"getDefaultDepth",lua_cocos2dx_extension_PUParticleSystem3D_getDefaultDepth); tolua_function(tolua_S,"getEmittedSystemQuota",lua_cocos2dx_extension_PUParticleSystem3D_getEmittedSystemQuota); + tolua_function(tolua_S,"initWithFilePathAndMaterialPath",lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath); tolua_function(tolua_S,"clearAllParticles",lua_cocos2dx_extension_PUParticleSystem3D_clearAllParticles); tolua_function(tolua_S,"getMaterialName",lua_cocos2dx_extension_PUParticleSystem3D_getMaterialName); tolua_function(tolua_S,"calulateRotationOffset",lua_cocos2dx_extension_PUParticleSystem3D_calulateRotationOffset); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp index 69c7c1750b..f309a39591 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp @@ -320,6 +320,17 @@ int register_all_cocos2dx_extension(lua_State* tolua_S); + + + + + + + + + + + diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp index 2c37b59d07..b5310cc869 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp @@ -55,103 +55,6 @@ int lua_cocos2dx_spine_SkeletonRenderer_setTimeScale(lua_State* tolua_S) return 0; } -int lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB'", nullptr); - return 0; - } - bool ret = cobj->isOpacityModifyRGB(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:isOpacityModifyRGB",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugSlotsEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); - return 0; - } - cobj->setDebugSlotsEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugSlotsEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_spine_SkeletonRenderer_getDebugSlotsEnabled(lua_State* tolua_S) { int argc = 0; @@ -246,6 +149,172 @@ int lua_cocos2dx_spine_SkeletonRenderer_setBonesToSetupPose(lua_State* tolua_S) return 0; } +int lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB'", nullptr); + return 0; + } + bool ret = cobj->isOpacityModifyRGB(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:isOpacityModifyRGB",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_initWithData(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + spSkeletonData* arg0; + + #pragma warning NO CONVERSION TO NATIVE FOR spSkeletonData* + ok = false; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithData'", nullptr); + return 0; + } + cobj->initWithData(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + spSkeletonData* arg0; + bool arg1; + + #pragma warning NO CONVERSION TO NATIVE FOR spSkeletonData* + ok = false; + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithData"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithData'", nullptr); + return 0; + } + cobj->initWithData(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithData",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithData'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugSlotsEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled'", nullptr); + return 0; + } + cobj->setDebugSlotsEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugSlotsEnabled",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose(lua_State* tolua_S) { int argc = 0; @@ -293,6 +362,103 @@ int lua_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose(lua_State* tolua_S) return 0; } +int lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setOpacityModifyRGB"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB'", nullptr); + return 0; + } + cobj->setOpacityModifyRGB(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setOpacityModifyRGB",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose'", nullptr); + return 0; + } + cobj->setToSetupPose(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setToSetupPose",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc(lua_State* tolua_S) { int argc = 0; @@ -340,6 +506,352 @@ int lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc(lua_State* tolua_S) return 0; } +int lua_cocos2dx_spine_SkeletonRenderer_initialize(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_initialize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_initialize'", nullptr); + return 0; + } + cobj->initialize(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initialize",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_initialize'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugBonesEnabled"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); + return 0; + } + cobj->setDebugBonesEnabled(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugBonesEnabled",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); + return 0; + } + bool ret = cobj->getDebugBonesEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugBonesEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_getTimeScale(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_getTimeScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_getTimeScale'", nullptr); + return 0; + } + double ret = cobj->getTimeScale(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getTimeScale",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_getTimeScale'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_initWithFile(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithFile'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + cobj->initWithFile(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + cobj->initWithFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + spAtlas* arg1; + #pragma warning NO CONVERSION TO NATIVE FOR spAtlas* + ok = false; + + if (!ok) { break; } + cobj->initWithFile(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + spAtlas* arg1; + #pragma warning NO CONVERSION TO NATIVE FOR spAtlas* + ok = false; + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithFile"); + + if (!ok) { break; } + cobj->initWithFile(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithFile",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithFile'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::BlendFunc arg0; + + ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "sp.SkeletonRenderer:setBlendFunc"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc'", nullptr); + return 0; + } + cobj->setBlendFunc(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setBlendFunc",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_spine_SkeletonRenderer_setSkin(lua_State* tolua_S) { int argc = 0; @@ -395,153 +907,6 @@ int lua_cocos2dx_spine_SkeletonRenderer_setSkin(lua_State* tolua_S) return 0; } -int lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose'", nullptr); - return 0; - } - cobj->setToSetupPose(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setToSetupPose",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setOpacityModifyRGB"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB'", nullptr); - return 0; - } - cobj->setOpacityModifyRGB(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setOpacityModifyRGB",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "sp.SkeletonRenderer:setDebugBonesEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled'", nullptr); - return 0; - } - cobj->setDebugBonesEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setDebugBonesEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_spine_SkeletonRenderer_getSkeleton(lua_State* tolua_S) { int argc = 0; @@ -589,150 +954,6 @@ int lua_cocos2dx_spine_SkeletonRenderer_getSkeleton(lua_State* tolua_S) return 0; } -int lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled'", nullptr); - return 0; - } - bool ret = cobj->getDebugBonesEnabled(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getDebugBonesEnabled",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::BlendFunc arg0; - - ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "sp.SkeletonRenderer:setBlendFunc"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc'", nullptr); - return 0; - } - cobj->setBlendFunc(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:setBlendFunc",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_spine_SkeletonRenderer_getTimeScale(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonRenderer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_getTimeScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_getTimeScale'", nullptr); - return 0; - } - double ret = cobj->getTimeScale(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:getTimeScale",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_getTimeScale'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_spine_SkeletonRenderer_createWithFile(lua_State* tolua_S) { int argc = 0; @@ -827,6 +1048,159 @@ int lua_cocos2dx_spine_SkeletonRenderer_createWithFile(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_spine_SkeletonRenderer_constructor(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonRenderer* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 1) { + spSkeletonData* arg0; + #pragma warning NO CONVERSION TO NATIVE FOR spSkeletonData* + ok = false; + + if (!ok) { break; } + cobj = new spine::SkeletonRenderer(arg0); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + spSkeletonData* arg0; + #pragma warning NO CONVERSION TO NATIVE FOR spSkeletonData* + ok = false; + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + cobj = new spine::SkeletonRenderer(arg0, arg1); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj = new spine::SkeletonRenderer(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + spAtlas* arg1; + #pragma warning NO CONVERSION TO NATIVE FOR spAtlas* + ok = false; + + if (!ok) { break; } + cobj = new spine::SkeletonRenderer(arg0, arg1); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + spAtlas* arg1; + #pragma warning NO CONVERSION TO NATIVE FOR spAtlas* + ok = false; + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + cobj = new spine::SkeletonRenderer(arg0, arg1, arg2); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + cobj = new spine::SkeletonRenderer(arg0, arg1); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + double arg2; + ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:SkeletonRenderer"); + + if (!ok) { break; } + cobj = new spine::SkeletonRenderer(arg0, arg1, arg2); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"sp.SkeletonRenderer"); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:SkeletonRenderer",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_spine_SkeletonRenderer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkeletonRenderer)"); @@ -839,21 +1213,25 @@ int lua_register_cocos2dx_spine_SkeletonRenderer(lua_State* tolua_S) tolua_cclass(tolua_S,"SkeletonRenderer","sp.SkeletonRenderer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"SkeletonRenderer"); + tolua_function(tolua_S,"new",lua_cocos2dx_spine_SkeletonRenderer_constructor); tolua_function(tolua_S,"setTimeScale",lua_cocos2dx_spine_SkeletonRenderer_setTimeScale); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB); - tolua_function(tolua_S,"setDebugSlotsEnabled",lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled); tolua_function(tolua_S,"getDebugSlotsEnabled",lua_cocos2dx_spine_SkeletonRenderer_getDebugSlotsEnabled); tolua_function(tolua_S,"setBonesToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setBonesToSetupPose); + tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_spine_SkeletonRenderer_isOpacityModifyRGB); + tolua_function(tolua_S,"initWithData",lua_cocos2dx_spine_SkeletonRenderer_initWithData); + tolua_function(tolua_S,"setDebugSlotsEnabled",lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled); tolua_function(tolua_S,"setSlotsToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose); - tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc); - tolua_function(tolua_S,"setSkin",lua_cocos2dx_spine_SkeletonRenderer_setSkin); - tolua_function(tolua_S,"setToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose); tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_spine_SkeletonRenderer_setOpacityModifyRGB); + tolua_function(tolua_S,"setToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose); + tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc); + tolua_function(tolua_S,"initialize",lua_cocos2dx_spine_SkeletonRenderer_initialize); tolua_function(tolua_S,"setDebugBonesEnabled",lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled); - tolua_function(tolua_S,"getSkeleton",lua_cocos2dx_spine_SkeletonRenderer_getSkeleton); tolua_function(tolua_S,"getDebugBonesEnabled",lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled); - tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc); tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_spine_SkeletonRenderer_getTimeScale); + tolua_function(tolua_S,"initWithFile",lua_cocos2dx_spine_SkeletonRenderer_initWithFile); + tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc); + tolua_function(tolua_S,"setSkin",lua_cocos2dx_spine_SkeletonRenderer_setSkin); + tolua_function(tolua_S,"getSkeleton",lua_cocos2dx_spine_SkeletonRenderer_getSkeleton); tolua_function(tolua_S,"createWithFile", lua_cocos2dx_spine_SkeletonRenderer_createWithFile); tolua_endmodule(tolua_S); std::string typeName = typeid(spine::SkeletonRenderer).name(); @@ -1366,6 +1744,53 @@ int lua_cocos2dx_spine_SkeletonAnimation_setEndListener(lua_State* tolua_S) return 0; } +int lua_cocos2dx_spine_SkeletonAnimation_initialize(lua_State* tolua_S) +{ + int argc = 0; + spine::SkeletonAnimation* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_initialize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonAnimation_initialize'", nullptr); + return 0; + } + cobj->initialize(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:initialize",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_initialize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_spine_SkeletonAnimation_clearTracks(lua_State* tolua_S) { int argc = 0; @@ -1495,6 +1920,7 @@ int lua_register_cocos2dx_spine_SkeletonAnimation(lua_State* tolua_S) tolua_function(tolua_S,"setEventListener",lua_cocos2dx_spine_SkeletonAnimation_setEventListener); tolua_function(tolua_S,"setMix",lua_cocos2dx_spine_SkeletonAnimation_setMix); tolua_function(tolua_S,"setEndListener",lua_cocos2dx_spine_SkeletonAnimation_setEndListener); + tolua_function(tolua_S,"initialize",lua_cocos2dx_spine_SkeletonAnimation_initialize); tolua_function(tolua_S,"clearTracks",lua_cocos2dx_spine_SkeletonAnimation_clearTracks); tolua_function(tolua_S,"clearTrack",lua_cocos2dx_spine_SkeletonAnimation_clearTrack); tolua_endmodule(tolua_S); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp index 318ec8e318..553ec82c5b 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp @@ -35,6 +35,11 @@ int register_all_cocos2dx_spine(lua_State* tolua_S); + + + + + diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp index 77d180dffd..1d2d200521 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp @@ -7507,43 +7507,42 @@ int lua_cocos2dx_studio_Bone_init(lua_State* tolua_S) int argc = 0; cocostudio::Bone* cobj = nullptr; bool ok = true; + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_init'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.Bone:init"); - if (!ok) { break; } - bool ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.Bone:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Bone_init'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 0) { - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:init",argc, 0); + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 @@ -8537,53 +8536,6 @@ int lua_register_cocos2dx_studio_Bone(lua_State* tolua_S) return 1; } -int lua_cocos2dx_studio_BatchNode_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::BatchNode* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.BatchNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::BatchNode*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_BatchNode_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BatchNode_init'", nullptr); - return 0; - } - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.BatchNode:init",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_BatchNode_init'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_BatchNode_create(lua_State* tolua_S) { int argc = 0; @@ -8630,7 +8582,6 @@ int lua_register_cocos2dx_studio_BatchNode(lua_State* tolua_S) tolua_cclass(tolua_S,"BatchNode","ccs.BatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"BatchNode"); - tolua_function(tolua_S,"init",lua_cocos2dx_studio_BatchNode_init); tolua_function(tolua_S,"create", lua_cocos2dx_studio_BatchNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::BatchNode).name(); @@ -11096,26 +11047,6 @@ int lua_cocos2dx_studio_Armature_init(lua_State* tolua_S) } #endif argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 1) { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.Armature:init"); - - if (!ok) { break; } - bool ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; do{ if (argc == 2) { std::string arg0; @@ -11132,7 +11063,19 @@ int lua_cocos2dx_studio_Armature_init(lua_State* tolua_S) } }while(0); ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:init",argc, 2); + do{ + if (argc == 1) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.Armature:init"); + + if (!ok) { break; } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Armature:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 @@ -11912,56 +11855,6 @@ int lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Skin_initWithFile(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Skin* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_initWithFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.Skin:initWithFile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Skin_initWithFile'", nullptr); - return 0; - } - bool ret = cobj->initWithFile(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:initWithFile",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_initWithFile'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_Skin_getDisplayName(lua_State* tolua_S) { int argc = 0; @@ -12056,56 +11949,6 @@ int lua_cocos2dx_studio_Skin_updateArmatureTransform(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Skin_initWithSpriteFrameName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Skin* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Skin",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Skin*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Skin_initWithSpriteFrameName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccs.Skin:initWithSpriteFrameName"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Skin_initWithSpriteFrameName'", nullptr); - return 0; - } - bool ret = cobj->initWithSpriteFrameName(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Skin:initWithSpriteFrameName",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Skin_initWithSpriteFrameName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_Skin_setBone(lua_State* tolua_S) { int argc = 0; @@ -12289,10 +12132,8 @@ int lua_register_cocos2dx_studio_Skin(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_studio_Skin_constructor); tolua_function(tolua_S,"getBone",lua_cocos2dx_studio_Skin_getBone); tolua_function(tolua_S,"getNodeToWorldTransformAR",lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR); - tolua_function(tolua_S,"initWithFile",lua_cocos2dx_studio_Skin_initWithFile); tolua_function(tolua_S,"getDisplayName",lua_cocos2dx_studio_Skin_getDisplayName); tolua_function(tolua_S,"updateArmatureTransform",lua_cocos2dx_studio_Skin_updateArmatureTransform); - tolua_function(tolua_S,"initWithSpriteFrameName",lua_cocos2dx_studio_Skin_initWithSpriteFrameName); tolua_function(tolua_S,"setBone",lua_cocos2dx_studio_Skin_setBone); tolua_function(tolua_S,"create", lua_cocos2dx_studio_Skin_create); tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_studio_Skin_createWithSpriteFrameName); @@ -20828,6 +20669,56 @@ int lua_cocos2dx_studio_ActionTimelineData_setActionTag(lua_State* tolua_S) return 0; } +int lua_cocos2dx_studio_ActionTimelineData_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineData* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineData",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineData*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineData_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ActionTimelineData:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTimelineData_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineData:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineData_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_studio_ActionTimelineData_getActionTag(lua_State* tolua_S) { int argc = 0; @@ -20911,6 +20802,43 @@ int lua_cocos2dx_studio_ActionTimelineData_create(lua_State* tolua_S) #endif return 0; } +int lua_cocos2dx_studio_ActionTimelineData_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineData* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTimelineData_constructor'", nullptr); + return 0; + } + cobj = new cocostudio::timeline::ActionTimelineData(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionTimelineData"); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineData:ActionTimelineData",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineData_constructor'.",&tolua_err); +#endif + + return 0; +} + static int lua_cocos2dx_studio_ActionTimelineData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionTimelineData)"); @@ -20923,7 +20851,9 @@ int lua_register_cocos2dx_studio_ActionTimelineData(lua_State* tolua_S) tolua_cclass(tolua_S,"ActionTimelineData","ccs.ActionTimelineData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionTimelineData"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionTimelineData_constructor); tolua_function(tolua_S,"setActionTag",lua_cocos2dx_studio_ActionTimelineData_setActionTag); + tolua_function(tolua_S,"init",lua_cocos2dx_studio_ActionTimelineData_init); tolua_function(tolua_S,"getActionTag",lua_cocos2dx_studio_ActionTimelineData_getActionTag); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ActionTimelineData_create); tolua_endmodule(tolua_S); @@ -22473,47 +22403,45 @@ int lua_cocos2dx_studio_ActionTimelineNode_init(lua_State* tolua_S) int argc = 0; cocostudio::timeline::ActionTimelineNode* cobj = nullptr; bool ok = true; + #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif + #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineNode",0,&tolua_err)) goto tolua_lerror; #endif + cobj = (cocostudio::timeline::ActionTimelineNode*)tolua_tousertype(tolua_S,1,0); + #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineNode_init'", nullptr); return 0; } #endif + argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + if (argc == 2) + { + cocos2d::Node* arg0; + cocostudio::timeline::ActionTimeline* arg1; - if (!ok) { break; } - cocostudio::timeline::ActionTimeline* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccs.ActionTimeline",&arg1); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - if (!ok) { break; } - bool ret = cobj->init(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; + ok &= luaval_to_object(tolua_S, 3, "ccs.ActionTimeline",&arg1); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTimelineNode_init'", nullptr); + return 0; } - }while(0); - ok = true; - do{ - if (argc == 0) { - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:init",argc, 0); + bool ret = cobj->init(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:init",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp index d0a21c7915..41c31388e8 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp @@ -513,7 +513,6 @@ int register_all_cocos2dx_studio(lua_State* tolua_S); - #endif // __cocos2dx_studio_h__ diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp index 27a9e3ea5a..f7be1967bb 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -2953,6 +2953,59 @@ int lua_cocos2dx_ui_Widget_isBright(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Widget* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_dispatchFocusEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_dispatchFocusEvent'", nullptr); + return 0; + } + cobj->dispatchFocusEvent(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:dispatchFocusEvent",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_dispatchFocusEvent'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) { int argc = 0; @@ -3292,6 +3345,59 @@ int lua_cocos2dx_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_Widget_onFocusChange(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Widget* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_onFocusChange'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + 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) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_onFocusChange'", nullptr); + return 0; + } + cobj->onFocusChange(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:onFocusChange",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_onFocusChange'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Widget_getTouchMovePosition(lua_State* tolua_S) { int argc = 0; @@ -3527,6 +3633,62 @@ int lua_cocos2dx_ui_Widget_getPositionPercent(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_Widget_propagateTouchEvent(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Widget* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_propagateTouchEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + cocos2d::ui::Widget::TouchEventType arg0; + cocos2d::ui::Widget* arg1; + cocos2d::Touch* arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:propagateTouchEvent"); + + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1); + + ok &= luaval_to_object(tolua_S, 4, "cc.Touch",&arg2); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_propagateTouchEvent'", nullptr); + return 0; + } + cobj->propagateTouchEvent(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:propagateTouchEvent",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_propagateTouchEvent'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Widget_isFlippedX(lua_State* tolua_S) { int argc = 0; @@ -3721,6 +3883,62 @@ int lua_cocos2dx_ui_Widget_setSizeType(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_Widget_interceptTouchEvent(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Widget* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_interceptTouchEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + cocos2d::ui::Widget::TouchEventType arg0; + cocos2d::ui::Widget* arg1; + cocos2d::Touch* arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:interceptTouchEvent"); + + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1); + + ok &= luaval_to_object(tolua_S, 4, "cc.Touch",&arg2); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_interceptTouchEvent'", nullptr); + return 0; + } + cobj->interceptTouchEvent(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:interceptTouchEvent",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_interceptTouchEvent'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Widget_setBright(lua_State* tolua_S) { int argc = 0; @@ -4031,6 +4249,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"setFocusEnabled",lua_cocos2dx_ui_Widget_setFocusEnabled); tolua_function(tolua_S,"getBottomBoundary",lua_cocos2dx_ui_Widget_getBottomBoundary); tolua_function(tolua_S,"isBright",lua_cocos2dx_ui_Widget_isBright); + tolua_function(tolua_S,"dispatchFocusEvent",lua_cocos2dx_ui_Widget_dispatchFocusEvent); tolua_function(tolua_S,"setUnifySizeEnabled",lua_cocos2dx_ui_Widget_setUnifySizeEnabled); tolua_function(tolua_S,"isPropagateTouchEvents",lua_cocos2dx_ui_Widget_isPropagateTouchEvents); tolua_function(tolua_S,"getCurrentFocusedWidget",lua_cocos2dx_ui_Widget_getCurrentFocusedWidget); @@ -4038,15 +4257,18 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"isLayoutComponentEnabled",lua_cocos2dx_ui_Widget_isLayoutComponentEnabled); tolua_function(tolua_S,"requestFocus",lua_cocos2dx_ui_Widget_requestFocus); tolua_function(tolua_S,"updateSizeAndPosition",lua_cocos2dx_ui_Widget_updateSizeAndPosition); + tolua_function(tolua_S,"onFocusChange",lua_cocos2dx_ui_Widget_onFocusChange); tolua_function(tolua_S,"getTouchMovePosition",lua_cocos2dx_ui_Widget_getTouchMovePosition); tolua_function(tolua_S,"getSizeType",lua_cocos2dx_ui_Widget_getSizeType); tolua_function(tolua_S,"getCallbackType",lua_cocos2dx_ui_Widget_getCallbackType); tolua_function(tolua_S,"getTouchEndPosition",lua_cocos2dx_ui_Widget_getTouchEndPosition); tolua_function(tolua_S,"getPositionPercent",lua_cocos2dx_ui_Widget_getPositionPercent); + tolua_function(tolua_S,"propagateTouchEvent",lua_cocos2dx_ui_Widget_propagateTouchEvent); tolua_function(tolua_S,"isFlippedX",lua_cocos2dx_ui_Widget_isFlippedX); tolua_function(tolua_S,"isFlippedY",lua_cocos2dx_ui_Widget_isFlippedY); tolua_function(tolua_S,"isClippingParentContainsPoint",lua_cocos2dx_ui_Widget_isClippingParentContainsPoint); tolua_function(tolua_S,"setSizeType",lua_cocos2dx_ui_Widget_setSizeType); + tolua_function(tolua_S,"interceptTouchEvent",lua_cocos2dx_ui_Widget_interceptTouchEvent); tolua_function(tolua_S,"setBright",lua_cocos2dx_ui_Widget_setBright); tolua_function(tolua_S,"setCallbackType",lua_cocos2dx_ui_Widget_setCallbackType); tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_ui_Widget_isSwallowTouches); @@ -5838,6 +6060,53 @@ int lua_register_cocos2dx_ui_Layout(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ui_Button_getNormalTextureSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Button* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Button_getNormalTextureSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getNormalTextureSize'", nullptr); + return 0; + } + cocos2d::Size ret = cobj->getNormalTextureSize(); + size_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:getNormalTextureSize",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Button_getNormalTextureSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Button_getTitleText(lua_State* tolua_S) { int argc = 0; @@ -6343,6 +6612,116 @@ int lua_cocos2dx_ui_Button_loadTextureDisabled(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_Button_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Button* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Button_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.Button:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + std::string arg0; + std::string arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.Button:init"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccui.Button:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 3) + { + std::string arg0; + std::string arg1; + std::string arg2; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.Button:init"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccui.Button:init"); + + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "ccui.Button:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 4) + { + std::string arg0; + std::string arg1; + std::string arg2; + cocos2d::ui::Widget::TextureResType arg3; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.Button:init"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccui.Button:init"); + + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "ccui.Button:init"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ccui.Button:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Button_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Button_setTitleText(lua_State* tolua_S) { int argc = 0; @@ -7341,6 +7720,7 @@ int lua_register_cocos2dx_ui_Button(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Button"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_Button_constructor); + tolua_function(tolua_S,"getNormalTextureSize",lua_cocos2dx_ui_Button_getNormalTextureSize); tolua_function(tolua_S,"getTitleText",lua_cocos2dx_ui_Button_getTitleText); tolua_function(tolua_S,"setTitleFontSize",lua_cocos2dx_ui_Button_setTitleFontSize); tolua_function(tolua_S,"setScale9Enabled",lua_cocos2dx_ui_Button_setScale9Enabled); @@ -7351,6 +7731,7 @@ int lua_register_cocos2dx_ui_Button(lua_State* tolua_S) tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_cocos2dx_ui_Button_setCapInsetsDisabledRenderer); tolua_function(tolua_S,"setCapInsets",lua_cocos2dx_ui_Button_setCapInsets); tolua_function(tolua_S,"loadTextureDisabled",lua_cocos2dx_ui_Button_loadTextureDisabled); + tolua_function(tolua_S,"init",lua_cocos2dx_ui_Button_init); tolua_function(tolua_S,"setTitleText",lua_cocos2dx_ui_Button_setTitleText); tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_cocos2dx_ui_Button_setCapInsetsNormalRenderer); tolua_function(tolua_S,"loadTexturePressed",lua_cocos2dx_ui_Button_loadTexturePressed); @@ -7727,6 +8108,97 @@ int lua_cocos2dx_ui_CheckBox_isSelected(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_CheckBox_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::CheckBox* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.CheckBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::CheckBox*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_CheckBox_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 5) + { + std::string arg0; + std::string arg1; + std::string arg2; + std::string arg3; + std::string arg4; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.CheckBox:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_CheckBox_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 6) + { + std::string arg0; + std::string arg1; + std::string arg2; + std::string arg3; + std::string arg4; + cocos2d::ui::Widget::TextureResType arg5; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 4,&arg2, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.CheckBox:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.CheckBox:init"); + + ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ccui.CheckBox:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_CheckBox_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.CheckBox:init",argc, 5); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_CheckBox_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_CheckBox_loadTextures(lua_State* tolua_S) { int argc = 0; @@ -8259,6 +8731,7 @@ int lua_register_cocos2dx_ui_CheckBox(lua_State* tolua_S) tolua_function(tolua_S,"addEventListener",lua_cocos2dx_ui_CheckBox_addEventListener); tolua_function(tolua_S,"loadTextureFrontCross",lua_cocos2dx_ui_CheckBox_loadTextureFrontCross); tolua_function(tolua_S,"isSelected",lua_cocos2dx_ui_CheckBox_isSelected); + tolua_function(tolua_S,"init",lua_cocos2dx_ui_CheckBox_init); tolua_function(tolua_S,"loadTextures",lua_cocos2dx_ui_CheckBox_loadTextures); tolua_function(tolua_S,"getZoomScale",lua_cocos2dx_ui_CheckBox_getZoomScale); tolua_function(tolua_S,"loadTextureBackGround",lua_cocos2dx_ui_CheckBox_loadTextureBackGround); @@ -8340,6 +8813,73 @@ int lua_cocos2dx_ui_ImageView_loadTexture(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_ImageView_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::ImageView* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_ImageView_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.ImageView:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 2) + { + std::string arg0; + cocos2d::ui::Widget::TextureResType arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.ImageView:init"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.ImageView:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ImageView:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_ImageView_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_ImageView_setScale9Enabled(lua_State* tolua_S) { int argc = 0; @@ -8730,6 +9270,7 @@ int lua_register_cocos2dx_ui_ImageView(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ImageView"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_ImageView_constructor); tolua_function(tolua_S,"loadTexture",lua_cocos2dx_ui_ImageView_loadTexture); + tolua_function(tolua_S,"init",lua_cocos2dx_ui_ImageView_init); tolua_function(tolua_S,"setScale9Enabled",lua_cocos2dx_ui_ImageView_setScale9Enabled); tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_ui_ImageView_setTextureRect); tolua_function(tolua_S,"setCapInsets",lua_cocos2dx_ui_ImageView_setCapInsets); @@ -9234,6 +9775,62 @@ int lua_cocos2dx_ui_Text_setString(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_Text_init(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::Text* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Text_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 3) + { + std::string arg0; + std::string arg1; + int arg2; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.Text:init"); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccui.Text:init"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.Text:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Text:init",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Text_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) { int argc = 0; @@ -10071,6 +10668,7 @@ int lua_register_cocos2dx_ui_Text(lua_State* tolua_S) tolua_function(tolua_S,"setFontName",lua_cocos2dx_ui_Text_setFontName); tolua_function(tolua_S,"setTouchScaleChangeEnabled",lua_cocos2dx_ui_Text_setTouchScaleChangeEnabled); tolua_function(tolua_S,"setString",lua_cocos2dx_ui_Text_setString); + tolua_function(tolua_S,"init",lua_cocos2dx_ui_Text_init); tolua_function(tolua_S,"isTouchScaleChangeEnabled",lua_cocos2dx_ui_Text_isTouchScaleChangeEnabled); tolua_function(tolua_S,"getFontName",lua_cocos2dx_ui_Text_getFontName); tolua_function(tolua_S,"setTextAreaSize",lua_cocos2dx_ui_Text_setTextAreaSize); @@ -19721,6 +20319,56 @@ int lua_register_cocos2dx_ui_RichText(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ui_HBox_initWithSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::HBox* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.HBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::HBox*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_HBox_initWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Size arg0; + + ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.HBox:initWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_HBox_initWithSize'", nullptr); + return 0; + } + bool ret = cobj->initWithSize(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.HBox:initWithSize",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_HBox_initWithSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_HBox_create(lua_State* tolua_S) { int argc = 0; @@ -19816,6 +20464,7 @@ int lua_register_cocos2dx_ui_HBox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"HBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_HBox_constructor); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_ui_HBox_initWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_ui_HBox_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ui::HBox).name(); @@ -19824,6 +20473,56 @@ int lua_register_cocos2dx_ui_HBox(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ui_VBox_initWithSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::VBox* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.VBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::VBox*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_VBox_initWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Size arg0; + + ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.VBox:initWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_VBox_initWithSize'", nullptr); + return 0; + } + bool ret = cobj->initWithSize(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.VBox:initWithSize",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_VBox_initWithSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_VBox_create(lua_State* tolua_S) { int argc = 0; @@ -19919,6 +20618,7 @@ int lua_register_cocos2dx_ui_VBox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"VBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_VBox_constructor); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_ui_VBox_initWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_ui_VBox_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ui::VBox).name(); @@ -19927,6 +20627,56 @@ int lua_register_cocos2dx_ui_VBox(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ui_RelativeBox_initWithSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RelativeBox* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccui.RelativeBox",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RelativeBox*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RelativeBox_initWithSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Size arg0; + + ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.RelativeBox:initWithSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RelativeBox_initWithSize'", nullptr); + return 0; + } + bool ret = cobj->initWithSize(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RelativeBox:initWithSize",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RelativeBox_initWithSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_RelativeBox_create(lua_State* tolua_S) { int argc = 0; @@ -20022,6 +20772,7 @@ int lua_register_cocos2dx_ui_RelativeBox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RelativeBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RelativeBox_constructor); + tolua_function(tolua_S,"initWithSize",lua_cocos2dx_ui_RelativeBox_initWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RelativeBox_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ui::RelativeBox).name(); @@ -20735,6 +21486,26 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) } #endif argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 3) { + cocos2d::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + + if (!ok) { break; } + cocos2d::Rect arg1; + ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:init"); + + if (!ok) { break; } + cocos2d::Rect arg2; + ok &= luaval_to_rect(tolua_S, 4, &arg2, "ccui.Scale9Sprite:init"); + + if (!ok) { break; } + bool ret = cobj->init(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; do{ if (argc == 4) { cocos2d::Sprite* arg0; @@ -20759,34 +21530,6 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) } }while(0); ok = true; - do{ - if (argc == 0) { - bool ret = cobj->init(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - - if (!ok) { break; } - cocos2d::Rect arg1; - ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:init"); - - if (!ok) { break; } - cocos2d::Rect arg2; - ok &= luaval_to_rect(tolua_S, 4, &arg2, "ccui.Scale9Sprite:init"); - - if (!ok) { break; } - bool ret = cobj->init(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; do{ if (argc == 6) { cocos2d::Sprite* arg0; diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp index 9745da9b52..7853c6d456 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp @@ -535,6 +535,18 @@ int register_all_cocos2dx_ui(lua_State* tolua_S); + + + + + + + + + + + +