From beb864d5c7d0ac6606f4db8dbaee175233e2c08c Mon Sep 17 00:00:00 2001 From: codetypes Date: Tue, 17 Sep 2024 23:22:51 +0800 Subject: [PATCH] implement enum as integer --- addons/cclua/box2d/library/b2/AABB.lua | 3 - addons/cclua/box2d/library/b2/Body.lua | 3 - addons/cclua/box2d/library/b2/BodyDef.lua | 3 - .../cclua/box2d/library/b2/BodyUserData.lua | 3 - addons/cclua/box2d/library/b2/BroadPhase.lua | 3 - addons/cclua/box2d/library/b2/Color.lua | 3 - addons/cclua/box2d/library/b2/Contact.lua | 3 - addons/cclua/box2d/library/b2/ContactEdge.lua | 3 - .../cclua/box2d/library/b2/ContactFeature.lua | 3 - addons/cclua/box2d/library/b2/ContactID.lua | 3 - .../cclua/box2d/library/b2/ContactImpulse.lua | 3 - .../cclua/box2d/library/b2/ContactManager.lua | 3 - addons/cclua/box2d/library/b2/Filter.lua | 3 - addons/cclua/box2d/library/b2/Fixture.lua | 3 - addons/cclua/box2d/library/b2/FixtureDef.lua | 3 - .../box2d/library/b2/FixtureUserData.lua | 3 - addons/cclua/box2d/library/b2/Joint.lua | 3 - addons/cclua/box2d/library/b2/JointDef.lua | 3 - addons/cclua/box2d/library/b2/JointEdge.lua | 3 - .../cclua/box2d/library/b2/JointUserData.lua | 3 - addons/cclua/box2d/library/b2/Manifold.lua | 3 - .../cclua/box2d/library/b2/ManifoldPoint.lua | 3 - addons/cclua/box2d/library/b2/MassData.lua | 3 - addons/cclua/box2d/library/b2/Profile.lua | 3 - .../cclua/box2d/library/b2/RayCastInput.lua | 3 - .../cclua/box2d/library/b2/RayCastOutput.lua | 3 - addons/cclua/box2d/library/b2/Rot.lua | 3 - addons/cclua/box2d/library/b2/Shape.lua | 3 - addons/cclua/box2d/library/b2/Transform.lua | 3 - addons/cclua/box2d/library/b2/Vec2.lua | 6 +- addons/cclua/box2d/library/b2/Vec2Array.lua | 3 - addons/cclua/box2d/library/b2/Vec3.lua | 6 +- addons/cclua/box2d/library/b2/World.lua | 3 - .../cclua/box2d/library/b2/WorldManifold.lua | 3 - .../library/b2/interface/ContactFilter.lua | 3 - .../library/b2/interface/ContactListener.lua | 3 - .../b2/interface/DestructionListener.lua | 3 - .../cclua/box2d/library/b2/interface/Draw.lua | 3 - .../library/b2/interface/QueryCallback.lua | 3 - .../library/b2/interface/RayCastCallback.lua | 3 - .../cclua/cclua/library/cclua/downloader.lua | 3 - .../cclua/cclua/library/cclua/filesystem.lua | 3 - .../cclua/cclua/library/cclua/microphone.lua | 3 - .../cclua/cclua/library/cclua/permission.lua | 3 - .../library/cclua/permission/android.lua | 3 - .../cclua/library/cclua/permission/status.lua | 3 - addons/cclua/cclua/library/cclua/photo.lua | 3 - .../cclua/cclua/library/cclua/preferences.lua | 3 - addons/cclua/cclua/library/cclua/runtime.lua | 3 - addons/cclua/cclua/library/cclua/timer.lua | 3 - addons/cclua/cclua/library/cclua/window.lua | 3 - .../library/cc/ActionTweenDelegate.lua | 3 - .../cocos2d/library/cc/AffineTransform.lua | 3 - .../library/cc/ApplicationProtocol.lua | 3 - .../cclua/cocos2d/library/cc/AudioEngine.lua | 3 - .../cclua/cocos2d/library/cc/AudioProfile.lua | 3 - addons/cclua/cocos2d/library/cc/BlendFunc.lua | 9 +- .../cocos2d/library/cc/BlendProtocol.lua | 3 - addons/cclua/cocos2d/library/cc/Bounds.lua | 3 - addons/cclua/cocos2d/library/cc/CSLoader.lua | 3 - addons/cclua/cocos2d/library/cc/Clonable.lua | 3 - .../cclua/cocos2d/library/cc/Controller.lua | 3 - .../library/cc/Controller/KeyStatus.lua | 3 - addons/cclua/cocos2d/library/cc/Device.lua | 3 - .../library/cc/Director/Projection.lua | 4 - addons/cclua/cocos2d/library/cc/FileUtils.lua | 3 - .../cocos2d/library/cc/GLContextAttrs.lua | 3 - .../cclua/cocos2d/library/cc/IMEDelegate.lua | 3 - .../cocos2d/library/cc/LabelProtocol.lua | 3 - addons/cclua/cocos2d/library/cc/Mat4.lua | 48 +- .../cocos2d/library/cc/MeshVertexAttrib.lua | 3 - .../cclua/cocos2d/library/cc/NTextureData.lua | 3 - .../cocos2d/library/cc/NavMeshAgentParam.lua | 3 - .../cocos2d/library/cc/OffMeshLinkData.lua | 3 - .../library/cc/PhysicsContactPostSolve.lua | 3 - .../library/cc/PhysicsContactPreSolve.lua | 3 - .../cclua/cocos2d/library/cc/PhysicsJoint.lua | 3 - .../cocos2d/library/cc/PhysicsMaterial.lua | 3 - .../cocos2d/library/cc/PhysicsRayCastInfo.lua | 3 - .../cclua/cocos2d/library/cc/PhysicsWorld.lua | 3 - .../cocos2d/library/cc/PipelineDescriptor.lua | 3 - .../cocos2d/library/cc/PlayableProtocol.lua | 3 - .../cclua/cocos2d/library/cc/Properties.lua | 3 - addons/cclua/cocos2d/library/cc/Quad3.lua | 3 - .../cclua/cocos2d/library/cc/Quaternion.lua | 15 +- addons/cclua/cocos2d/library/cc/Rect.lua | 4 +- addons/cclua/cocos2d/library/cc/Ref.lua | 3 - .../cocos2d/library/cc/RenderCommand.lua | 3 - addons/cclua/cocos2d/library/cc/Renderer.lua | 3 - .../cocos2d/library/cc/ResizableBuffer.lua | 3 - .../cclua/cocos2d/library/cc/ResourceData.lua | 3 - .../cclua/cocos2d/library/cc/SAXDelegator.lua | 3 - .../cclua/cocos2d/library/cc/ScissorRect.lua | 3 - addons/cclua/cocos2d/library/cc/Size.lua | 29 +- addons/cclua/cocos2d/library/cc/T2F_Quad.lua | 3 - addons/cclua/cocos2d/library/cc/TTFConfig.lua | 3 - addons/cclua/cocos2d/library/cc/Tex2F.lua | 3 - .../cocos2d/library/cc/TextFieldDelegate.lua | 3 - .../library/cc/Texture2D/PixelFormatInfo.lua | 3 - .../library/cc/TransitionEaseScene.lua | 3 - .../cclua/cocos2d/library/cc/UserDefault.lua | 3 - addons/cclua/cocos2d/library/cc/Vec2.lua | 59 +- addons/cclua/cocos2d/library/cc/Vec3.lua | 58 +- addons/cclua/cocos2d/library/cc/Vec4.lua | 59 +- addons/cclua/cocos2d/library/cc/Viewport.lua | 3 - addons/cclua/cocos2d/library/cc/WebSocket.lua | 3 - .../cocos2d/library/cc/WebSocket/Delegate.lua | 3 - .../cocos2d/library/cc/ccBezierConfig.lua | 3 - addons/cclua/cocos2d/library/cc/sImageTGA.lua | 3 - .../cocos2d/library/cc/types/TMXTileFlags.lua | 3 - .../cocos2d/library/cc/types/ValueMap.lua | 3 - .../cocos2d/library/cc/types/Vec2Array.lua | 3 - .../cocos2d/library/cc/types/VectorInt.lua | 3 - .../cocos2d/library/cc/types/VectorString.lua | 3 - addons/cclua/cocos2d/library/cc/ui/Margin.lua | 3 - .../cocos2d/library/ccb/AttributeBindInfo.lua | 3 - .../cocos2d/library/ccb/BlendDescriptor.lua | 3 - .../library/ccb/DepthStencilDescriptor.lua | 3 - .../cclua/cocos2d/library/ccb/DeviceInfo.lua | 3 - .../cocos2d/library/ccb/SamplerDescriptor.lua | 3 - .../cocos2d/library/ccb/StencilDescriptor.lua | 7 +- .../cocos2d/library/ccb/TextureDescriptor.lua | 3 - .../cclua/cocos2d/library/ccb/TextureInfo.lua | 3 - .../cclua/cocos2d/library/ccb/UniformInfo.lua | 3 - .../cocos2d/library/ccb/UniformLocation.lua | 7 +- .../cocos2d/library/ccb/VertexLayout.lua | 3 - .../library/ccb/VertexLayout/Attribute.lua | 3 - .../cclua/cocos2d/library/ccs/CocoLoader.lua | 3 - .../cocos2d/library/ccs/ColliderFilter.lua | 3 - .../cocos2d/library/ccs/DataReaderHelper.lua | 3 - .../cocos2d/library/ccs/DisplayFactory.lua | 3 - .../cocos2d/library/ccs/InputDelegate.lua | 3 - .../cclua/cocos2d/library/ccs/SceneReader.lua | 3 - .../library/ccs/SpriteFrameCacheHelper.lua | 3 - .../ccs/timeline/ActionTimelineCache.lua | 3 - .../library/ccs/timeline/AnimationInfo.lua | 3 - .../cocos2d/library/ccui/EditBoxDelegate.lua | 3 - addons/cclua/cocos2d/library/ccui/Helper.lua | 3 - .../library/ccui/LayoutParameterProtocol.lua | 3 - .../cocos2d/library/ccui/LayoutProtocol.lua | 3 - .../fairygui/library/fgui/DragDropManager.lua | 3 - .../fairygui/library/fgui/EaseManager.lua | 3 - .../fairygui/library/fgui/EventContext.lua | 3 - addons/cclua/fairygui/library/fgui/GPath.lua | 3 - addons/cclua/fairygui/library/fgui/GTween.lua | 3 - .../cclua/fairygui/library/fgui/GearBase.lua | 3 - .../fairygui/library/fgui/HtmlElement.lua | 3 - .../fairygui/library/fgui/HtmlObject.lua | 3 - .../library/fgui/HtmlParseOptions.lua | 3 - .../cclua/fairygui/library/fgui/IHitTest.lua | 3 - .../fairygui/library/fgui/InputEvent.lua | 3 - .../fairygui/library/fgui/InputProcessor.lua | 3 - addons/cclua/fairygui/library/fgui/Margin.lua | 3 - .../library/fgui/PixelHitTestData.lua | 3 - .../fairygui/library/fgui/RelationItem.lua | 3 - .../cclua/fairygui/library/fgui/Relations.lua | 3 - .../fairygui/library/fgui/TextFormat.lua | 3 - .../fairygui/library/fgui/TweenValue.lua | 3 - .../cclua/fairygui/library/fgui/UIConfig.lua | 3 - .../fairygui/library/fgui/UIEventType.lua | 3 - .../fairygui/library/fgui/UIObjectFactory.lua | 3 - .../fairygui/library/fgui/VectorTreeNode.lua | 3 - addons/cclua/olua/library/olua/bool.lua | 3 - addons/cclua/olua/library/olua/char.lua | 3 - addons/cclua/olua/library/olua/double.lua | 3 - addons/cclua/olua/library/olua/float.lua | 3 - addons/cclua/olua/library/olua/int.lua | 3 - addons/cclua/olua/library/olua/int16.lua | 3 - addons/cclua/olua/library/olua/int32.lua | 3 - addons/cclua/olua/library/olua/int64.lua | 3 - addons/cclua/olua/library/olua/int8.lua | 3 - addons/cclua/olua/library/olua/ldouble.lua | 3 - addons/cclua/olua/library/olua/llong.lua | 3 - addons/cclua/olua/library/olua/long.lua | 3 - addons/cclua/olua/library/olua/short.lua | 3 - addons/cclua/olua/library/olua/size_t.lua | 3 - addons/cclua/olua/library/olua/ssize_t.lua | 3 - addons/cclua/olua/library/olua/string.lua | 3 - addons/cclua/olua/library/olua/uchar.lua | 3 - addons/cclua/olua/library/olua/uint.lua | 3 - addons/cclua/olua/library/olua/uint16.lua | 3 - addons/cclua/olua/library/olua/uint32.lua | 3 - addons/cclua/olua/library/olua/uint64.lua | 3 - addons/cclua/olua/library/olua/uint8.lua | 3 - addons/cclua/olua/library/olua/ullong.lua | 3 - addons/cclua/olua/library/olua/ulong.lua | 3 - addons/cclua/olua/library/olua/ushort.lua | 3 - .../alipay/library/cclua/plugin/alipay.lua | 3 - .../apple/library/cclua/plugin/apple.lua | 3 - .../plugin/bugly/library/cclua/bugly.lua | 3 - .../huawei/library/cclua/plugin/huawei.lua | 3 - .../library/cclua/plugin/janalytics.lua | 3 - .../jauth/library/cclua/plugin/jauth.lua | 3 - .../jpush/library/cclua/plugin/jpush.lua | 3 - .../plugin/oppo/library/cclua/plugin/oppo.lua | 3 - .../library/cclua/plugin/talkingdata.lua | 3 - .../plugin/vivo/library/cclua/plugin/vivo.lua | 3 - .../wechat/library/cclua/plugin/wechat.lua | 3 - .../cclua/spine/library/spine/SpineObject.lua | 8 +- assets/src/cclua/ui/dataloader.lua | 2 +- frameworks/cclua/src/bugly/lua_bugly.cpp | 25 - .../cclua/src/lua-bindings/lua_box2d.cpp | 590 +-------- .../cclua/src/lua-bindings/lua_cclua.cpp | 219 +--- .../cclua/src/lua-bindings/lua_cocos2d.cpp | 818 ------------ .../cclua/src/lua-bindings/lua_cocos2d_3d.cpp | 86 -- .../src/lua-bindings/lua_cocos2d_action.cpp | 25 - .../src/lua-bindings/lua_cocos2d_backend.cpp | 337 +---- .../src/lua-bindings/lua_cocos2d_physics.cpp | 102 -- .../src/lua-bindings/lua_cocos2d_studio.cpp | 178 --- .../src/lua-bindings/lua_cocos2d_types.cpp | 1166 ++++++++++------- .../cclua/src/lua-bindings/lua_cocos2d_ui.cpp | 556 -------- .../src/lua-bindings/lua_dragonbones.cpp | 223 ---- .../cclua/src/lua-bindings/lua_fairygui.cpp | 568 +------- .../cclua/src/lua-bindings/lua_spine.cpp | 310 ++--- .../cclua/src/lua-bindings/lua_types.cpp | 475 ++----- frameworks/cclua/src/olua/olua.c | 168 +-- frameworks/cclua/src/olua/olua.h | 6 +- frameworks/cclua/src/olua/olua.hpp | 16 +- frameworks/plugins/alipay/lua_alipay.cpp | 13 - frameworks/plugins/apple/lua_apple.cpp | 13 - frameworks/plugins/huawei/lua_huawei.cpp | 13 - .../plugins/janalytics/lua_janalytics.cpp | 25 - frameworks/plugins/jauth/lua_jauth.cpp | 13 - frameworks/plugins/jpush/lua_jpush.cpp | 13 - frameworks/plugins/oppo/lua_oppo.cpp | 13 - .../plugins/talkingdata/lua_talkingdata.cpp | 13 - frameworks/plugins/vivo/lua_vivo.cpp | 13 - frameworks/plugins/wechat/lua_wechat.cpp | 37 - tools/lua-bindings/olua | 2 +- 229 files changed, 1294 insertions(+), 5618 deletions(-) mode change 100644 => 100755 frameworks/cclua/src/olua/olua.hpp diff --git a/addons/cclua/box2d/library/b2/AABB.lua b/addons/cclua/box2d/library/b2/AABB.lua index f172ac11..f171b62b 100644 --- a/addons/cclua/box2d/library/b2/AABB.lua +++ b/addons/cclua/box2d/library/b2/AABB.lua @@ -14,9 +14,6 @@ local AABB = {} ---@return any function AABB:__gc() end ----@return any -function AABB:__olua_move() end - ---Combine an AABB into this one. ---@param aabb b2.AABB --- diff --git a/addons/cclua/box2d/library/b2/Body.lua b/addons/cclua/box2d/library/b2/Body.lua index 0fb1bc4d..1e0ae6b0 100644 --- a/addons/cclua/box2d/library/b2/Body.lua +++ b/addons/cclua/box2d/library/b2/Body.lua @@ -29,9 +29,6 @@ ---@field worldCenter b2.Vec2 Get the world position of the center of mass. local Body = {} ----@return any -function Body:__olua_move() end - ---Apply an angular impulse. ---@param impulse number # the angular impulse in units of kg*m*m/s ---@param wake boolean # also wake up the body diff --git a/addons/cclua/box2d/library/b2/BodyDef.lua b/addons/cclua/box2d/library/b2/BodyDef.lua index dbaac0c6..19b6f5df 100644 --- a/addons/cclua/box2d/library/b2/BodyDef.lua +++ b/addons/cclua/box2d/library/b2/BodyDef.lua @@ -23,9 +23,6 @@ local BodyDef = {} ---@return any function BodyDef:__gc() end ----@return any -function BodyDef:__olua_move() end - ---This constructor sets the body definition default values. ---@return b2.BodyDef function BodyDef.new() end diff --git a/addons/cclua/box2d/library/b2/BodyUserData.lua b/addons/cclua/box2d/library/b2/BodyUserData.lua index f0ae9913..47bd1bbb 100644 --- a/addons/cclua/box2d/library/b2/BodyUserData.lua +++ b/addons/cclua/box2d/library/b2/BodyUserData.lua @@ -9,9 +9,6 @@ local BodyUserData = {} ---@return any function BodyUserData:__gc() end ----@return any -function BodyUserData:__olua_move() end - ---@return b2.BodyUserData function BodyUserData.new() end diff --git a/addons/cclua/box2d/library/b2/BroadPhase.lua b/addons/cclua/box2d/library/b2/BroadPhase.lua index 577bc358..99cfe4be 100644 --- a/addons/cclua/box2d/library/b2/BroadPhase.lua +++ b/addons/cclua/box2d/library/b2/BroadPhase.lua @@ -14,9 +14,6 @@ local BroadPhase = {} ---@return any function BroadPhase:__gc() end ----@return any -function BroadPhase:__olua_move() end - ---Create a proxy with an initial AABB. Pairs are not reported until ---UpdatePairs is called. ---@param aabb b2.AABB diff --git a/addons/cclua/box2d/library/b2/Color.lua b/addons/cclua/box2d/library/b2/Color.lua index 1c04ecf4..318bc72e 100644 --- a/addons/cclua/box2d/library/b2/Color.lua +++ b/addons/cclua/box2d/library/b2/Color.lua @@ -12,9 +12,6 @@ local Color = {} ---@return any function Color:__gc() end ----@return any -function Color:__olua_move() end - ---@return b2.Color ---@overload fun(rIn: number, gIn: number, bIn: number, aIn: number): b2.Color ---@overload fun(rIn: number, gIn: number, bIn: number): b2.Color diff --git a/addons/cclua/box2d/library/b2/Contact.lua b/addons/cclua/box2d/library/b2/Contact.lua index 79a3fd7a..54d87f2b 100644 --- a/addons/cclua/box2d/library/b2/Contact.lua +++ b/addons/cclua/box2d/library/b2/Contact.lua @@ -19,9 +19,6 @@ ---@field touching boolean Is this contact touching? local Contact = {} ----@return any -function Contact:__olua_move() end - ---Evaluate this contact with your own manifold and transforms. ---@param manifold b2.Manifold ---@param xfA b2.Transform diff --git a/addons/cclua/box2d/library/b2/ContactEdge.lua b/addons/cclua/box2d/library/b2/ContactEdge.lua index bc756183..c24e2fa3 100644 --- a/addons/cclua/box2d/library/b2/ContactEdge.lua +++ b/addons/cclua/box2d/library/b2/ContactEdge.lua @@ -16,7 +16,4 @@ local ContactEdge = {} ---@return any function ContactEdge:__gc() end ----@return any -function ContactEdge:__olua_move() end - return ContactEdge \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/ContactFeature.lua b/addons/cclua/box2d/library/b2/ContactFeature.lua index 9c73fab0..87b88ff2 100644 --- a/addons/cclua/box2d/library/b2/ContactFeature.lua +++ b/addons/cclua/box2d/library/b2/ContactFeature.lua @@ -13,7 +13,4 @@ local ContactFeature = {} ---@return any function ContactFeature:__gc() end ----@return any -function ContactFeature:__olua_move() end - return ContactFeature \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/ContactID.lua b/addons/cclua/box2d/library/b2/ContactID.lua index 6d8133ca..09210dd5 100644 --- a/addons/cclua/box2d/library/b2/ContactID.lua +++ b/addons/cclua/box2d/library/b2/ContactID.lua @@ -10,7 +10,4 @@ local ContactID = {} ---@return any function ContactID:__gc() end ----@return any -function ContactID:__olua_move() end - return ContactID \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/ContactImpulse.lua b/addons/cclua/box2d/library/b2/ContactImpulse.lua index dda0c22a..ec33a94b 100644 --- a/addons/cclua/box2d/library/b2/ContactImpulse.lua +++ b/addons/cclua/box2d/library/b2/ContactImpulse.lua @@ -11,7 +11,4 @@ local ContactImpulse = {} ---@return any function ContactImpulse:__gc() end ----@return any -function ContactImpulse:__olua_move() end - return ContactImpulse \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/ContactManager.lua b/addons/cclua/box2d/library/b2/ContactManager.lua index e3d487a9..31abf95b 100644 --- a/addons/cclua/box2d/library/b2/ContactManager.lua +++ b/addons/cclua/box2d/library/b2/ContactManager.lua @@ -8,9 +8,6 @@ local ContactManager = {} ---@return any function ContactManager:__gc() end ----@return any -function ContactManager:__olua_move() end - ---@param proxyUserDataA any ---@param proxyUserDataB any function ContactManager:addPair(proxyUserDataA, proxyUserDataB) end diff --git a/addons/cclua/box2d/library/b2/Filter.lua b/addons/cclua/box2d/library/b2/Filter.lua index 887d223b..94a93a16 100644 --- a/addons/cclua/box2d/library/b2/Filter.lua +++ b/addons/cclua/box2d/library/b2/Filter.lua @@ -11,9 +11,6 @@ local Filter = {} ---@return any function Filter:__gc() end ----@return any -function Filter:__olua_move() end - ---@return b2.Filter function Filter.new() end diff --git a/addons/cclua/box2d/library/b2/Fixture.lua b/addons/cclua/box2d/library/b2/Fixture.lua index 7b4f2d30..35f0d8db 100644 --- a/addons/cclua/box2d/library/b2/Fixture.lua +++ b/addons/cclua/box2d/library/b2/Fixture.lua @@ -23,9 +23,6 @@ local Fixture = {} ---@return any function Fixture:__gc() end ----@return any -function Fixture:__olua_move() end - ---Dump this fixture to the log file. ---@param bodyIndex integer function Fixture:dump(bodyIndex) end diff --git a/addons/cclua/box2d/library/b2/FixtureDef.lua b/addons/cclua/box2d/library/b2/FixtureDef.lua index 0502d70c..e569e2da 100644 --- a/addons/cclua/box2d/library/b2/FixtureDef.lua +++ b/addons/cclua/box2d/library/b2/FixtureDef.lua @@ -17,9 +17,6 @@ local FixtureDef = {} ---@return any function FixtureDef:__gc() end ----@return any -function FixtureDef:__olua_move() end - ---The constructor sets the default fixture definition values. ---@return b2.FixtureDef function FixtureDef.new() end diff --git a/addons/cclua/box2d/library/b2/FixtureUserData.lua b/addons/cclua/box2d/library/b2/FixtureUserData.lua index 2d081194..da8a039d 100644 --- a/addons/cclua/box2d/library/b2/FixtureUserData.lua +++ b/addons/cclua/box2d/library/b2/FixtureUserData.lua @@ -9,9 +9,6 @@ local FixtureUserData = {} ---@return any function FixtureUserData:__gc() end ----@return any -function FixtureUserData:__olua_move() end - ---@return b2.FixtureUserData function FixtureUserData.new() end diff --git a/addons/cclua/box2d/library/b2/Joint.lua b/addons/cclua/box2d/library/b2/Joint.lua index 4d530108..88cfe466 100644 --- a/addons/cclua/box2d/library/b2/Joint.lua +++ b/addons/cclua/box2d/library/b2/Joint.lua @@ -15,9 +15,6 @@ ---@field userData b2.JointUserData Get the user data pointer. local Joint = {} ----@return any -function Joint:__olua_move() end - ---Debug draw this joint ---@param draw b2.interface.Draw function Joint:draw(draw) end diff --git a/addons/cclua/box2d/library/b2/JointDef.lua b/addons/cclua/box2d/library/b2/JointDef.lua index 0cd7c1ab..fef3f02e 100644 --- a/addons/cclua/box2d/library/b2/JointDef.lua +++ b/addons/cclua/box2d/library/b2/JointDef.lua @@ -13,9 +13,6 @@ local JointDef = {} ---@return any function JointDef:__gc() end ----@return any -function JointDef:__olua_move() end - ---@return b2.JointDef function JointDef.new() end diff --git a/addons/cclua/box2d/library/b2/JointEdge.lua b/addons/cclua/box2d/library/b2/JointEdge.lua index 2ac016d1..8c0838b8 100644 --- a/addons/cclua/box2d/library/b2/JointEdge.lua +++ b/addons/cclua/box2d/library/b2/JointEdge.lua @@ -16,7 +16,4 @@ local JointEdge = {} ---@return any function JointEdge:__gc() end ----@return any -function JointEdge:__olua_move() end - return JointEdge \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/JointUserData.lua b/addons/cclua/box2d/library/b2/JointUserData.lua index d55868f8..94ddaae9 100644 --- a/addons/cclua/box2d/library/b2/JointUserData.lua +++ b/addons/cclua/box2d/library/b2/JointUserData.lua @@ -9,9 +9,6 @@ local JointUserData = {} ---@return any function JointUserData:__gc() end ----@return any -function JointUserData:__olua_move() end - ---@return b2.JointUserData function JointUserData.new() end diff --git a/addons/cclua/box2d/library/b2/Manifold.lua b/addons/cclua/box2d/library/b2/Manifold.lua index c2ae7420..0dc46666 100644 --- a/addons/cclua/box2d/library/b2/Manifold.lua +++ b/addons/cclua/box2d/library/b2/Manifold.lua @@ -27,7 +27,4 @@ local Manifold = {} ---@return any function Manifold:__gc() end ----@return any -function Manifold:__olua_move() end - return Manifold \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/ManifoldPoint.lua b/addons/cclua/box2d/library/b2/ManifoldPoint.lua index 43d3333c..147c0a24 100644 --- a/addons/cclua/box2d/library/b2/ManifoldPoint.lua +++ b/addons/cclua/box2d/library/b2/ManifoldPoint.lua @@ -21,7 +21,4 @@ local ManifoldPoint = {} ---@return any function ManifoldPoint:__gc() end ----@return any -function ManifoldPoint:__olua_move() end - return ManifoldPoint \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/MassData.lua b/addons/cclua/box2d/library/b2/MassData.lua index b8f0e9ee..301c5eb6 100644 --- a/addons/cclua/box2d/library/b2/MassData.lua +++ b/addons/cclua/box2d/library/b2/MassData.lua @@ -11,7 +11,4 @@ local MassData = {} ---@return any function MassData:__gc() end ----@return any -function MassData:__olua_move() end - return MassData \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/Profile.lua b/addons/cclua/box2d/library/b2/Profile.lua index 70d5a14f..d387763f 100644 --- a/addons/cclua/box2d/library/b2/Profile.lua +++ b/addons/cclua/box2d/library/b2/Profile.lua @@ -16,7 +16,4 @@ local Profile = {} ---@return any function Profile:__gc() end ----@return any -function Profile:__olua_move() end - return Profile \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/RayCastInput.lua b/addons/cclua/box2d/library/b2/RayCastInput.lua index b936efc7..92fc94c4 100644 --- a/addons/cclua/box2d/library/b2/RayCastInput.lua +++ b/addons/cclua/box2d/library/b2/RayCastInput.lua @@ -11,7 +11,4 @@ local RayCastInput = {} ---@return any function RayCastInput:__gc() end ----@return any -function RayCastInput:__olua_move() end - return RayCastInput \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/RayCastOutput.lua b/addons/cclua/box2d/library/b2/RayCastOutput.lua index 9d7c8cb9..1271933f 100644 --- a/addons/cclua/box2d/library/b2/RayCastOutput.lua +++ b/addons/cclua/box2d/library/b2/RayCastOutput.lua @@ -11,7 +11,4 @@ local RayCastOutput = {} ---@return any function RayCastOutput:__gc() end ----@return any -function RayCastOutput:__olua_move() end - return RayCastOutput \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/Rot.lua b/addons/cclua/box2d/library/b2/Rot.lua index 3e63e5a4..201cc5d9 100644 --- a/addons/cclua/box2d/library/b2/Rot.lua +++ b/addons/cclua/box2d/library/b2/Rot.lua @@ -13,9 +13,6 @@ local Rot = {} ---@return any function Rot:__gc() end ----@return any -function Rot:__olua_move() end - ---Get the angle in radians ---@return number function Rot:getAngle() end diff --git a/addons/cclua/box2d/library/b2/Shape.lua b/addons/cclua/box2d/library/b2/Shape.lua index 33b18822..80643ad4 100644 --- a/addons/cclua/box2d/library/b2/Shape.lua +++ b/addons/cclua/box2d/library/b2/Shape.lua @@ -12,9 +12,6 @@ local Shape = {} ---@return any function Shape:__gc() end ----@return any -function Shape:__olua_move() end - ---Given a transform, compute the associated axis aligned bounding box for a child shape. ---@param aabb b2.AABB # returns the axis aligned box. ---@param xf b2.Transform # the world transform of the shape. diff --git a/addons/cclua/box2d/library/b2/Transform.lua b/addons/cclua/box2d/library/b2/Transform.lua index 861c566f..460738ad 100644 --- a/addons/cclua/box2d/library/b2/Transform.lua +++ b/addons/cclua/box2d/library/b2/Transform.lua @@ -11,9 +11,6 @@ local Transform = {} ---@return any function Transform:__gc() end ----@return any -function Transform:__olua_move() end - ---The default constructor does nothing. ---@return b2.Transform --- diff --git a/addons/cclua/box2d/library/b2/Vec2.lua b/addons/cclua/box2d/library/b2/Vec2.lua index c64139d8..d8218a4f 100644 --- a/addons/cclua/box2d/library/b2/Vec2.lua +++ b/addons/cclua/box2d/library/b2/Vec2.lua @@ -6,13 +6,15 @@ ---@field valid boolean Does this vector contain finite coordinates? ---@field x number ---@field y number +---@operator unm:b2.Vec2 local Vec2 = {} ---@return any function Vec2:__gc() end ----@return any -function Vec2:__olua_move() end +---Negate this vector. +---@return b2.Vec2 +function Vec2:__unm() end ---Does this vector contain finite coordinates? ---@return boolean diff --git a/addons/cclua/box2d/library/b2/Vec2Array.lua b/addons/cclua/box2d/library/b2/Vec2Array.lua index a7ca462f..2c90ee3e 100644 --- a/addons/cclua/box2d/library/b2/Vec2Array.lua +++ b/addons/cclua/box2d/library/b2/Vec2Array.lua @@ -19,9 +19,6 @@ function Vec2Array:__index(idx) end ---@param v b2.Vec2 function Vec2Array:__newindex(idx, v) end ----@return any -function Vec2Array:__olua_move() end - ---@param len integer ---@return b2.Vec2Array ---@overload fun(): b2.Vec2Array diff --git a/addons/cclua/box2d/library/b2/Vec3.lua b/addons/cclua/box2d/library/b2/Vec3.lua index a4e1f965..de47b4a5 100644 --- a/addons/cclua/box2d/library/b2/Vec3.lua +++ b/addons/cclua/box2d/library/b2/Vec3.lua @@ -6,13 +6,15 @@ ---@field x number ---@field y number ---@field z number +---@operator unm:b2.Vec3 local Vec3 = {} ---@return any function Vec3:__gc() end ----@return any -function Vec3:__olua_move() end +---Negate this vector. +---@return b2.Vec3 +function Vec3:__unm() end ---Default constructor does nothing (for performance). ---@return b2.Vec3 diff --git a/addons/cclua/box2d/library/b2/World.lua b/addons/cclua/box2d/library/b2/World.lua index b820467e..99917fbf 100644 --- a/addons/cclua/box2d/library/b2/World.lua +++ b/addons/cclua/box2d/library/b2/World.lua @@ -29,9 +29,6 @@ local World = {} ---@return any function World:__gc() end ----@return any -function World:__olua_move() end - ---Manually clear the force buffer on all bodies. By default, forces are cleared automatically ---after each call to Step. The default behavior is modified by calling SetAutoClearForces. ---The purpose of this function is to support sub-stepping. Sub-stepping is often used to maintain diff --git a/addons/cclua/box2d/library/b2/WorldManifold.lua b/addons/cclua/box2d/library/b2/WorldManifold.lua index 3893f862..783fcedf 100644 --- a/addons/cclua/box2d/library/b2/WorldManifold.lua +++ b/addons/cclua/box2d/library/b2/WorldManifold.lua @@ -9,9 +9,6 @@ local WorldManifold = {} ---@return any function WorldManifold:__gc() end ----@return any -function WorldManifold:__olua_move() end - ---Evaluate the manifold with supplied transforms. This assumes ---modest motion from the original state. This does not change the ---point count, impulses, etc. The radii must come from the shapes diff --git a/addons/cclua/box2d/library/b2/interface/ContactFilter.lua b/addons/cclua/box2d/library/b2/interface/ContactFilter.lua index 21f54ff8..d4022497 100644 --- a/addons/cclua/box2d/library/b2/interface/ContactFilter.lua +++ b/addons/cclua/box2d/library/b2/interface/ContactFilter.lua @@ -9,7 +9,4 @@ local ContactFilter = {} ---@return any function ContactFilter:__gc() end ----@return any -function ContactFilter:__olua_move() end - return ContactFilter \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/interface/ContactListener.lua b/addons/cclua/box2d/library/b2/interface/ContactListener.lua index ede93bdf..b1781eaa 100644 --- a/addons/cclua/box2d/library/b2/interface/ContactListener.lua +++ b/addons/cclua/box2d/library/b2/interface/ContactListener.lua @@ -16,7 +16,4 @@ local ContactListener = {} ---@return any function ContactListener:__gc() end ----@return any -function ContactListener:__olua_move() end - return ContactListener \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/interface/DestructionListener.lua b/addons/cclua/box2d/library/b2/interface/DestructionListener.lua index c04fa527..40c17353 100644 --- a/addons/cclua/box2d/library/b2/interface/DestructionListener.lua +++ b/addons/cclua/box2d/library/b2/interface/DestructionListener.lua @@ -10,7 +10,4 @@ local DestructionListener = {} ---@return any function DestructionListener:__gc() end ----@return any -function DestructionListener:__olua_move() end - return DestructionListener \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/interface/Draw.lua b/addons/cclua/box2d/library/b2/interface/Draw.lua index d3dc4118..0f8b85f9 100644 --- a/addons/cclua/box2d/library/b2/interface/Draw.lua +++ b/addons/cclua/box2d/library/b2/interface/Draw.lua @@ -9,7 +9,4 @@ local Draw = {} ---@return any function Draw:__gc() end ----@return any -function Draw:__olua_move() end - return Draw \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/interface/QueryCallback.lua b/addons/cclua/box2d/library/b2/interface/QueryCallback.lua index 0153a2e2..8f131082 100644 --- a/addons/cclua/box2d/library/b2/interface/QueryCallback.lua +++ b/addons/cclua/box2d/library/b2/interface/QueryCallback.lua @@ -9,7 +9,4 @@ local QueryCallback = {} ---@return any function QueryCallback:__gc() end ----@return any -function QueryCallback:__olua_move() end - return QueryCallback \ No newline at end of file diff --git a/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua b/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua index 7a863346..68732240 100644 --- a/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua +++ b/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua @@ -9,7 +9,4 @@ local RayCastCallback = {} ---@return any function RayCastCallback:__gc() end ----@return any -function RayCastCallback:__olua_move() end - return RayCastCallback \ No newline at end of file diff --git a/addons/cclua/cclua/library/cclua/downloader.lua b/addons/cclua/cclua/library/cclua/downloader.lua index 62f9477b..4138fe01 100644 --- a/addons/cclua/cclua/library/cclua/downloader.lua +++ b/addons/cclua/cclua/library/cclua/downloader.lua @@ -8,9 +8,6 @@ local downloader = {} ---@return any function downloader:__gc() end ----@return any -function downloader:__olua_move() end - function downloader.end_() end function downloader.init() end diff --git a/addons/cclua/cclua/library/cclua/filesystem.lua b/addons/cclua/cclua/library/cclua/filesystem.lua index 0472b8e0..85b89a7a 100644 --- a/addons/cclua/cclua/library/cclua/filesystem.lua +++ b/addons/cclua/cclua/library/cclua/filesystem.lua @@ -14,9 +14,6 @@ local filesystem = {} ---@return any function filesystem:__gc() end ----@return any -function filesystem:__olua_move() end - ---@param path string ---@param front boolean ---@overload fun(path: string) diff --git a/addons/cclua/cclua/library/cclua/microphone.lua b/addons/cclua/cclua/library/cclua/microphone.lua index de9e4abf..abba8a57 100644 --- a/addons/cclua/cclua/library/cclua/microphone.lua +++ b/addons/cclua/cclua/library/cclua/microphone.lua @@ -9,9 +9,6 @@ local microphone = {} ---@return any function microphone:__gc() end ----@return any -function microphone:__olua_move() end - ---@param event string ---@param data any function microphone.dispatch(event, data) end diff --git a/addons/cclua/cclua/library/cclua/permission.lua b/addons/cclua/cclua/library/cclua/permission.lua index 8cd1f893..51af8798 100644 --- a/addons/cclua/cclua/library/cclua/permission.lua +++ b/addons/cclua/cclua/library/cclua/permission.lua @@ -21,7 +21,4 @@ local permission = {} ---@return any function permission:__gc() end ----@return any -function permission:__olua_move() end - return permission \ No newline at end of file diff --git a/addons/cclua/cclua/library/cclua/permission/android.lua b/addons/cclua/cclua/library/cclua/permission/android.lua index d16cefa7..150c4f74 100644 --- a/addons/cclua/cclua/library/cclua/permission/android.lua +++ b/addons/cclua/cclua/library/cclua/permission/android.lua @@ -159,7 +159,4 @@ local android = {} ---@return any function android:__gc() end ----@return any -function android:__olua_move() end - return android \ No newline at end of file diff --git a/addons/cclua/cclua/library/cclua/permission/status.lua b/addons/cclua/cclua/library/cclua/permission/status.lua index 79173f23..9b7c2b7a 100644 --- a/addons/cclua/cclua/library/cclua/permission/status.lua +++ b/addons/cclua/cclua/library/cclua/permission/status.lua @@ -16,7 +16,4 @@ local status = {} ---@return any function status:__gc() end ----@return any -function status:__olua_move() end - return status \ No newline at end of file diff --git a/addons/cclua/cclua/library/cclua/photo.lua b/addons/cclua/cclua/library/cclua/photo.lua index 73e78fe5..b1ab5894 100644 --- a/addons/cclua/cclua/library/cclua/photo.lua +++ b/addons/cclua/cclua/library/cclua/photo.lua @@ -8,9 +8,6 @@ local photo = {} ---@return any function photo:__gc() end ----@return any -function photo:__olua_move() end - ---@param event string ---@param data any function photo.dispatch(event, data) end diff --git a/addons/cclua/cclua/library/cclua/preferences.lua b/addons/cclua/cclua/library/cclua/preferences.lua index 10b24630..761fba35 100644 --- a/addons/cclua/cclua/library/cclua/preferences.lua +++ b/addons/cclua/cclua/library/cclua/preferences.lua @@ -8,9 +8,6 @@ local preferences = {} ---@return any function preferences:__gc() end ----@return any -function preferences:__olua_move() end - ---@param key string function preferences.deleteKey(key) end diff --git a/addons/cclua/cclua/library/cclua/runtime.lua b/addons/cclua/cclua/library/cclua/runtime.lua index 24df40e5..9cd21caf 100644 --- a/addons/cclua/cclua/library/cclua/runtime.lua +++ b/addons/cclua/cclua/library/cclua/runtime.lua @@ -39,9 +39,6 @@ local runtime = {} ---@return any function runtime:__gc() end ----@return any -function runtime:__olua_move() end - ---@param title string ---@param message string ---@param ok string diff --git a/addons/cclua/cclua/library/cclua/timer.lua b/addons/cclua/cclua/library/cclua/timer.lua index 7b453dff..1d850882 100644 --- a/addons/cclua/cclua/library/cclua/timer.lua +++ b/addons/cclua/cclua/library/cclua/timer.lua @@ -8,9 +8,6 @@ local timer = {} ---@return any function timer:__gc() end ----@return any -function timer:__olua_move() end - ---@return string function timer.createTag() end diff --git a/addons/cclua/cclua/library/cclua/window.lua b/addons/cclua/cclua/library/cclua/window.lua index 39161357..1ddb0b1f 100644 --- a/addons/cclua/cclua/library/cclua/window.lua +++ b/addons/cclua/cclua/library/cclua/window.lua @@ -12,9 +12,6 @@ local window = {} ---@return any function window:__gc() end ----@return any -function window:__olua_move() end - ---@param position cc.Vec2 ---@return cc.Vec2 ---@overload fun(position: cc.Vec2): cc.Vec2 diff --git a/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua b/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua index d723b0d7..029864a9 100644 --- a/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua @@ -13,9 +13,6 @@ local ActionTweenDelegate = {} ---@return any function ActionTweenDelegate:__gc() end ----@return any -function ActionTweenDelegate:__olua_move() end - ---The callback function when ActionTween is running. ---@param value number # The new value of the specified key. ---@param key string # The key of property which should be updated. diff --git a/addons/cclua/cocos2d/library/cc/AffineTransform.lua b/addons/cclua/cocos2d/library/cc/AffineTransform.lua index ca3fe24c..66fb3d1c 100644 --- a/addons/cclua/cocos2d/library/cc/AffineTransform.lua +++ b/addons/cclua/cocos2d/library/cc/AffineTransform.lua @@ -24,7 +24,4 @@ local AffineTransform = {} ---@return any function AffineTransform:__gc() end ----@return any -function AffineTransform:__olua_move() end - return AffineTransform \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua b/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua index 49b388e3..eafc6285 100644 --- a/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua @@ -13,9 +13,6 @@ local ApplicationProtocol = {} ---@return any function ApplicationProtocol:__gc() end ----@return any -function ApplicationProtocol:__olua_move() end - ---This function will be called when the application enters background. ---\js NA ---\lua NA diff --git a/addons/cclua/cocos2d/library/cc/AudioEngine.lua b/addons/cclua/cocos2d/library/cc/AudioEngine.lua index 6b71b86d..3bfb4fb5 100644 --- a/addons/cclua/cocos2d/library/cc/AudioEngine.lua +++ b/addons/cclua/cocos2d/library/cc/AudioEngine.lua @@ -19,9 +19,6 @@ local AudioEngine = {} ---@return any function AudioEngine:__gc() end ----@return any -function AudioEngine:__olua_move() end - ---Release objects relating to AudioEngine. --- ---\warning It must be called before the application exit. diff --git a/addons/cclua/cocos2d/library/cc/AudioProfile.lua b/addons/cclua/cocos2d/library/cc/AudioProfile.lua index 096b086c..23bc6b39 100644 --- a/addons/cclua/cocos2d/library/cc/AudioProfile.lua +++ b/addons/cclua/cocos2d/library/cc/AudioProfile.lua @@ -14,9 +14,6 @@ local AudioProfile = {} ---@return any function AudioProfile:__gc() end ----@return any -function AudioProfile:__olua_move() end - ---Default constructor --- ---\lua new diff --git a/addons/cclua/cocos2d/library/cc/BlendFunc.lua b/addons/cclua/cocos2d/library/cc/BlendFunc.lua index 92a9224e..0b777e19 100644 --- a/addons/cclua/cocos2d/library/cc/BlendFunc.lua +++ b/addons/cclua/cocos2d/library/cc/BlendFunc.lua @@ -12,10 +12,15 @@ ---@field DISABLE cc.BlendFunc local BlendFunc = {} +---@param a cc.BlendFunc +---@return boolean +function BlendFunc:__eq(a) end + ---@return any function BlendFunc:__gc() end ----@return any -function BlendFunc:__olua_move() end +---@param a cc.BlendFunc +---@return boolean +function BlendFunc:__lt(a) end return BlendFunc \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/BlendProtocol.lua b/addons/cclua/cocos2d/library/cc/BlendProtocol.lua index 337f28af..3b83b6c1 100644 --- a/addons/cclua/cocos2d/library/cc/BlendProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/BlendProtocol.lua @@ -11,9 +11,6 @@ local BlendProtocol = {} ---@return any function BlendProtocol:__gc() end ----@return any -function BlendProtocol:__olua_move() end - ---Returns the blending function that is currently being used. --- ---@return cc.BlendFunc # A BlendFunc structure with source and destination factor which specified pixel arithmetic. diff --git a/addons/cclua/cocos2d/library/cc/Bounds.lua b/addons/cclua/cocos2d/library/cc/Bounds.lua index 51cdf367..580c1184 100644 --- a/addons/cclua/cocos2d/library/cc/Bounds.lua +++ b/addons/cclua/cocos2d/library/cc/Bounds.lua @@ -12,9 +12,6 @@ local Bounds = {} ---@return any function Bounds:__gc() end ----@return any -function Bounds:__olua_move() end - ---@return cc.Bounds function Bounds.new() end diff --git a/addons/cclua/cocos2d/library/cc/CSLoader.lua b/addons/cclua/cocos2d/library/cc/CSLoader.lua index f0a73753..ee7223f9 100644 --- a/addons/cclua/cocos2d/library/cc/CSLoader.lua +++ b/addons/cclua/cocos2d/library/cc/CSLoader.lua @@ -11,9 +11,6 @@ local CSLoader = {} ---@return any function CSLoader:__gc() end ----@return any -function CSLoader:__olua_move() end - ---@param callbackName string ---@param callbackType string ---@param sender ccui.Widget diff --git a/addons/cclua/cocos2d/library/cc/Clonable.lua b/addons/cclua/cocos2d/library/cc/Clonable.lua index 97b31cb4..0fe61550 100644 --- a/addons/cclua/cocos2d/library/cc/Clonable.lua +++ b/addons/cclua/cocos2d/library/cc/Clonable.lua @@ -10,9 +10,6 @@ local Clonable = {} ---@return any function Clonable:__gc() end ----@return any -function Clonable:__olua_move() end - ---Returns a copy of the Ref. ---@return cc.Clonable function Clonable:clone() end diff --git a/addons/cclua/cocos2d/library/cc/Controller.lua b/addons/cclua/cocos2d/library/cc/Controller.lua index 42b14605..46b7bdc3 100644 --- a/addons/cclua/cocos2d/library/cc/Controller.lua +++ b/addons/cclua/cocos2d/library/cc/Controller.lua @@ -13,9 +13,6 @@ ---@field TAG_UNSET integer local Controller = {} ----@return any -function Controller:__olua_move() end - ---Gets all Controller objects. ---@return cc.Controller[] function Controller.getAllController() end diff --git a/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua b/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua index 37b0c9fd..17698176 100644 --- a/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua +++ b/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua @@ -11,7 +11,4 @@ local KeyStatus = {} ---@return any function KeyStatus:__gc() end ----@return any -function KeyStatus:__olua_move() end - return KeyStatus \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/Device.lua b/addons/cclua/cocos2d/library/cc/Device.lua index 452262be..24d11281 100644 --- a/addons/cclua/cocos2d/library/cc/Device.lua +++ b/addons/cclua/cocos2d/library/cc/Device.lua @@ -10,9 +10,6 @@ local Device = {} ---@return any function Device:__gc() end ----@return any -function Device:__olua_move() end - ---Gets the DPI of device ---@return integer # The DPI of device. function Device.getDPI() end diff --git a/addons/cclua/cocos2d/library/cc/Director/Projection.lua b/addons/cclua/cocos2d/library/cc/Director/Projection.lua index 5205ed48..6ec1d288 100644 --- a/addons/cclua/cocos2d/library/cc/Director/Projection.lua +++ b/addons/cclua/cocos2d/library/cc/Director/Projection.lua @@ -11,10 +11,6 @@ local Projection = { CUSTOM = 2, ---Default projection is 3D projection. DEFAULT = 1, - ---Sets a 2D projection (orthogonal projection). - _2D = 0, - ---Sets a 3D projection with a fovy=60, znear=0.5f and zfar=1500. - _3D = 1, } return Projection \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/FileUtils.lua b/addons/cclua/cocos2d/library/cc/FileUtils.lua index 19319f75..a8d90dec 100644 --- a/addons/cclua/cocos2d/library/cc/FileUtils.lua +++ b/addons/cclua/cocos2d/library/cc/FileUtils.lua @@ -16,9 +16,6 @@ local FileUtils = {} ---@return any function FileUtils:__gc() end ----@return any -function FileUtils:__olua_move() end - ---Add search path. --- ---\since v2.1 diff --git a/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua b/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua index ee2a3cba..2325e1db 100644 --- a/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua +++ b/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua @@ -17,7 +17,4 @@ local GLContextAttrs = {} ---@return any function GLContextAttrs:__gc() end ----@return any -function GLContextAttrs:__olua_move() end - return GLContextAttrs \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/IMEDelegate.lua b/addons/cclua/cocos2d/library/cc/IMEDelegate.lua index 8ef25d12..852b6ddf 100644 --- a/addons/cclua/cocos2d/library/cc/IMEDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/IMEDelegate.lua @@ -8,9 +8,6 @@ local IMEDelegate = {} ---@return any function IMEDelegate:__gc() end ----@return any -function IMEDelegate:__olua_move() end - ---Default destructor. ---\js NA ---\lua NA diff --git a/addons/cclua/cocos2d/library/cc/LabelProtocol.lua b/addons/cclua/cocos2d/library/cc/LabelProtocol.lua index f7e539a8..f2b0e200 100644 --- a/addons/cclua/cocos2d/library/cc/LabelProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/LabelProtocol.lua @@ -9,9 +9,6 @@ local LabelProtocol = {} ---@return any function LabelProtocol:__gc() end ----@return any -function LabelProtocol:__olua_move() end - ---Returns the string that is currently being used in this label --- ---@return string # The string that is currently being used in this label diff --git a/addons/cclua/cocos2d/library/cc/Mat4.lua b/addons/cclua/cocos2d/library/cc/Mat4.lua index ab989158..fa4a8c20 100644 --- a/addons/cclua/cocos2d/library/cc/Mat4.lua +++ b/addons/cclua/cocos2d/library/cc/Mat4.lua @@ -10,28 +10,48 @@ ---@field transposed cc.Mat4 Get the Transposed matrix. ---@field IDENTITY cc.Mat4 ---@field ZERO cc.Mat4 +---@operator add(cc.Mat4):cc.Mat4 +---@operator mul(cc.Mat4):cc.Mat4 +---@operator sub(cc.Mat4):cc.Mat4 +---@operator unm:cc.Mat4 local Mat4 = {} ----@param mat1 cc.Mat4 ----@param mat2 cc.Mat4 ----@return cc.Mat4 -function Mat4.__add(mat1, mat2) end +---Calculates the sum of this matrix with the given matrix. +--- +---Note: this does not modify this matrix. +--- +---@param mat cc.Mat4 # The matrix to add. +---@return cc.Mat4 # The matrix sum. +---@overload fun(mat1: cc.Mat4, mat2: cc.Mat4): cc.Mat4 +function Mat4:__add(mat) end ---@return any function Mat4:__gc() end ----@param mat1 cc.Mat4 ----@param mat2 cc.Mat4 ----@return cc.Mat4 -function Mat4.__mul(mat1, mat2) end +---Calculates the matrix product of this matrix with the given matrix. +--- +---Note: this does not modify this matrix. +--- +---@param mat cc.Mat4 # The matrix to multiply by. +---@return cc.Mat4 # The matrix product. +---@overload fun(mat1: cc.Mat4, mat2: cc.Mat4): cc.Mat4 +function Mat4:__mul(mat) end ----@return any -function Mat4:__olua_move() end +---Calculates the difference of this matrix with the given matrix. +--- +---Note: this does not modify this matrix. +--- +---@param mat cc.Mat4 # The matrix to subtract. +---@return cc.Mat4 # The matrix difference. +---@overload fun(mat1: cc.Mat4, mat2: cc.Mat4): cc.Mat4 +function Mat4:__sub(mat) end ----@param mat1 cc.Mat4 ----@param mat2 cc.Mat4 ----@return cc.Mat4 -function Mat4.__sub(mat1, mat2) end +---Calculates the negation of this matrix. +--- +---Note: this does not modify this matrix. +--- +---@return cc.Mat4 # The negation of this matrix. +function Mat4:__unm() end ---Adds a scalar value to each component of this matrix. --- diff --git a/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua b/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua index 7aac52bc..010f7233 100644 --- a/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua +++ b/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua @@ -13,9 +13,6 @@ local MeshVertexAttrib = {} ---@return any function MeshVertexAttrib:__gc() end ----@return any -function MeshVertexAttrib:__olua_move() end - ---@return integer function MeshVertexAttrib:getAttribSizeBytes() end diff --git a/addons/cclua/cocos2d/library/cc/NTextureData.lua b/addons/cclua/cocos2d/library/cc/NTextureData.lua index 980034ed..5e21b6ee 100644 --- a/addons/cclua/cocos2d/library/cc/NTextureData.lua +++ b/addons/cclua/cocos2d/library/cc/NTextureData.lua @@ -15,7 +15,4 @@ local NTextureData = {} ---@return any function NTextureData:__gc() end ----@return any -function NTextureData:__olua_move() end - return NTextureData \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua b/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua index 8408aae2..8ae582fd 100644 --- a/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua +++ b/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua @@ -19,9 +19,6 @@ local NavMeshAgentParam = {} ---@return any function NavMeshAgentParam:__gc() end ----@return any -function NavMeshAgentParam:__olua_move() end - ---@return cc.NavMeshAgentParam function NavMeshAgentParam.new() end diff --git a/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua b/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua index b7ffcf78..b7002017 100644 --- a/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua +++ b/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua @@ -10,7 +10,4 @@ local OffMeshLinkData = {} ---@return any function OffMeshLinkData:__gc() end ----@return any -function OffMeshLinkData:__olua_move() end - return OffMeshLinkData \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua b/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua index cbd6b61b..0954e456 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua @@ -8,9 +8,6 @@ ---@field surfaceVelocity cc.Vec2 Get surface velocity between two bodies. local PhysicsContactPostSolve = {} ----@return any -function PhysicsContactPostSolve:__olua_move() end - ---Get friction between two bodies. ---@return number function PhysicsContactPostSolve:getFriction() end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua b/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua index c5a49162..446f94ca 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua @@ -8,9 +8,6 @@ ---@field surfaceVelocity cc.Vec2 Get surface velocity between two bodies. local PhysicsContactPreSolve = {} ----@return any -function PhysicsContactPreSolve:__olua_move() end - ---Get friction between two bodies. ---@return number function PhysicsContactPreSolve:getFriction() end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua b/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua index 3e88e7da..3239210d 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua @@ -12,9 +12,6 @@ ---@field world cc.PhysicsWorld Get the physics world. local PhysicsJoint = {} ----@return any -function PhysicsJoint:__olua_move() end - ---Get physics body a connected to this joint. ---@return cc.PhysicsBody function PhysicsJoint:getBodyA() end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua b/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua index c4fbff65..be47b0a3 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua @@ -11,9 +11,6 @@ local PhysicsMaterial = {} ---@return any function PhysicsMaterial:__gc() end ----@return any -function PhysicsMaterial:__olua_move() end - ---@return cc.PhysicsMaterial ---@overload fun(aDensity: number, aRestitution: number, aFriction: number): cc.PhysicsMaterial function PhysicsMaterial.new() end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua b/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua index 92e4172f..91cc8b18 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua @@ -15,7 +15,4 @@ local PhysicsRayCastInfo = {} ---@return any function PhysicsRayCastInfo:__gc() end ----@return any -function PhysicsRayCastInfo:__olua_move() end - return PhysicsRayCastInfo \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua b/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua index 09c044d4..25383e41 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua @@ -20,9 +20,6 @@ ---@field DEBUGDRAW_SHAPE integer local PhysicsWorld = {} ----@return any -function PhysicsWorld:__olua_move() end - ---Adds a joint to this physics world. --- ---This joint will be added to this physics world at next frame. diff --git a/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua b/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua index 5959e420..7f0c8cbc 100644 --- a/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua +++ b/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua @@ -11,7 +11,4 @@ local PipelineDescriptor = {} ---@return any function PipelineDescriptor:__gc() end ----@return any -function PipelineDescriptor:__olua_move() end - return PipelineDescriptor \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua b/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua index 7584700e..10edf654 100644 --- a/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua @@ -8,9 +8,6 @@ local PlayableProtocol = {} ---@return any function PlayableProtocol:__gc() end ----@return any -function PlayableProtocol:__olua_move() end - function PlayableProtocol:start() end function PlayableProtocol:stop() end diff --git a/addons/cclua/cocos2d/library/cc/Properties.lua b/addons/cclua/cocos2d/library/cc/Properties.lua index 2a2d1ec2..30fd10b0 100644 --- a/addons/cclua/cocos2d/library/cc/Properties.lua +++ b/addons/cclua/cocos2d/library/cc/Properties.lua @@ -118,9 +118,6 @@ local Properties = {} ---@return any function Properties:__gc() end ----@return any -function Properties:__olua_move() end - ---Creates a Properties runtime settings from the specified URL, where the URL is of ---the format ".#//.../" ---(and "#//.../" is optional). diff --git a/addons/cclua/cocos2d/library/cc/Quad3.lua b/addons/cclua/cocos2d/library/cc/Quad3.lua index 962f3fff..58cce9cd 100644 --- a/addons/cclua/cocos2d/library/cc/Quad3.lua +++ b/addons/cclua/cocos2d/library/cc/Quad3.lua @@ -13,7 +13,4 @@ local Quad3 = {} ---@return any function Quad3:__gc() end ----@return any -function Quad3:__olua_move() end - return Quad3 \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/Quaternion.lua b/addons/cclua/cocos2d/library/cc/Quaternion.lua index 6c26a5f9..932d5369 100644 --- a/addons/cclua/cocos2d/library/cc/Quaternion.lua +++ b/addons/cclua/cocos2d/library/cc/Quaternion.lua @@ -36,13 +36,24 @@ ---@field y number ---@field z number ---@field ZERO cc.Quaternion +---@operator mul(cc.Quaternion):cc.Quaternion local Quaternion = {} ---@return any function Quaternion:__gc() end ----@return any -function Quaternion:__olua_move() end +---Calculates the quaternion product of this quaternion with the given quaternion. +--- +---Note: this does not modify this quaternion. +--- +---@param q cc.Quaternion # The quaternion to multiply. +---@return cc.Quaternion # The quaternion product. +--- +---Calculates the quaternion product of this quaternion with the given vec3. +---\param v The vec3 to multiply. +---\return The vec3 product. +---@overload fun(self: cc.Quaternion, v: cc.Vec3): cc.Vec3 +function Quaternion:__mul(q) end ---Sets this quaternion to the conjugate of itself. function Quaternion:conjugate() end diff --git a/addons/cclua/cocos2d/library/cc/Rect.lua b/addons/cclua/cocos2d/library/cc/Rect.lua index bb0ecb51..fd5b3fd1 100644 --- a/addons/cclua/cocos2d/library/cc/Rect.lua +++ b/addons/cclua/cocos2d/library/cc/Rect.lua @@ -12,6 +12,7 @@ ---@field origin cc.Vec2 ---@field size cc.Size ---@field ZERO cc.Rect +---@operator call() local Rect = {} ---@return any @@ -20,9 +21,6 @@ function Rect.__call() end ---@return any function Rect:__gc() end ----@return any -function Rect:__olua_move() end - ---Check if the points is contained in the rect. ---\js NA ---@param point cc.Vec2 diff --git a/addons/cclua/cocos2d/library/cc/Ref.lua b/addons/cclua/cocos2d/library/cc/Ref.lua index a21aad62..e064fadc 100644 --- a/addons/cclua/cocos2d/library/cc/Ref.lua +++ b/addons/cclua/cocos2d/library/cc/Ref.lua @@ -10,9 +10,6 @@ local Ref = {} ---@return any function Ref:__gc() end ----@return any -function Ref:__olua_move() end - ---Returns the Ref's current reference count. --- ---@return integer # s The Ref's reference count. diff --git a/addons/cclua/cocos2d/library/cc/RenderCommand.lua b/addons/cclua/cocos2d/library/cc/RenderCommand.lua index 5958ad13..3148c57f 100644 --- a/addons/cclua/cocos2d/library/cc/RenderCommand.lua +++ b/addons/cclua/cocos2d/library/cc/RenderCommand.lua @@ -14,9 +14,6 @@ ---@field type cc.RenderCommand.Type Returns the Command type. local RenderCommand = {} ----@return any -function RenderCommand:__olua_move() end - ---Get the depth by current model view matrix. ---@return number function RenderCommand:getDepth() end diff --git a/addons/cclua/cocos2d/library/cc/Renderer.lua b/addons/cclua/cocos2d/library/cc/Renderer.lua index bde7dad3..bbe096de 100644 --- a/addons/cclua/cocos2d/library/cc/Renderer.lua +++ b/addons/cclua/cocos2d/library/cc/Renderer.lua @@ -36,9 +36,6 @@ local Renderer = {} ---@return any function Renderer:__gc() end ----@return any -function Renderer:__olua_move() end - ---Adds a `RenderComamnd` into the renderer ---@param command cc.RenderCommand --- diff --git a/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua b/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua index 56808a41..7c316d6d 100644 --- a/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua +++ b/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua @@ -9,9 +9,6 @@ local ResizableBuffer = {} ---@return any function ResizableBuffer:__gc() end ----@return any -function ResizableBuffer:__olua_move() end - ---@return any function ResizableBuffer:buffer() end diff --git a/addons/cclua/cocos2d/library/cc/ResourceData.lua b/addons/cclua/cocos2d/library/cc/ResourceData.lua index e0405d39..1f9de431 100644 --- a/addons/cclua/cocos2d/library/cc/ResourceData.lua +++ b/addons/cclua/cocos2d/library/cc/ResourceData.lua @@ -12,9 +12,6 @@ local ResourceData = {} ---@return any function ResourceData:__gc() end ----@return any -function ResourceData:__olua_move() end - ---@return cc.ResourceData ---@overload fun(iType: integer, sFile: string, sPlist: string): cc.ResourceData function ResourceData.new() end diff --git a/addons/cclua/cocos2d/library/cc/SAXDelegator.lua b/addons/cclua/cocos2d/library/cc/SAXDelegator.lua index 617c7e67..2d30fdf5 100644 --- a/addons/cclua/cocos2d/library/cc/SAXDelegator.lua +++ b/addons/cclua/cocos2d/library/cc/SAXDelegator.lua @@ -8,9 +8,6 @@ local SAXDelegator = {} ---@return any function SAXDelegator:__gc() end ----@return any -function SAXDelegator:__olua_move() end - ---\js NA ---\lua NA ---@param ctx any diff --git a/addons/cclua/cocos2d/library/cc/ScissorRect.lua b/addons/cclua/cocos2d/library/cc/ScissorRect.lua index eb8e8b1b..499c5751 100644 --- a/addons/cclua/cocos2d/library/cc/ScissorRect.lua +++ b/addons/cclua/cocos2d/library/cc/ScissorRect.lua @@ -12,7 +12,4 @@ local ScissorRect = {} ---@return any function ScissorRect:__gc() end ----@return any -function ScissorRect:__olua_move() end - return ScissorRect \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/Size.lua b/addons/cclua/cocos2d/library/cc/Size.lua index 55810195..46daa481 100644 --- a/addons/cclua/cocos2d/library/cc/Size.lua +++ b/addons/cclua/cocos2d/library/cc/Size.lua @@ -7,13 +7,38 @@ ---@field height number ---@field width number ---@field ZERO cc.Size +---@operator add(cc.Size):cc.Size +---@operator div(number):cc.Size +---@operator mul(number):cc.Size +---@operator sub(cc.Size):cc.Size local Size = {} +---\js NA +---\lua NA +---@param right cc.Size +---@return cc.Size +function Size:__add(right) end + +---\js NA +---\lua NA +---@param a number +---@return cc.Size +function Size:__div(a) end + ---@return any function Size:__gc() end ----@return any -function Size:__olua_move() end +---\js NA +---\lua NA +---@param a number +---@return cc.Size +function Size:__mul(a) end + +---\js NA +---\lua NA +---@param right cc.Size +---@return cc.Size +function Size:__sub(right) end ---Check if two size is the same. ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/T2F_Quad.lua b/addons/cclua/cocos2d/library/cc/T2F_Quad.lua index cb1adfa3..366b750e 100644 --- a/addons/cclua/cocos2d/library/cc/T2F_Quad.lua +++ b/addons/cclua/cocos2d/library/cc/T2F_Quad.lua @@ -13,7 +13,4 @@ local T2F_Quad = {} ---@return any function T2F_Quad:__gc() end ----@return any -function T2F_Quad:__olua_move() end - return T2F_Quad \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/TTFConfig.lua b/addons/cclua/cocos2d/library/cc/TTFConfig.lua index 5fa5f403..04160329 100644 --- a/addons/cclua/cocos2d/library/cc/TTFConfig.lua +++ b/addons/cclua/cocos2d/library/cc/TTFConfig.lua @@ -19,7 +19,4 @@ local TTFConfig = {} ---@return any function TTFConfig:__gc() end ----@return any -function TTFConfig:__olua_move() end - return TTFConfig \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/Tex2F.lua b/addons/cclua/cocos2d/library/cc/Tex2F.lua index 4dffb0d9..ce606373 100644 --- a/addons/cclua/cocos2d/library/cc/Tex2F.lua +++ b/addons/cclua/cocos2d/library/cc/Tex2F.lua @@ -12,9 +12,6 @@ local Tex2F = {} ---@return any function Tex2F:__gc() end ----@return any -function Tex2F:__olua_move() end - ---@param _u number ---@param _v number ---@return cc.Tex2F diff --git a/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua b/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua index 80416fb4..299363fa 100644 --- a/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua @@ -8,9 +8,6 @@ local TextFieldDelegate = {} ---@return any function TextFieldDelegate:__gc() end ----@return any -function TextFieldDelegate:__olua_move() end - ---If the sender doesn't want to attach to the IME, return true. ---@param sender cc.TextFieldTTF ---@return boolean diff --git a/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua b/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua index 29f06a48..5b2611f9 100644 --- a/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua +++ b/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua @@ -11,9 +11,6 @@ local PixelFormatInfo = {} ---@return any function PixelFormatInfo:__gc() end ----@return any -function PixelFormatInfo:__olua_move() end - ---@param aBpp integer ---@param aCompressed boolean ---@param anAlpha boolean diff --git a/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua b/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua index 0dfdcafe..9ae63ff6 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua @@ -11,9 +11,6 @@ local TransitionEaseScene = {} ---@return any function TransitionEaseScene:__gc() end ----@return any -function TransitionEaseScene:__olua_move() end - ---Returns the Ease action that will be performed on a linear action. ---\since v0.8.2 --- diff --git a/addons/cclua/cocos2d/library/cc/UserDefault.lua b/addons/cclua/cocos2d/library/cc/UserDefault.lua index c38f7534..f724bcce 100644 --- a/addons/cclua/cocos2d/library/cc/UserDefault.lua +++ b/addons/cclua/cocos2d/library/cc/UserDefault.lua @@ -16,9 +16,6 @@ ---@field xmlFilePath string All supported platforms other iOS & Android use xml file to save values. This function is return the file path of the xml path. \js NA local UserDefault = {} ----@return any -function UserDefault:__olua_move() end - ---delete any value by key, ---@param key string # The key to delete value. ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/Vec2.lua b/addons/cclua/cocos2d/library/cc/Vec2.lua index c4507263..686ec944 100644 --- a/addons/cclua/cocos2d/library/cc/Vec2.lua +++ b/addons/cclua/cocos2d/library/cc/Vec2.lua @@ -24,13 +24,68 @@ ---@field UNIT_X cc.Vec2 ---@field UNIT_Y cc.Vec2 ---@field ZERO cc.Vec2 +---@operator add(cc.Vec2):cc.Vec2 +---@operator div(number):cc.Vec2 +---@operator mul(number):cc.Vec2 +---@operator sub(cc.Vec2):cc.Vec2 +---@operator unm:cc.Vec2 local Vec2 = {} +---Calculates the sum of this vector with the given vector. +--- +---Note: this does not modify this vector. +--- +---@param v cc.Vec2 # The vector to add. +---@return cc.Vec2 # The vector sum. +function Vec2:__add(v) end + +---Returns the components of this vector divided by the given constant +--- +---Note: this does not modify this vector. +--- +---@param s number # the constant to divide this vector with +---@return cc.Vec2 # a smaller vector +function Vec2:__div(s) end + +---Determines if this vector is equal to the given vector. +--- +---@param v cc.Vec2 # The vector to compare against. +--- +---@return boolean # True if this vector is equal to the given vector, false otherwise. +function Vec2:__eq(v) end + ---@return any function Vec2:__gc() end ----@return any -function Vec2:__olua_move() end +---Determines if this vector is less than the given vector. +--- +---@param v cc.Vec2 # The vector to compare against. +--- +---@return boolean # True if this vector is less than the given vector, false otherwise. +function Vec2:__lt(v) end + +---Calculates the scalar product of this vector with the given value. +--- +---Note: this does not modify this vector. +--- +---@param s number # The value to scale by. +---@return cc.Vec2 # The scaled vector. +function Vec2:__mul(s) end + +---Calculates the sum of this vector with the given vector. +--- +---Note: this does not modify this vector. +--- +---@param v cc.Vec2 # The vector to add. +---@return cc.Vec2 # The vector sum. +function Vec2:__sub(v) end + +---Calculates the negation of this vector. +--- +---Note: this does not modify this vector. +--- +---@return cc.Vec2 # The negation of this vector. +function Vec2:__unm() end ---Adds the elements of the specified vector to this one. --- diff --git a/addons/cclua/cocos2d/library/cc/Vec3.lua b/addons/cclua/cocos2d/library/cc/Vec3.lua index 3ca88f28..b57989ee 100644 --- a/addons/cclua/cocos2d/library/cc/Vec3.lua +++ b/addons/cclua/cocos2d/library/cc/Vec3.lua @@ -20,13 +20,67 @@ ---@field UNIT_Y cc.Vec3 ---@field UNIT_Z cc.Vec3 ---@field ZERO cc.Vec3 +---@operator add(cc.Vec3):cc.Vec3 +---@operator div(number):cc.Vec3 +---@operator mul(number):cc.Vec3 +---@operator sub(cc.Vec3):cc.Vec3 +---@operator unm:cc.Vec3 local Vec3 = {} +---Calculates the sum of this vector with the given vector. +--- +---Note: this does not modify this vector. +--- +---@param v cc.Vec3 # The vector to add. +---@return cc.Vec3 # The vector sum. +function Vec3:__add(v) end + +---Returns the components of this vector divided by the given constant +--- +---Note: this does not modify this vector. +--- +---@param s number # the constant to divide this vector with +---@return cc.Vec3 # a smaller vector +function Vec3:__div(s) end + +---Determines if this vector is equal to the given vector. +--- +---@param v cc.Vec3 # The vector to compare against. +--- +---@return boolean # True if this vector is equal to the given vector, false otherwise. +function Vec3:__eq(v) end + ---@return any function Vec3:__gc() end ----@return any -function Vec3:__olua_move() end +---Returns true if the vector's scalar components are all greater +---that the ones of the vector it is compared against. +---@param rhs cc.Vec3 +---@return boolean +function Vec3:__lt(rhs) end + +---Calculates the scalar product of this vector with the given value. +--- +---Note: this does not modify this vector. +--- +---@param s number # The value to scale by. +---@return cc.Vec3 # The scaled vector. +function Vec3:__mul(s) end + +---Calculates the difference of this vector with the given vector. +--- +---Note: this does not modify this vector. +--- +---@param v cc.Vec3 # The vector to subtract. +---@return cc.Vec3 # The vector difference. +function Vec3:__sub(v) end + +---Calculates the negation of this vector. +--- +---Note: this does not modify this vector. +--- +---@return cc.Vec3 # The negation of this vector. +function Vec3:__unm() end ---Adds the elements of the specified vector to this one. --- diff --git a/addons/cclua/cocos2d/library/cc/Vec4.lua b/addons/cclua/cocos2d/library/cc/Vec4.lua index 467b8a9b..00cdfebf 100644 --- a/addons/cclua/cocos2d/library/cc/Vec4.lua +++ b/addons/cclua/cocos2d/library/cc/Vec4.lua @@ -16,13 +16,68 @@ ---@field UNIT_Y cc.Vec4 ---@field UNIT_Z cc.Vec4 ---@field ZERO cc.Vec4 +---@operator add(cc.Vec4):cc.Vec4 +---@operator div(number):cc.Vec4 +---@operator mul(number):cc.Vec4 +---@operator sub(cc.Vec4):cc.Vec4 +---@operator unm:cc.Vec4 local Vec4 = {} +---Calculates the sum of this vector with the given vector. +--- +---Note: this does not modify this vector. +--- +---@param v cc.Vec4 # The vector to add. +---@return cc.Vec4 # The vector sum. +function Vec4:__add(v) end + +---Returns the components of this vector divided by the given constant +--- +---Note: this does not modify this vector. +--- +---@param s number # the constant to divide this vector with +---@return cc.Vec4 # a smaller vector +function Vec4:__div(s) end + +---Determines if this vector is equal to the given vector. +--- +---@param v cc.Vec4 # The vector to compare against. +--- +---@return boolean # True if this vector is equal to the given vector, false otherwise. +function Vec4:__eq(v) end + ---@return any function Vec4:__gc() end ----@return any -function Vec4:__olua_move() end +---Determines if this vector is less than the given vector. +--- +---@param v cc.Vec4 # The vector to compare against. +--- +---@return boolean # True if this vector is less than the given vector, false otherwise. +function Vec4:__lt(v) end + +---Calculates the scalar product of this vector with the given value. +--- +---Note: this does not modify this vector. +--- +---@param s number # The value to scale by. +---@return cc.Vec4 # The scaled vector. +function Vec4:__mul(s) end + +---Calculates the sum of this vector with the given vector. +--- +---Note: this does not modify this vector. +--- +---@param v cc.Vec4 # The vector to add. +---@return cc.Vec4 # The vector sum. +function Vec4:__sub(v) end + +---Calculates the negation of this vector. +--- +---Note: this does not modify this vector. +--- +---@return cc.Vec4 # The negation of this vector. +function Vec4:__unm() end ---Adds the elements of the specified vector to this one. --- diff --git a/addons/cclua/cocos2d/library/cc/Viewport.lua b/addons/cclua/cocos2d/library/cc/Viewport.lua index 379b0e7b..ffd02825 100644 --- a/addons/cclua/cocos2d/library/cc/Viewport.lua +++ b/addons/cclua/cocos2d/library/cc/Viewport.lua @@ -12,7 +12,4 @@ local Viewport = {} ---@return any function Viewport:__gc() end ----@return any -function Viewport:__olua_move() end - return Viewport \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/WebSocket.lua b/addons/cclua/cocos2d/library/cc/WebSocket.lua index 0132ab6e..cea4b4af 100644 --- a/addons/cclua/cocos2d/library/cc/WebSocket.lua +++ b/addons/cclua/cocos2d/library/cc/WebSocket.lua @@ -12,9 +12,6 @@ local WebSocket = {} ---@return any function WebSocket:__gc() end ----@return any -function WebSocket:__olua_move() end - ---Closes the connection to server synchronously. ---\note It's a synchronous method, it will not return until websocket thread exits. function WebSocket:close() end diff --git a/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua b/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua index 75b0968c..e61711ee 100644 --- a/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua +++ b/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua @@ -11,9 +11,6 @@ local Delegate = {} ---@return any function Delegate:__gc() end ----@return any -function Delegate:__olua_move() end - ---When the WebSocket object connected wants to close or the protocol won't get used at all and current _readyState is State::CLOSING,this function is to be called. --- ---@param ws cc.WebSocket # The WebSocket object connected. diff --git a/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua b/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua index 7e517a77..a39405c4 100644 --- a/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua +++ b/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua @@ -11,7 +11,4 @@ local ccBezierConfig = {} ---@return any function ccBezierConfig:__gc() end ----@return any -function ccBezierConfig:__olua_move() end - return ccBezierConfig \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/sImageTGA.lua b/addons/cclua/cocos2d/library/cc/sImageTGA.lua index e151dd34..0c7901e6 100644 --- a/addons/cclua/cocos2d/library/cc/sImageTGA.lua +++ b/addons/cclua/cocos2d/library/cc/sImageTGA.lua @@ -15,7 +15,4 @@ local sImageTGA = {} ---@return any function sImageTGA:__gc() end ----@return any -function sImageTGA:__olua_move() end - return sImageTGA \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/types/TMXTileFlags.lua b/addons/cclua/cocos2d/library/cc/types/TMXTileFlags.lua index 9fe6a67f..5442036c 100644 --- a/addons/cclua/cocos2d/library/cc/types/TMXTileFlags.lua +++ b/addons/cclua/cocos2d/library/cc/types/TMXTileFlags.lua @@ -19,9 +19,6 @@ function TMXTileFlags:__index(idx) end ---@param v cc.TMXTileFlags function TMXTileFlags:__newindex(idx, v) end ----@return any -function TMXTileFlags:__olua_move() end - ---@param len integer ---@return cc.types.TMXTileFlags ---@overload fun(): cc.types.TMXTileFlags diff --git a/addons/cclua/cocos2d/library/cc/types/ValueMap.lua b/addons/cclua/cocos2d/library/cc/types/ValueMap.lua index 9d2bdd52..4ccd85ad 100644 --- a/addons/cclua/cocos2d/library/cc/types/ValueMap.lua +++ b/addons/cclua/cocos2d/library/cc/types/ValueMap.lua @@ -19,9 +19,6 @@ function ValueMap:__index(idx) end ---@param v any function ValueMap:__newindex(idx, v) end ----@return any -function ValueMap:__olua_move() end - ---@param len integer ---@return cc.types.ValueMap ---@overload fun(): cc.types.ValueMap diff --git a/addons/cclua/cocos2d/library/cc/types/Vec2Array.lua b/addons/cclua/cocos2d/library/cc/types/Vec2Array.lua index 80403d84..97ddfbe1 100644 --- a/addons/cclua/cocos2d/library/cc/types/Vec2Array.lua +++ b/addons/cclua/cocos2d/library/cc/types/Vec2Array.lua @@ -19,9 +19,6 @@ function Vec2Array:__index(idx) end ---@param v cc.Vec2 function Vec2Array:__newindex(idx, v) end ----@return any -function Vec2Array:__olua_move() end - ---@param len integer ---@return cc.types.Vec2Array ---@overload fun(): cc.types.Vec2Array diff --git a/addons/cclua/cocos2d/library/cc/types/VectorInt.lua b/addons/cclua/cocos2d/library/cc/types/VectorInt.lua index e2c2614d..7881079c 100644 --- a/addons/cclua/cocos2d/library/cc/types/VectorInt.lua +++ b/addons/cclua/cocos2d/library/cc/types/VectorInt.lua @@ -19,9 +19,6 @@ function VectorInt:__index(idx) end ---@param v integer[] function VectorInt:__newindex(idx, v) end ----@return any -function VectorInt:__olua_move() end - ---@param len integer ---@return cc.types.VectorInt ---@overload fun(): cc.types.VectorInt diff --git a/addons/cclua/cocos2d/library/cc/types/VectorString.lua b/addons/cclua/cocos2d/library/cc/types/VectorString.lua index 107830c9..457d79b1 100644 --- a/addons/cclua/cocos2d/library/cc/types/VectorString.lua +++ b/addons/cclua/cocos2d/library/cc/types/VectorString.lua @@ -19,9 +19,6 @@ function VectorString:__index(idx) end ---@param v string[] function VectorString:__newindex(idx, v) end ----@return any -function VectorString:__olua_move() end - ---@param len integer ---@return cc.types.VectorString ---@overload fun(): cc.types.VectorString diff --git a/addons/cclua/cocos2d/library/cc/ui/Margin.lua b/addons/cclua/cocos2d/library/cc/ui/Margin.lua index d34dcc54..949fe12f 100644 --- a/addons/cclua/cocos2d/library/cc/ui/Margin.lua +++ b/addons/cclua/cocos2d/library/cc/ui/Margin.lua @@ -14,9 +14,6 @@ local Margin = {} ---@return any function Margin:__gc() end ----@return any -function Margin:__olua_move() end - ---Test equality of two margins. ---@param target cc.ui.Margin # A Margin instance. ---@return boolean # True if two margins are equal, false otherwise. diff --git a/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua b/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua index 893eb46f..efbf8f60 100644 --- a/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua @@ -12,7 +12,4 @@ local AttributeBindInfo = {} ---@return any function AttributeBindInfo:__gc() end ----@return any -function AttributeBindInfo:__olua_move() end - return AttributeBindInfo \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua b/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua index f6672639..359f5b37 100644 --- a/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua @@ -16,7 +16,4 @@ local BlendDescriptor = {} ---@return any function BlendDescriptor:__gc() end ----@return any -function BlendDescriptor:__olua_move() end - return BlendDescriptor \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua b/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua index 3d65aa5f..041db1d5 100644 --- a/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua @@ -14,7 +14,4 @@ local DepthStencilDescriptor = {} ---@return any function DepthStencilDescriptor:__gc() end ----@return any -function DepthStencilDescriptor:__olua_move() end - return DepthStencilDescriptor \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua b/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua index 50278bf9..ad0af418 100644 --- a/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua @@ -16,9 +16,6 @@ local DeviceInfo = {} ---@return any function DeviceInfo:__gc() end ----@return any -function DeviceInfo:__olua_move() end - ---Check if feature supported by device. ---@param feature ccb.FeatureType # Specify feature to be query. ---@return boolean # true if the feature is supported, false otherwise. diff --git a/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua b/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua index e2385b6e..95137e72 100644 --- a/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua @@ -12,9 +12,6 @@ local SamplerDescriptor = {} ---@return any function SamplerDescriptor:__gc() end ----@return any -function SamplerDescriptor:__olua_move() end - ---@return ccb.SamplerDescriptor ---@overload fun(_magFilter: ccb.SamplerFilter, _minFilter: ccb.SamplerFilter, _sAddressMode: ccb.SamplerAddressMode, _tAddressMode: ccb.SamplerAddressMode): ccb.SamplerDescriptor function SamplerDescriptor.new() end diff --git a/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua b/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua index 08515498..9143775b 100644 --- a/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua @@ -11,10 +11,11 @@ ---@field writeMask integer local StencilDescriptor = {} ----@return any -function StencilDescriptor:__gc() end +---@param rhs ccb.StencilDescriptor +---@return boolean +function StencilDescriptor:__eq(rhs) end ---@return any -function StencilDescriptor:__olua_move() end +function StencilDescriptor:__gc() end return StencilDescriptor \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua b/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua index 0c0f1643..1d1e1fad 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua @@ -16,7 +16,4 @@ local TextureDescriptor = {} ---@return any function TextureDescriptor:__gc() end ----@return any -function TextureDescriptor:__olua_move() end - return TextureDescriptor \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccb/TextureInfo.lua b/addons/cclua/cocos2d/library/ccb/TextureInfo.lua index 8f415e73..5cacc46e 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureInfo.lua @@ -10,9 +10,6 @@ local TextureInfo = {} ---@return any function TextureInfo:__gc() end ----@return any -function TextureInfo:__olua_move() end - ---@param _slots integer[] ---@param _textures ccb.TextureBackend[] ---@return ccb.TextureInfo diff --git a/addons/cclua/cocos2d/library/ccb/UniformInfo.lua b/addons/cclua/cocos2d/library/ccb/UniformInfo.lua index ab4a1ac8..231a681c 100644 --- a/addons/cclua/cocos2d/library/ccb/UniformInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/UniformInfo.lua @@ -16,7 +16,4 @@ local UniformInfo = {} ---@return any function UniformInfo:__gc() end ----@return any -function UniformInfo:__olua_move() end - return UniformInfo \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccb/UniformLocation.lua b/addons/cclua/cocos2d/library/ccb/UniformLocation.lua index a8790ee9..683459bc 100644 --- a/addons/cclua/cocos2d/library/ccb/UniformLocation.lua +++ b/addons/cclua/cocos2d/library/ccb/UniformLocation.lua @@ -6,11 +6,12 @@ ---@field shaderStage ccb.ShaderStage local UniformLocation = {} ----@return any -function UniformLocation:__gc() end +---@param other ccb.UniformLocation +---@return boolean +function UniformLocation:__eq(other) end ---@return any -function UniformLocation:__olua_move() end +function UniformLocation:__gc() end ---@return ccb.UniformLocation function UniformLocation.new() end diff --git a/addons/cclua/cocos2d/library/ccb/VertexLayout.lua b/addons/cclua/cocos2d/library/ccb/VertexLayout.lua index 04618246..59aad2e4 100644 --- a/addons/cclua/cocos2d/library/ccb/VertexLayout.lua +++ b/addons/cclua/cocos2d/library/ccb/VertexLayout.lua @@ -12,9 +12,6 @@ local VertexLayout = {} ---@return any function VertexLayout:__gc() end ----@return any -function VertexLayout:__olua_move() end - ---Get attribute informations ---@return { [string]: ccb.VertexLayout.Attribute } # Atrribute informations. function VertexLayout:getAttributes() end diff --git a/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua b/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua index f1afc4cf..f66833c1 100644 --- a/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua +++ b/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua @@ -13,9 +13,6 @@ local Attribute = {} ---@return any function Attribute:__gc() end ----@return any -function Attribute:__olua_move() end - ---@return ccb.VertexLayout.Attribute ---@overload fun(_name: string, _index: integer, _format: ccb.VertexFormat, _offset: integer, needToBeNormallized: boolean): ccb.VertexLayout.Attribute function Attribute.new() end diff --git a/addons/cclua/cocos2d/library/ccs/CocoLoader.lua b/addons/cclua/cocos2d/library/ccs/CocoLoader.lua index 06fe37a8..970984f6 100644 --- a/addons/cclua/cocos2d/library/ccs/CocoLoader.lua +++ b/addons/cclua/cocos2d/library/ccs/CocoLoader.lua @@ -8,7 +8,4 @@ local CocoLoader = {} ---@return any function CocoLoader:__gc() end ----@return any -function CocoLoader:__olua_move() end - return CocoLoader \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua b/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua index 41fc89ea..be596ab5 100644 --- a/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua +++ b/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua @@ -9,7 +9,4 @@ local ColliderFilter = {} ---@return any function ColliderFilter:__gc() end ----@return any -function ColliderFilter:__olua_move() end - return ColliderFilter \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua b/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua index 257f0832..10012211 100644 --- a/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua +++ b/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua @@ -11,9 +11,6 @@ local DataReaderHelper = {} ---@return any function DataReaderHelper:__gc() end ----@return any -function DataReaderHelper:__olua_move() end - ---@param dt number function DataReaderHelper:addDataAsyncCallBack(dt) end diff --git a/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua b/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua index 305a0d78..f373a013 100644 --- a/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua +++ b/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua @@ -9,9 +9,6 @@ local DisplayFactory = {} ---@return any function DisplayFactory:__gc() end ----@return any -function DisplayFactory:__olua_move() end - ---@param bone ccs.Bone ---@param decoDisplay ccs.DecorativeDisplay ---@param displayData ccs.DisplayData diff --git a/addons/cclua/cocos2d/library/ccs/InputDelegate.lua b/addons/cclua/cocos2d/library/ccs/InputDelegate.lua index 11f66fde..850ed6ed 100644 --- a/addons/cclua/cocos2d/library/ccs/InputDelegate.lua +++ b/addons/cclua/cocos2d/library/ccs/InputDelegate.lua @@ -13,9 +13,6 @@ local InputDelegate = {} ---@return any function InputDelegate:__gc() end ----@return any -function InputDelegate:__olua_move() end - ---@return cc.Touch.DispatchMode function InputDelegate:getTouchMode() end diff --git a/addons/cclua/cocos2d/library/ccs/SceneReader.lua b/addons/cclua/cocos2d/library/ccs/SceneReader.lua index 2f804eb9..67213efc 100644 --- a/addons/cclua/cocos2d/library/ccs/SceneReader.lua +++ b/addons/cclua/cocos2d/library/ccs/SceneReader.lua @@ -10,9 +10,6 @@ local SceneReader = {} ---@return any function SceneReader:__gc() end ----@return any -function SceneReader:__olua_move() end - ---@param fileName string ---@param attachComponent ccs.SceneReader.AttachComponentType ---@return cc.Node diff --git a/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua b/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua index 2d9fd06f..533fa529 100644 --- a/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua +++ b/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua @@ -7,9 +7,6 @@ ---@field instance ccs.SpriteFrameCacheHelper local SpriteFrameCacheHelper = {} ----@return any -function SpriteFrameCacheHelper:__olua_move() end - ---Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name ---@param plistPath string ---@param imagePath string diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua index 072b5d14..6bb36dbd 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua @@ -9,9 +9,6 @@ local ActionTimelineCache = {} ---@return any function ActionTimelineCache:__gc() end ----@return any -function ActionTimelineCache:__olua_move() end - ---@param fileName string ---@return ccs.timeline.ActionTimeline function ActionTimelineCache.createAction(fileName) end diff --git a/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua b/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua index 8e99014c..4f82852b 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua @@ -12,9 +12,6 @@ local AnimationInfo = {} ---@return any function AnimationInfo:__gc() end ----@return any -function AnimationInfo:__olua_move() end - ---@return ccs.timeline.AnimationInfo ---@overload fun(otherName: string, otherStartIndex: integer, otherEndIndex: integer): ccs.timeline.AnimationInfo function AnimationInfo.new() end diff --git a/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua b/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua index a5b6482b..0cfb24ae 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua @@ -12,9 +12,6 @@ local EditBoxDelegate = {} ---@return any function EditBoxDelegate:__gc() end ----@return any -function EditBoxDelegate:__olua_move() end - ---This method is called when an edit box gains focus after keyboard is shown. ---\param editBox The edit box object that generated the event. ---@param arg1 ccui.EditBox diff --git a/addons/cclua/cocos2d/library/ccui/Helper.lua b/addons/cclua/cocos2d/library/ccui/Helper.lua index 05c57537..4a4093c3 100644 --- a/addons/cclua/cocos2d/library/ccui/Helper.lua +++ b/addons/cclua/cocos2d/library/ccui/Helper.lua @@ -9,9 +9,6 @@ local Helper = {} ---@return any function Helper:__gc() end ----@return any -function Helper:__olua_move() end - ---Change the active property of Layout's @see `LayoutComponent` ---@param active boolean # A boolean value. function Helper.changeLayoutSystemActiveState(active) end diff --git a/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua b/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua index 6e71a6bc..27d41f5b 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua @@ -10,9 +10,6 @@ local LayoutParameterProtocol = {} ---@return any function LayoutParameterProtocol:__gc() end ----@return any -function LayoutParameterProtocol:__olua_move() end - ---@return ccui.LayoutParameter # A LayoutParameter and its descendant pointer. function LayoutParameterProtocol:getLayoutParameter() end diff --git a/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua b/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua index f42bee19..fa29088f 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua @@ -11,9 +11,6 @@ local LayoutProtocol = {} ---@return any function LayoutProtocol:__gc() end ----@return any -function LayoutProtocol:__olua_move() end - ---Create a custom layout manager. --- ---@return ccui.LayoutManager # A LayoutManager descendants instance. diff --git a/addons/cclua/fairygui/library/fgui/DragDropManager.lua b/addons/cclua/fairygui/library/fgui/DragDropManager.lua index c938aa81..46f53810 100644 --- a/addons/cclua/fairygui/library/fgui/DragDropManager.lua +++ b/addons/cclua/fairygui/library/fgui/DragDropManager.lua @@ -11,9 +11,6 @@ local DragDropManager = {} ---@return any function DragDropManager:__gc() end ----@return any -function DragDropManager:__olua_move() end - function DragDropManager:cancel() end ---@return fgui.GLoader diff --git a/addons/cclua/fairygui/library/fgui/EaseManager.lua b/addons/cclua/fairygui/library/fgui/EaseManager.lua index d628d5b9..20b0e6c5 100644 --- a/addons/cclua/fairygui/library/fgui/EaseManager.lua +++ b/addons/cclua/fairygui/library/fgui/EaseManager.lua @@ -8,9 +8,6 @@ local EaseManager = {} ---@return any function EaseManager:__gc() end ----@return any -function EaseManager:__olua_move() end - ---@param easeType fgui.EaseType ---@param time number ---@param duration number diff --git a/addons/cclua/fairygui/library/fgui/EventContext.lua b/addons/cclua/fairygui/library/fgui/EventContext.lua index 09efefd0..7f4b340a 100644 --- a/addons/cclua/fairygui/library/fgui/EventContext.lua +++ b/addons/cclua/fairygui/library/fgui/EventContext.lua @@ -14,9 +14,6 @@ local EventContext = {} ---@return any function EventContext:__gc() end ----@return any -function EventContext:__olua_move() end - function EventContext:captureTouch() end ---@return any diff --git a/addons/cclua/fairygui/library/fgui/GPath.lua b/addons/cclua/fairygui/library/fgui/GPath.lua index d61cc16f..a7183738 100644 --- a/addons/cclua/fairygui/library/fgui/GPath.lua +++ b/addons/cclua/fairygui/library/fgui/GPath.lua @@ -8,7 +8,4 @@ local GPath = {} ---@return any function GPath:__gc() end ----@return any -function GPath:__olua_move() end - return GPath \ No newline at end of file diff --git a/addons/cclua/fairygui/library/fgui/GTween.lua b/addons/cclua/fairygui/library/fgui/GTween.lua index 24e4a79b..0cb1326a 100644 --- a/addons/cclua/fairygui/library/fgui/GTween.lua +++ b/addons/cclua/fairygui/library/fgui/GTween.lua @@ -8,9 +8,6 @@ local GTween = {} ---@return any function GTween:__gc() end ----@return any -function GTween:__olua_move() end - function GTween.clean() end ---@param delay number diff --git a/addons/cclua/fairygui/library/fgui/GearBase.lua b/addons/cclua/fairygui/library/fgui/GearBase.lua index dc32f7c9..7ce07019 100644 --- a/addons/cclua/fairygui/library/fgui/GearBase.lua +++ b/addons/cclua/fairygui/library/fgui/GearBase.lua @@ -9,9 +9,6 @@ local GearBase = {} ---@return any function GearBase:__gc() end ----@return any -function GearBase:__olua_move() end - ---@param owner fgui.GObject ---@param index integer ---@return fgui.GearBase diff --git a/addons/cclua/fairygui/library/fgui/HtmlElement.lua b/addons/cclua/fairygui/library/fgui/HtmlElement.lua index 430b6f0d..f0bf0627 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlElement.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlElement.lua @@ -15,9 +15,6 @@ local HtmlElement = {} ---@return any function HtmlElement:__gc() end ----@return any -function HtmlElement:__olua_move() end - ---@param attrName string ---@return any function HtmlElement:getArray(attrName) end diff --git a/addons/cclua/fairygui/library/fgui/HtmlObject.lua b/addons/cclua/fairygui/library/fgui/HtmlObject.lua index f47a42b6..ee194b9b 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlObject.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlObject.lua @@ -16,9 +16,6 @@ local HtmlObject = {} ---@return any function HtmlObject:__gc() end ----@return any -function HtmlObject:__olua_move() end - ---@param owner fgui.FUIRichText ---@param element fgui.HtmlElement function HtmlObject:create(owner, element) end diff --git a/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua b/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua index 9d48d71b..78aaa082 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua @@ -12,9 +12,6 @@ local HtmlParseOptions = {} ---@return any function HtmlParseOptions:__gc() end ----@return any -function HtmlParseOptions:__olua_move() end - ---@return fgui.HtmlParseOptions function HtmlParseOptions.new() end diff --git a/addons/cclua/fairygui/library/fgui/IHitTest.lua b/addons/cclua/fairygui/library/fgui/IHitTest.lua index 14d6b62c..c96b0beb 100644 --- a/addons/cclua/fairygui/library/fgui/IHitTest.lua +++ b/addons/cclua/fairygui/library/fgui/IHitTest.lua @@ -8,9 +8,6 @@ local IHitTest = {} ---@return any function IHitTest:__gc() end ----@return any -function IHitTest:__olua_move() end - ---@param obj fgui.GComponent ---@param localPoint cc.Vec2 ---@return boolean diff --git a/addons/cclua/fairygui/library/fgui/InputEvent.lua b/addons/cclua/fairygui/library/fgui/InputEvent.lua index 7b482164..45bc5248 100644 --- a/addons/cclua/fairygui/library/fgui/InputEvent.lua +++ b/addons/cclua/fairygui/library/fgui/InputEvent.lua @@ -22,9 +22,6 @@ local InputEvent = {} ---@return any function InputEvent:__gc() end ----@return any -function InputEvent:__olua_move() end - ---@return cc.EventMouse.MouseButton function InputEvent:getButton() end diff --git a/addons/cclua/fairygui/library/fgui/InputProcessor.lua b/addons/cclua/fairygui/library/fgui/InputProcessor.lua index dde47431..6b946d91 100644 --- a/addons/cclua/fairygui/library/fgui/InputProcessor.lua +++ b/addons/cclua/fairygui/library/fgui/InputProcessor.lua @@ -10,9 +10,6 @@ local InputProcessor = {} ---@return any function InputProcessor:__gc() end ----@return any -function InputProcessor:__olua_move() end - ---@param touchId integer ---@param target fgui.GObject function InputProcessor:addTouchMonitor(touchId, target) end diff --git a/addons/cclua/fairygui/library/fgui/Margin.lua b/addons/cclua/fairygui/library/fgui/Margin.lua index b7a8a527..15c14a04 100644 --- a/addons/cclua/fairygui/library/fgui/Margin.lua +++ b/addons/cclua/fairygui/library/fgui/Margin.lua @@ -13,9 +13,6 @@ local Margin = {} ---@return any function Margin:__gc() end ----@return any -function Margin:__olua_move() end - ---Test equality of two margins. ---@param target fgui.Margin # A Margin instance. ---@return boolean # True if two margins are equal, false otherwise. diff --git a/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua b/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua index 20fd7699..e27788d1 100644 --- a/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua +++ b/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua @@ -12,9 +12,6 @@ local PixelHitTestData = {} ---@return any function PixelHitTestData:__gc() end ----@return any -function PixelHitTestData:__olua_move() end - ---@return fgui.PixelHitTestData function PixelHitTestData.new() end diff --git a/addons/cclua/fairygui/library/fgui/RelationItem.lua b/addons/cclua/fairygui/library/fgui/RelationItem.lua index a5235179..bcce634f 100644 --- a/addons/cclua/fairygui/library/fgui/RelationItem.lua +++ b/addons/cclua/fairygui/library/fgui/RelationItem.lua @@ -10,9 +10,6 @@ local RelationItem = {} ---@return any function RelationItem:__gc() end ----@return any -function RelationItem:__olua_move() end - ---@param relationType fgui.RelationType ---@param usePercent boolean function RelationItem:add(relationType, usePercent) end diff --git a/addons/cclua/fairygui/library/fgui/Relations.lua b/addons/cclua/fairygui/library/fgui/Relations.lua index a7458c98..c8d22e14 100644 --- a/addons/cclua/fairygui/library/fgui/Relations.lua +++ b/addons/cclua/fairygui/library/fgui/Relations.lua @@ -10,9 +10,6 @@ local Relations = {} ---@return any function Relations:__gc() end ----@return any -function Relations:__olua_move() end - ---@param target fgui.GObject ---@param relationType fgui.RelationType ---@overload fun(self: fgui.Relations, target: fgui.GObject, relationType: fgui.RelationType, usePercent: boolean) diff --git a/addons/cclua/fairygui/library/fgui/TextFormat.lua b/addons/cclua/fairygui/library/fgui/TextFormat.lua index 47014b38..148835f1 100644 --- a/addons/cclua/fairygui/library/fgui/TextFormat.lua +++ b/addons/cclua/fairygui/library/fgui/TextFormat.lua @@ -28,9 +28,6 @@ local TextFormat = {} ---@return any function TextFormat:__gc() end ----@return any -function TextFormat:__olua_move() end - ---@param effectFlag integer function TextFormat:disableEffect(effectFlag) end diff --git a/addons/cclua/fairygui/library/fgui/TweenValue.lua b/addons/cclua/fairygui/library/fgui/TweenValue.lua index e9798be6..cd374d10 100644 --- a/addons/cclua/fairygui/library/fgui/TweenValue.lua +++ b/addons/cclua/fairygui/library/fgui/TweenValue.lua @@ -17,9 +17,6 @@ local TweenValue = {} ---@return any function TweenValue:__gc() end ----@return any -function TweenValue:__olua_move() end - ---@return any function TweenValue:getColor() end diff --git a/addons/cclua/fairygui/library/fgui/UIConfig.lua b/addons/cclua/fairygui/library/fgui/UIConfig.lua index 4c240840..ce2513a8 100644 --- a/addons/cclua/fairygui/library/fgui/UIConfig.lua +++ b/addons/cclua/fairygui/library/fgui/UIConfig.lua @@ -29,9 +29,6 @@ local UIConfig = {} ---@return any function UIConfig:__gc() end ----@return any -function UIConfig:__olua_move() end - ---@param aliasName string ---@param isTTF olua.bool ---@return string diff --git a/addons/cclua/fairygui/library/fgui/UIEventType.lua b/addons/cclua/fairygui/library/fgui/UIEventType.lua index e8beff1c..a8437286 100644 --- a/addons/cclua/fairygui/library/fgui/UIEventType.lua +++ b/addons/cclua/fairygui/library/fgui/UIEventType.lua @@ -38,7 +38,4 @@ local UIEventType = {} ---@return any function UIEventType:__gc() end ----@return any -function UIEventType:__olua_move() end - return UIEventType \ No newline at end of file diff --git a/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua b/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua index 3302ffd7..e8b9fcf2 100644 --- a/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua +++ b/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua @@ -8,9 +8,6 @@ local UIObjectFactory = {} ---@return any function UIObjectFactory:__gc() end ----@return any -function UIObjectFactory:__olua_move() end - ---@param pi fgui.PackageItem ---@return fgui.GObject ---@overload fun(type: fgui.ObjectType): fgui.GObject diff --git a/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua b/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua index 03dd4fa9..982d894f 100644 --- a/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua +++ b/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua @@ -19,9 +19,6 @@ function VectorTreeNode:__index(idx) end ---@param v fgui.GTreeNode[] function VectorTreeNode:__newindex(idx, v) end ----@return any -function VectorTreeNode:__olua_move() end - ---@param len integer ---@return fgui.VectorTreeNode ---@overload fun(): fgui.VectorTreeNode diff --git a/addons/cclua/olua/library/olua/bool.lua b/addons/cclua/olua/library/olua/bool.lua index 510af9cf..bcc14b95 100644 --- a/addons/cclua/olua/library/olua/bool.lua +++ b/addons/cclua/olua/library/olua/bool.lua @@ -19,9 +19,6 @@ function bool:__index(idx) end ---@param v boolean function bool:__newindex(idx, v) end ----@return any -function bool:__olua_move() end - ---@param len integer ---@return olua.bool ---@overload fun(): olua.bool diff --git a/addons/cclua/olua/library/olua/char.lua b/addons/cclua/olua/library/olua/char.lua index dd0c9463..2d50d83a 100644 --- a/addons/cclua/olua/library/olua/char.lua +++ b/addons/cclua/olua/library/olua/char.lua @@ -19,9 +19,6 @@ function char:__index(idx) end ---@param v integer function char:__newindex(idx, v) end ----@return any -function char:__olua_move() end - ---@param len integer ---@return olua.char ---@overload fun(): olua.char diff --git a/addons/cclua/olua/library/olua/double.lua b/addons/cclua/olua/library/olua/double.lua index f5cd3a93..13d93ebf 100644 --- a/addons/cclua/olua/library/olua/double.lua +++ b/addons/cclua/olua/library/olua/double.lua @@ -19,9 +19,6 @@ function double:__index(idx) end ---@param v number function double:__newindex(idx, v) end ----@return any -function double:__olua_move() end - ---@param len integer ---@return olua.double ---@overload fun(): olua.double diff --git a/addons/cclua/olua/library/olua/float.lua b/addons/cclua/olua/library/olua/float.lua index 8a3d6829..ae39cbdf 100644 --- a/addons/cclua/olua/library/olua/float.lua +++ b/addons/cclua/olua/library/olua/float.lua @@ -19,9 +19,6 @@ function float:__index(idx) end ---@param v number function float:__newindex(idx, v) end ----@return any -function float:__olua_move() end - ---@param len integer ---@return olua.float ---@overload fun(): olua.float diff --git a/addons/cclua/olua/library/olua/int.lua b/addons/cclua/olua/library/olua/int.lua index e3bdb9fc..76ac940b 100644 --- a/addons/cclua/olua/library/olua/int.lua +++ b/addons/cclua/olua/library/olua/int.lua @@ -19,9 +19,6 @@ function int:__index(idx) end ---@param v integer function int:__newindex(idx, v) end ----@return any -function int:__olua_move() end - ---@param len integer ---@return olua.int ---@overload fun(): olua.int diff --git a/addons/cclua/olua/library/olua/int16.lua b/addons/cclua/olua/library/olua/int16.lua index d43d5873..c2344881 100644 --- a/addons/cclua/olua/library/olua/int16.lua +++ b/addons/cclua/olua/library/olua/int16.lua @@ -19,9 +19,6 @@ function int16:__index(idx) end ---@param v integer function int16:__newindex(idx, v) end ----@return any -function int16:__olua_move() end - ---@param len integer ---@return olua.int16 ---@overload fun(): olua.int16 diff --git a/addons/cclua/olua/library/olua/int32.lua b/addons/cclua/olua/library/olua/int32.lua index 4e70ccb7..91999ed1 100644 --- a/addons/cclua/olua/library/olua/int32.lua +++ b/addons/cclua/olua/library/olua/int32.lua @@ -19,9 +19,6 @@ function int32:__index(idx) end ---@param v integer function int32:__newindex(idx, v) end ----@return any -function int32:__olua_move() end - ---@param len integer ---@return olua.int32 ---@overload fun(): olua.int32 diff --git a/addons/cclua/olua/library/olua/int64.lua b/addons/cclua/olua/library/olua/int64.lua index caa48b74..6b426580 100644 --- a/addons/cclua/olua/library/olua/int64.lua +++ b/addons/cclua/olua/library/olua/int64.lua @@ -19,9 +19,6 @@ function int64:__index(idx) end ---@param v integer function int64:__newindex(idx, v) end ----@return any -function int64:__olua_move() end - ---@param len integer ---@return olua.int64 ---@overload fun(): olua.int64 diff --git a/addons/cclua/olua/library/olua/int8.lua b/addons/cclua/olua/library/olua/int8.lua index 3ff28441..8452cb01 100644 --- a/addons/cclua/olua/library/olua/int8.lua +++ b/addons/cclua/olua/library/olua/int8.lua @@ -19,9 +19,6 @@ function int8:__index(idx) end ---@param v integer function int8:__newindex(idx, v) end ----@return any -function int8:__olua_move() end - ---@param len integer ---@return olua.int8 ---@overload fun(): olua.int8 diff --git a/addons/cclua/olua/library/olua/ldouble.lua b/addons/cclua/olua/library/olua/ldouble.lua index 6e2bfb42..71760820 100644 --- a/addons/cclua/olua/library/olua/ldouble.lua +++ b/addons/cclua/olua/library/olua/ldouble.lua @@ -19,9 +19,6 @@ function ldouble:__index(idx) end ---@param v number function ldouble:__newindex(idx, v) end ----@return any -function ldouble:__olua_move() end - ---@param len integer ---@return olua.ldouble ---@overload fun(): olua.ldouble diff --git a/addons/cclua/olua/library/olua/llong.lua b/addons/cclua/olua/library/olua/llong.lua index 0d359b35..6dc30265 100644 --- a/addons/cclua/olua/library/olua/llong.lua +++ b/addons/cclua/olua/library/olua/llong.lua @@ -19,9 +19,6 @@ function llong:__index(idx) end ---@param v integer function llong:__newindex(idx, v) end ----@return any -function llong:__olua_move() end - ---@param len integer ---@return olua.llong ---@overload fun(): olua.llong diff --git a/addons/cclua/olua/library/olua/long.lua b/addons/cclua/olua/library/olua/long.lua index 24268171..dd377018 100644 --- a/addons/cclua/olua/library/olua/long.lua +++ b/addons/cclua/olua/library/olua/long.lua @@ -19,9 +19,6 @@ function long:__index(idx) end ---@param v integer function long:__newindex(idx, v) end ----@return any -function long:__olua_move() end - ---@param len integer ---@return olua.long ---@overload fun(): olua.long diff --git a/addons/cclua/olua/library/olua/short.lua b/addons/cclua/olua/library/olua/short.lua index 08d0122e..f1348fa3 100644 --- a/addons/cclua/olua/library/olua/short.lua +++ b/addons/cclua/olua/library/olua/short.lua @@ -19,9 +19,6 @@ function short:__index(idx) end ---@param v integer function short:__newindex(idx, v) end ----@return any -function short:__olua_move() end - ---@param len integer ---@return olua.short ---@overload fun(): olua.short diff --git a/addons/cclua/olua/library/olua/size_t.lua b/addons/cclua/olua/library/olua/size_t.lua index ff114dec..d86c0230 100644 --- a/addons/cclua/olua/library/olua/size_t.lua +++ b/addons/cclua/olua/library/olua/size_t.lua @@ -19,9 +19,6 @@ function size_t:__index(idx) end ---@param v integer function size_t:__newindex(idx, v) end ----@return any -function size_t:__olua_move() end - ---@param len integer ---@return olua.size_t ---@overload fun(): olua.size_t diff --git a/addons/cclua/olua/library/olua/ssize_t.lua b/addons/cclua/olua/library/olua/ssize_t.lua index 62decbe5..9bae9b6f 100644 --- a/addons/cclua/olua/library/olua/ssize_t.lua +++ b/addons/cclua/olua/library/olua/ssize_t.lua @@ -19,9 +19,6 @@ function ssize_t:__index(idx) end ---@param v integer function ssize_t:__newindex(idx, v) end ----@return any -function ssize_t:__olua_move() end - ---@param len integer ---@return olua.ssize_t ---@overload fun(): olua.ssize_t diff --git a/addons/cclua/olua/library/olua/string.lua b/addons/cclua/olua/library/olua/string.lua index b67cd099..a769b7cb 100644 --- a/addons/cclua/olua/library/olua/string.lua +++ b/addons/cclua/olua/library/olua/string.lua @@ -19,9 +19,6 @@ function string:__index(idx) end ---@param v string function string:__newindex(idx, v) end ----@return any -function string:__olua_move() end - ---@param len integer ---@return olua.string ---@overload fun(): olua.string diff --git a/addons/cclua/olua/library/olua/uchar.lua b/addons/cclua/olua/library/olua/uchar.lua index 175e68fe..67717de7 100644 --- a/addons/cclua/olua/library/olua/uchar.lua +++ b/addons/cclua/olua/library/olua/uchar.lua @@ -19,9 +19,6 @@ function uchar:__index(idx) end ---@param v integer function uchar:__newindex(idx, v) end ----@return any -function uchar:__olua_move() end - ---@param len integer ---@return olua.uchar ---@overload fun(): olua.uchar diff --git a/addons/cclua/olua/library/olua/uint.lua b/addons/cclua/olua/library/olua/uint.lua index 8a88adc4..72c58232 100644 --- a/addons/cclua/olua/library/olua/uint.lua +++ b/addons/cclua/olua/library/olua/uint.lua @@ -19,9 +19,6 @@ function uint:__index(idx) end ---@param v integer function uint:__newindex(idx, v) end ----@return any -function uint:__olua_move() end - ---@param len integer ---@return olua.uint ---@overload fun(): olua.uint diff --git a/addons/cclua/olua/library/olua/uint16.lua b/addons/cclua/olua/library/olua/uint16.lua index efdc862f..dfec2df8 100644 --- a/addons/cclua/olua/library/olua/uint16.lua +++ b/addons/cclua/olua/library/olua/uint16.lua @@ -19,9 +19,6 @@ function uint16:__index(idx) end ---@param v integer function uint16:__newindex(idx, v) end ----@return any -function uint16:__olua_move() end - ---@param len integer ---@return olua.uint16 ---@overload fun(): olua.uint16 diff --git a/addons/cclua/olua/library/olua/uint32.lua b/addons/cclua/olua/library/olua/uint32.lua index fc494bdb..4b6897b3 100644 --- a/addons/cclua/olua/library/olua/uint32.lua +++ b/addons/cclua/olua/library/olua/uint32.lua @@ -19,9 +19,6 @@ function uint32:__index(idx) end ---@param v integer function uint32:__newindex(idx, v) end ----@return any -function uint32:__olua_move() end - ---@param len integer ---@return olua.uint32 ---@overload fun(): olua.uint32 diff --git a/addons/cclua/olua/library/olua/uint64.lua b/addons/cclua/olua/library/olua/uint64.lua index 5d8b40ea..0198b085 100644 --- a/addons/cclua/olua/library/olua/uint64.lua +++ b/addons/cclua/olua/library/olua/uint64.lua @@ -19,9 +19,6 @@ function uint64:__index(idx) end ---@param v integer function uint64:__newindex(idx, v) end ----@return any -function uint64:__olua_move() end - ---@param len integer ---@return olua.uint64 ---@overload fun(): olua.uint64 diff --git a/addons/cclua/olua/library/olua/uint8.lua b/addons/cclua/olua/library/olua/uint8.lua index 3dc466c2..80eeee31 100644 --- a/addons/cclua/olua/library/olua/uint8.lua +++ b/addons/cclua/olua/library/olua/uint8.lua @@ -19,9 +19,6 @@ function uint8:__index(idx) end ---@param v integer function uint8:__newindex(idx, v) end ----@return any -function uint8:__olua_move() end - ---@param len integer ---@return olua.uint8 ---@overload fun(): olua.uint8 diff --git a/addons/cclua/olua/library/olua/ullong.lua b/addons/cclua/olua/library/olua/ullong.lua index dd91fe86..083a41b8 100644 --- a/addons/cclua/olua/library/olua/ullong.lua +++ b/addons/cclua/olua/library/olua/ullong.lua @@ -19,9 +19,6 @@ function ullong:__index(idx) end ---@param v integer function ullong:__newindex(idx, v) end ----@return any -function ullong:__olua_move() end - ---@param len integer ---@return olua.ullong ---@overload fun(): olua.ullong diff --git a/addons/cclua/olua/library/olua/ulong.lua b/addons/cclua/olua/library/olua/ulong.lua index 05738148..76861c5b 100644 --- a/addons/cclua/olua/library/olua/ulong.lua +++ b/addons/cclua/olua/library/olua/ulong.lua @@ -19,9 +19,6 @@ function ulong:__index(idx) end ---@param v integer function ulong:__newindex(idx, v) end ----@return any -function ulong:__olua_move() end - ---@param len integer ---@return olua.ulong ---@overload fun(): olua.ulong diff --git a/addons/cclua/olua/library/olua/ushort.lua b/addons/cclua/olua/library/olua/ushort.lua index 5cf6a66f..b68b373f 100644 --- a/addons/cclua/olua/library/olua/ushort.lua +++ b/addons/cclua/olua/library/olua/ushort.lua @@ -19,9 +19,6 @@ function ushort:__index(idx) end ---@param v integer function ushort:__newindex(idx, v) end ----@return any -function ushort:__olua_move() end - ---@param len integer ---@return olua.ushort ---@overload fun(): olua.ushort diff --git a/addons/cclua/plugin/alipay/library/cclua/plugin/alipay.lua b/addons/cclua/plugin/alipay/library/cclua/plugin/alipay.lua index 395fbb8f..cfce6c3b 100644 --- a/addons/cclua/plugin/alipay/library/cclua/plugin/alipay.lua +++ b/addons/cclua/plugin/alipay/library/cclua/plugin/alipay.lua @@ -8,9 +8,6 @@ local alipay = {} ---@return any function alipay:__gc() end ----@return any -function alipay:__olua_move() end - ---@param event string ---@param data any function alipay.dispatch(event, data) end diff --git a/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua b/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua index eef156c4..9b972972 100644 --- a/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua +++ b/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua @@ -9,9 +9,6 @@ local apple = {} ---@return any function apple:__gc() end ----@return any -function apple:__olua_move() end - function apple.auth() end ---@return boolean diff --git a/addons/cclua/plugin/bugly/library/cclua/bugly.lua b/addons/cclua/plugin/bugly/library/cclua/bugly.lua index 7e8a49d8..e03ee0b7 100644 --- a/addons/cclua/plugin/bugly/library/cclua/bugly.lua +++ b/addons/cclua/plugin/bugly/library/cclua/bugly.lua @@ -8,9 +8,6 @@ local bugly = {} ---@return any function bugly:__gc() end ----@return any -function bugly:__olua_move() end - ---@param appid string function bugly.init(appid) end diff --git a/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua b/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua index 71fa42bb..a17e1138 100644 --- a/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua +++ b/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua @@ -8,9 +8,6 @@ local huawei = {} ---@return any function huawei:__gc() end ----@return any -function huawei:__olua_move() end - ---@param event string ---@param data any function huawei.dispatch(event, data) end diff --git a/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua b/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua index dfe6177a..06ce3d9e 100644 --- a/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua +++ b/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua @@ -8,9 +8,6 @@ local janalytics = {} ---@return any function janalytics:__gc() end ----@return any -function janalytics:__olua_move() end - function janalytics.detachAccount() end ---@param value any diff --git a/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua b/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua index eb5df78d..07becba7 100644 --- a/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua +++ b/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua @@ -9,9 +9,6 @@ local jauth = {} ---@return any function jauth:__gc() end ----@return any -function jauth:__olua_move() end - ---@return boolean function jauth.checkVerifyEnable() end diff --git a/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua b/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua index ff1840a2..701c353e 100644 --- a/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua +++ b/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua @@ -10,9 +10,6 @@ local jpush = {} ---@return any function jpush:__gc() end ----@return any -function jpush:__olua_move() end - ---@param tags string[] function jpush.addTags(tags) end diff --git a/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua b/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua index c69c484c..26d83da3 100644 --- a/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua +++ b/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua @@ -8,9 +8,6 @@ local oppo = {} ---@return any function oppo:__gc() end ----@return any -function oppo:__olua_move() end - ---@param event string ---@param data any function oppo.dispatch(event, data) end diff --git a/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua b/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua index 52525d50..6f37d914 100644 --- a/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua +++ b/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua @@ -9,9 +9,6 @@ local talkingdata = {} ---@return any function talkingdata:__gc() end ----@return any -function talkingdata:__olua_move() end - function talkingdata.backgroundSessionEnabled() end ---@return string diff --git a/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua b/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua index 852aec9b..01db279a 100644 --- a/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua +++ b/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua @@ -8,9 +8,6 @@ local vivo = {} ---@return any function vivo:__gc() end ----@return any -function vivo:__olua_move() end - ---@param event string ---@param data any function vivo.dispatch(event, data) end diff --git a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua index 3751133f..be3b9619 100644 --- a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua +++ b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua @@ -9,9 +9,6 @@ local wechat = {} ---@return any function wechat:__gc() end ----@return any -function wechat:__olua_move() end - ---@param scope string ---@param state string function wechat.auth(scope, state) end diff --git a/addons/cclua/spine/library/spine/SpineObject.lua b/addons/cclua/spine/library/spine/SpineObject.lua index 437d6739..5a33bfbe 100644 --- a/addons/cclua/spine/library/spine/SpineObject.lua +++ b/addons/cclua/spine/library/spine/SpineObject.lua @@ -8,7 +8,13 @@ local SpineObject = {} ---@return any function SpineObject:__gc() end +---@param sz integer ---@return any -function SpineObject:__olua_move() end +---@overload fun(sz: integer, file: string, line: integer): any +---@overload fun(sz: integer, ptr: any): any +---@overload fun(p: any, file: string, line: integer) +---@overload fun(p: any, mem: any) +---@overload fun(p: any) +function SpineObject.operator(sz) end return SpineObject \ No newline at end of file diff --git a/assets/src/cclua/ui/dataloader.lua b/assets/src/cclua/ui/dataloader.lua index a2349f3e..93001cc6 100644 --- a/assets/src/cclua/ui/dataloader.lua +++ b/assets/src/cclua/ui/dataloader.lua @@ -214,7 +214,7 @@ local function UILayer(self, data) end if self.cobj.setBackGroundColorType then - self.cobj:setBackGroundColorType(olua.enum(data.colorType or 0)) + self.cobj:setBackGroundColorType(data.colorType or 0) self.cobj:setBackGroundColorOpacity((data.colorAlpha or 1) * 255) self.cobj:setBackGroundColor(self.color) end diff --git a/frameworks/cclua/src/bugly/lua_bugly.cpp b/frameworks/cclua/src/bugly/lua_bugly.cpp index 32a66754..e227ffc1 100644 --- a/frameworks/cclua/src/bugly/lua_bugly.cpp +++ b/frameworks/cclua/src/bugly/lua_bugly.cpp @@ -9,23 +9,11 @@ static int _olua_module_bugly(lua_State *L); #ifdef CCLUA_BUILD_BUGLY -static int _olua_fun_cclua_bugly_LogLevel___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_bugly_LogLevel(lua_State *L) { oluacls_class(L, "cclua.bugly.LogLevel"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_bugly_LogLevel___call); oluacls_enum(L, "Debug", (lua_Integer)cclua::bugly::LogLevel::Debug); oluacls_enum(L, "Error", (lua_Integer)cclua::bugly::LogLevel::Error); oluacls_enum(L, "Info", (lua_Integer)cclua::bugly::LogLevel::Info); @@ -61,18 +49,6 @@ static int _olua_fun_cclua_bugly___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_bugly___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::bugly *)olua_toobj(L, 1, "cclua.bugly"); - olua_push_object(L, self, "cclua.bugly"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_bugly_init(lua_State *L) { olua_startinvoke(L); @@ -211,7 +187,6 @@ static int _olua_cls_cclua_bugly(lua_State *L) { oluacls_class(L, "cclua.bugly"); oluacls_func(L, "__gc", _olua_fun_cclua_bugly___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_bugly___olua_move); oluacls_func(L, "init", _olua_fun_cclua_bugly_init); oluacls_func(L, "log", _olua_fun_cclua_bugly_log); oluacls_func(L, "reportException", _olua_fun_cclua_bugly_reportException); diff --git a/frameworks/cclua/src/lua-bindings/lua_box2d.cpp b/frameworks/cclua/src/lua-bindings/lua_box2d.cpp index 1c6aac42..26b94c70 100644 --- a/frameworks/cclua/src/lua-bindings/lua_box2d.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_box2d.cpp @@ -21,16 +21,21 @@ static int _olua_fun_b2Vec2___gc(lua_State *L) return 0; } -static int _olua_fun_b2Vec2___olua_move(lua_State *L) +static int _olua_fun_b2Vec2___unm(lua_State *L) { olua_startinvoke(L); - auto self = (b2Vec2 *)olua_toobj(L, 1, "b2.Vec2"); - olua_push_object(L, self, "b2.Vec2"); + b2Vec2 *self = nullptr; + + olua_to_object(L, 1, &self, "b2.Vec2"); + + // @operator(operator-) b2Vec2 __unm() + b2Vec2 ret = self->operator-(); + int num_ret = olua_copy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); - return 1; + return num_ret; } static int _olua_fun_b2Vec2_isValid(lua_State *L) @@ -325,7 +330,7 @@ static int _olua_cls_b2_Vec2(lua_State *L) { oluacls_class(L, "b2.Vec2"); oluacls_func(L, "__gc", _olua_fun_b2Vec2___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Vec2___olua_move); + oluacls_func(L, "__unm", _olua_fun_b2Vec2___unm); oluacls_func(L, "isValid", _olua_fun_b2Vec2_isValid); oluacls_func(L, "length", _olua_fun_b2Vec2_length); oluacls_func(L, "lengthSquared", _olua_fun_b2Vec2_lengthSquared); @@ -364,16 +369,21 @@ static int _olua_fun_b2Vec3___gc(lua_State *L) return 0; } -static int _olua_fun_b2Vec3___olua_move(lua_State *L) +static int _olua_fun_b2Vec3___unm(lua_State *L) { olua_startinvoke(L); - auto self = (b2Vec3 *)olua_toobj(L, 1, "b2.Vec3"); - olua_push_object(L, self, "b2.Vec3"); + b2Vec3 *self = nullptr; + + olua_to_object(L, 1, &self, "b2.Vec3"); + + // @operator(operator-) b2Vec3 __unm() + b2Vec3 ret = self->operator-(); + int num_ret = olua_copy_object(L, ret, "b2.Vec3"); olua_endinvoke(L); - return 1; + return num_ret; } static int _olua_fun_b2Vec3_new$1(lua_State *L) @@ -643,7 +653,7 @@ static int _olua_cls_b2_Vec3(lua_State *L) { oluacls_class(L, "b2.Vec3"); oluacls_func(L, "__gc", _olua_fun_b2Vec3___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Vec3___olua_move); + oluacls_func(L, "__unm", _olua_fun_b2Vec3___unm); oluacls_func(L, "new", _olua_fun_b2Vec3_new); oluacls_func(L, "set", _olua_fun_b2Vec3_set); oluacls_func(L, "setZero", _olua_fun_b2Vec3_setZero); @@ -677,18 +687,6 @@ static int _olua_fun_b2ContactID___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactID___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactID *)olua_toobj(L, 1, "b2.ContactID"); - olua_push_object(L, self, "b2.ContactID"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2ContactID_cf$1(lua_State *L) { olua_startinvoke(L); @@ -805,7 +803,6 @@ static int _olua_cls_b2_ContactID(lua_State *L) { oluacls_class(L, "b2.ContactID"); oluacls_func(L, "__gc", _olua_fun_b2ContactID___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactID___olua_move); oluacls_prop(L, "cf", _olua_fun_b2ContactID_cf, _olua_fun_b2ContactID_cf); oluacls_prop(L, "key", _olua_fun_b2ContactID_key, _olua_fun_b2ContactID_key); @@ -835,18 +832,6 @@ static int _olua_fun_b2ContactFeature___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactFeature___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactFeature *)olua_toobj(L, 1, "b2.ContactFeature"); - olua_push_object(L, self, "b2.ContactFeature"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2ContactFeature_indexA$1(lua_State *L) { olua_startinvoke(L); @@ -1075,7 +1060,6 @@ static int _olua_cls_b2_ContactFeature(lua_State *L) { oluacls_class(L, "b2.ContactFeature"); oluacls_func(L, "__gc", _olua_fun_b2ContactFeature___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactFeature___olua_move); oluacls_prop(L, "indexA", _olua_fun_b2ContactFeature_indexA, _olua_fun_b2ContactFeature_indexA); oluacls_prop(L, "indexB", _olua_fun_b2ContactFeature_indexB, _olua_fun_b2ContactFeature_indexB); oluacls_prop(L, "typeA", _olua_fun_b2ContactFeature_typeA, _olua_fun_b2ContactFeature_typeA); @@ -1107,18 +1091,6 @@ static int _olua_fun_b2Color___gc(lua_State *L) return 0; } -static int _olua_fun_b2Color___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Color *)olua_toobj(L, 1, "b2.Color"); - olua_push_object(L, self, "b2.Color"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Color_a$1(lua_State *L) { olua_startinvoke(L); @@ -1504,7 +1476,6 @@ static int _olua_cls_b2_Color(lua_State *L) { oluacls_class(L, "b2.Color"); oluacls_func(L, "__gc", _olua_fun_b2Color___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Color___olua_move); oluacls_func(L, "new", _olua_fun_b2Color_new); oluacls_func(L, "set", _olua_fun_b2Color_set); oluacls_prop(L, "a", _olua_fun_b2Color_a, _olua_fun_b2Color_a); @@ -1538,18 +1509,6 @@ static int _olua_fun_b2FixtureUserData___gc(lua_State *L) return 0; } -static int _olua_fun_b2FixtureUserData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2FixtureUserData *)olua_toobj(L, 1, "b2.FixtureUserData"); - olua_push_object(L, self, "b2.FixtureUserData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2FixtureUserData_new(lua_State *L) { olua_startinvoke(L); @@ -1624,7 +1583,6 @@ static int _olua_cls_b2_FixtureUserData(lua_State *L) { oluacls_class(L, "b2.FixtureUserData"); oluacls_func(L, "__gc", _olua_fun_b2FixtureUserData___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2FixtureUserData___olua_move); oluacls_func(L, "new", _olua_fun_b2FixtureUserData_new); oluacls_prop(L, "pointer", _olua_fun_b2FixtureUserData_pointer, _olua_fun_b2FixtureUserData_pointer); @@ -1654,18 +1612,6 @@ static int _olua_fun_b2Filter___gc(lua_State *L) return 0; } -static int _olua_fun_b2Filter___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Filter *)olua_toobj(L, 1, "b2.Filter"); - olua_push_object(L, self, "b2.Filter"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Filter_categoryBits$1(lua_State *L) { olua_startinvoke(L); @@ -1852,7 +1798,6 @@ static int _olua_cls_b2_Filter(lua_State *L) { oluacls_class(L, "b2.Filter"); oluacls_func(L, "__gc", _olua_fun_b2Filter___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Filter___olua_move); oluacls_func(L, "new", _olua_fun_b2Filter_new); oluacls_prop(L, "categoryBits", _olua_fun_b2Filter_categoryBits, _olua_fun_b2Filter_categoryBits); oluacls_prop(L, "groupIndex", _olua_fun_b2Filter_groupIndex, _olua_fun_b2Filter_groupIndex); @@ -1884,18 +1829,6 @@ static int _olua_fun_b2ManifoldPoint___gc(lua_State *L) return 0; } -static int _olua_fun_b2ManifoldPoint___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ManifoldPoint *)olua_toobj(L, 1, "b2.ManifoldPoint"); - olua_push_object(L, self, "b2.ManifoldPoint"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2ManifoldPoint_id$1(lua_State *L) { olua_startinvoke(L); @@ -2124,7 +2057,6 @@ static int _olua_cls_b2_ManifoldPoint(lua_State *L) { oluacls_class(L, "b2.ManifoldPoint"); oluacls_func(L, "__gc", _olua_fun_b2ManifoldPoint___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ManifoldPoint___olua_move); oluacls_prop(L, "id", _olua_fun_b2ManifoldPoint_id, _olua_fun_b2ManifoldPoint_id); oluacls_prop(L, "localPoint", _olua_fun_b2ManifoldPoint_localPoint, _olua_fun_b2ManifoldPoint_localPoint); oluacls_prop(L, "normalImpulse", _olua_fun_b2ManifoldPoint_normalImpulse, _olua_fun_b2ManifoldPoint_normalImpulse); @@ -2156,18 +2088,6 @@ static int _olua_fun_b2Rot___gc(lua_State *L) return 0; } -static int _olua_fun_b2Rot___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Rot *)olua_toobj(L, 1, "b2.Rot"); - olua_push_object(L, self, "b2.Rot"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Rot_c$1(lua_State *L) { olua_startinvoke(L); @@ -2422,7 +2342,6 @@ static int _olua_cls_b2_Rot(lua_State *L) { oluacls_class(L, "b2.Rot"); oluacls_func(L, "__gc", _olua_fun_b2Rot___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Rot___olua_move); oluacls_func(L, "getAngle", _olua_fun_b2Rot_getAngle); oluacls_func(L, "getXAxis", _olua_fun_b2Rot_getXAxis); oluacls_func(L, "getYAxis", _olua_fun_b2Rot_getYAxis); @@ -2461,23 +2380,10 @@ static int _olua_fun_b2Draw___gc(lua_State *L) return 0; } -static int _olua_fun_b2Draw___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Draw *)olua_toobj(L, 1, "b2.interface.Draw"); - olua_push_object(L, self, "b2.interface.Draw"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_interface_Draw(lua_State *L) { oluacls_class(L, "b2.interface.Draw"); oluacls_func(L, "__gc", _olua_fun_b2Draw___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Draw___olua_move); return 1; } @@ -2505,23 +2411,10 @@ static int _olua_fun_b2DestructionListener___gc(lua_State *L) return 0; } -static int _olua_fun_b2DestructionListener___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2DestructionListener *)olua_toobj(L, 1, "b2.interface.DestructionListener"); - olua_push_object(L, self, "b2.interface.DestructionListener"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_interface_DestructionListener(lua_State *L) { oluacls_class(L, "b2.interface.DestructionListener"); oluacls_func(L, "__gc", _olua_fun_b2DestructionListener___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2DestructionListener___olua_move); return 1; } @@ -2549,23 +2442,10 @@ static int _olua_fun_b2ContactFilter___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactFilter___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactFilter *)olua_toobj(L, 1, "b2.interface.ContactFilter"); - olua_push_object(L, self, "b2.interface.ContactFilter"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_interface_ContactFilter(lua_State *L) { oluacls_class(L, "b2.interface.ContactFilter"); oluacls_func(L, "__gc", _olua_fun_b2ContactFilter___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactFilter___olua_move); return 1; } @@ -2593,23 +2473,10 @@ static int _olua_fun_b2ContactListener___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactListener___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactListener *)olua_toobj(L, 1, "b2.interface.ContactListener"); - olua_push_object(L, self, "b2.interface.ContactListener"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_interface_ContactListener(lua_State *L) { oluacls_class(L, "b2.interface.ContactListener"); oluacls_func(L, "__gc", _olua_fun_b2ContactListener___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactListener___olua_move); return 1; } @@ -2637,23 +2504,10 @@ static int _olua_fun_b2QueryCallback___gc(lua_State *L) return 0; } -static int _olua_fun_b2QueryCallback___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2QueryCallback *)olua_toobj(L, 1, "b2.interface.QueryCallback"); - olua_push_object(L, self, "b2.interface.QueryCallback"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_interface_QueryCallback(lua_State *L) { oluacls_class(L, "b2.interface.QueryCallback"); oluacls_func(L, "__gc", _olua_fun_b2QueryCallback___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2QueryCallback___olua_move); return 1; } @@ -2681,23 +2535,10 @@ static int _olua_fun_b2RayCastCallback___gc(lua_State *L) return 0; } -static int _olua_fun_b2RayCastCallback___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2RayCastCallback *)olua_toobj(L, 1, "b2.interface.RayCastCallback"); - olua_push_object(L, self, "b2.interface.RayCastCallback"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_interface_RayCastCallback(lua_State *L) { oluacls_class(L, "b2.interface.RayCastCallback"); oluacls_func(L, "__gc", _olua_fun_b2RayCastCallback___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2RayCastCallback___olua_move); return 1; } @@ -2768,18 +2609,6 @@ static int _olua_fun_box2d_Vec2Array___newindex(lua_State *L) return 0; } -static int _olua_fun_box2d_Vec2Array___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (box2d::Vec2Array *)olua_toobj(L, 1, "b2.Vec2Array"); - olua_push_object(L, self, "b2.Vec2Array"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_box2d_Vec2Array_buffer(lua_State *L) { olua_startinvoke(L); @@ -3077,13 +2906,13 @@ static int _olua_fun_box2d_Vec2Array_tostring(lua_State *L) olua_startinvoke(L); box2d::Vec2Array *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "b2.Vec2Array"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -3152,7 +2981,6 @@ static int _olua_cls_b2_Vec2Array(lua_State *L) oluacls_func(L, "__gc", _olua_fun_box2d_Vec2Array___gc); oluacls_func(L, "__index", _olua_fun_box2d_Vec2Array___index); oluacls_func(L, "__newindex", _olua_fun_box2d_Vec2Array___newindex); - oluacls_func(L, "__olua_move", _olua_fun_box2d_Vec2Array___olua_move); oluacls_func(L, "new", _olua_fun_box2d_Vec2Array_new); oluacls_func(L, "slice", _olua_fun_box2d_Vec2Array_slice); oluacls_func(L, "sub", _olua_fun_box2d_Vec2Array_sub); @@ -4199,23 +4027,11 @@ OLUA_LIB int luaopen_b2_RayCastCallback(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_box2d_DebugNode_Flags___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_DebugNode_Flags(lua_State *L) { oluacls_class(L, "b2.DebugNode.Flags"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_box2d_DebugNode_Flags___call); oluacls_enum(L, "AABB", (lua_Integer)box2d::DebugNode::Flags::AABB); oluacls_enum(L, "CENTER_OF_MASS", (lua_Integer)box2d::DebugNode::Flags::CENTER_OF_MASS); oluacls_enum(L, "JOINT", (lua_Integer)box2d::DebugNode::Flags::JOINT); @@ -4448,18 +4264,6 @@ static int _olua_fun_b2MassData___gc(lua_State *L) return 0; } -static int _olua_fun_b2MassData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2MassData *)olua_toobj(L, 1, "b2.MassData"); - olua_push_object(L, self, "b2.MassData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2MassData_center$1(lua_State *L) { olua_startinvoke(L); @@ -4576,7 +4380,6 @@ static int _olua_cls_b2_MassData(lua_State *L) { oluacls_class(L, "b2.MassData"); oluacls_func(L, "__gc", _olua_fun_b2MassData___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2MassData___olua_move); oluacls_prop(L, "I", _olua_fun_b2MassData_I, _olua_fun_b2MassData_I); oluacls_prop(L, "center", _olua_fun_b2MassData_center, _olua_fun_b2MassData_center); oluacls_prop(L, "mass", _olua_fun_b2MassData_mass, _olua_fun_b2MassData_mass); @@ -4607,18 +4410,6 @@ static int _olua_fun_b2Transform___gc(lua_State *L) return 0; } -static int _olua_fun_b2Transform___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Transform *)olua_toobj(L, 1, "b2.Transform"); - olua_push_object(L, self, "b2.Transform"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Transform_new$1(lua_State *L) { olua_startinvoke(L); @@ -4826,7 +4617,6 @@ static int _olua_cls_b2_Transform(lua_State *L) { oluacls_class(L, "b2.Transform"); oluacls_func(L, "__gc", _olua_fun_b2Transform___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Transform___olua_move); oluacls_func(L, "new", _olua_fun_b2Transform_new); oluacls_func(L, "set", _olua_fun_b2Transform_set); oluacls_func(L, "setIdentity", _olua_fun_b2Transform_setIdentity); @@ -4859,18 +4649,6 @@ static int _olua_fun_b2RayCastInput___gc(lua_State *L) return 0; } -static int _olua_fun_b2RayCastInput___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2RayCastInput *)olua_toobj(L, 1, "b2.RayCastInput"); - olua_push_object(L, self, "b2.RayCastInput"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2RayCastInput_maxFraction$1(lua_State *L) { olua_startinvoke(L); @@ -5043,7 +4821,6 @@ static int _olua_cls_b2_RayCastInput(lua_State *L) { oluacls_class(L, "b2.RayCastInput"); oluacls_func(L, "__gc", _olua_fun_b2RayCastInput___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2RayCastInput___olua_move); oluacls_prop(L, "maxFraction", _olua_fun_b2RayCastInput_maxFraction, _olua_fun_b2RayCastInput_maxFraction); oluacls_prop(L, "p1", _olua_fun_b2RayCastInput_p1, _olua_fun_b2RayCastInput_p1); oluacls_prop(L, "p2", _olua_fun_b2RayCastInput_p2, _olua_fun_b2RayCastInput_p2); @@ -5074,18 +4851,6 @@ static int _olua_fun_b2RayCastOutput___gc(lua_State *L) return 0; } -static int _olua_fun_b2RayCastOutput___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2RayCastOutput *)olua_toobj(L, 1, "b2.RayCastOutput"); - olua_push_object(L, self, "b2.RayCastOutput"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2RayCastOutput_fraction$1(lua_State *L) { olua_startinvoke(L); @@ -5202,7 +4967,6 @@ static int _olua_cls_b2_RayCastOutput(lua_State *L) { oluacls_class(L, "b2.RayCastOutput"); oluacls_func(L, "__gc", _olua_fun_b2RayCastOutput___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2RayCastOutput___olua_move); oluacls_prop(L, "fraction", _olua_fun_b2RayCastOutput_fraction, _olua_fun_b2RayCastOutput_fraction); oluacls_prop(L, "normal", _olua_fun_b2RayCastOutput_normal, _olua_fun_b2RayCastOutput_normal); @@ -5220,23 +4984,11 @@ OLUA_LIB int luaopen_b2_RayCastOutput(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2Shape_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_Shape_Type(lua_State *L) { oluacls_class(L, "b2.Shape.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_b2Shape_Type___call); oluacls_enum(L, "chain", (lua_Integer)b2Shape::Type::e_chain); oluacls_enum(L, "circle", (lua_Integer)b2Shape::Type::e_circle); oluacls_enum(L, "edge", (lua_Integer)b2Shape::Type::e_edge); @@ -5269,18 +5021,6 @@ static int _olua_fun_b2Shape___gc(lua_State *L) return 0; } -static int _olua_fun_b2Shape___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Shape *)olua_toobj(L, 1, "b2.Shape"); - olua_push_object(L, self, "b2.Shape"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Shape_computeAABB(lua_State *L) { olua_startinvoke(L); @@ -5407,7 +5147,6 @@ static int _olua_cls_b2_Shape(lua_State *L) { oluacls_class(L, "b2.Shape"); oluacls_func(L, "__gc", _olua_fun_b2Shape___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Shape___olua_move); oluacls_func(L, "computeAABB", _olua_fun_b2Shape_computeAABB); oluacls_func(L, "computeMass", _olua_fun_b2Shape_computeMass); oluacls_func(L, "getChildCount", _olua_fun_b2Shape_getChildCount); @@ -5812,18 +5551,6 @@ static int _olua_fun_b2BodyDef___gc(lua_State *L) return 0; } -static int _olua_fun_b2BodyDef___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2BodyDef *)olua_toobj(L, 1, "b2.BodyDef"); - olua_push_object(L, self, "b2.BodyDef"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2BodyDef_allowSleep$1(lua_State *L) { olua_startinvoke(L); @@ -6626,7 +6353,6 @@ static int _olua_cls_b2_BodyDef(lua_State *L) { oluacls_class(L, "b2.BodyDef"); oluacls_func(L, "__gc", _olua_fun_b2BodyDef___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2BodyDef___olua_move); oluacls_func(L, "new", _olua_fun_b2BodyDef_new); oluacls_prop(L, "allowSleep", _olua_fun_b2BodyDef_allowSleep, _olua_fun_b2BodyDef_allowSleep); oluacls_prop(L, "angle", _olua_fun_b2BodyDef_angle, _olua_fun_b2BodyDef_angle); @@ -6657,23 +6383,11 @@ OLUA_LIB int luaopen_b2_BodyDef(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2BodyType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_BodyType(lua_State *L) { oluacls_class(L, "b2.BodyType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_b2BodyType___call); oluacls_enum(L, "dynamicBody", (lua_Integer)b2BodyType::b2_dynamicBody); oluacls_enum(L, "kinematicBody", (lua_Integer)b2BodyType::b2_kinematicBody); oluacls_enum(L, "staticBody", (lua_Integer)b2BodyType::b2_staticBody); @@ -6692,18 +6406,6 @@ OLUA_LIB int luaopen_b2_BodyType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2Body___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Body *)olua_toobj(L, 1, "b2.Body"); - olua_push_object(L, self, "b2.Body"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Body_applyAngularImpulse(lua_State *L) { olua_startinvoke(L); @@ -7719,7 +7421,6 @@ static int _olua_fun_b2Body_setType(lua_State *L) static int _olua_cls_b2_Body(lua_State *L) { oluacls_class(L, "b2.Body"); - oluacls_func(L, "__olua_move", _olua_fun_b2Body___olua_move); oluacls_func(L, "applyAngularImpulse", _olua_fun_b2Body_applyAngularImpulse); oluacls_func(L, "applyForce", _olua_fun_b2Body_applyForce); oluacls_func(L, "applyForceToCenter", _olua_fun_b2Body_applyForceToCenter); @@ -7825,18 +7526,6 @@ static int _olua_fun_b2BodyUserData___gc(lua_State *L) return 0; } -static int _olua_fun_b2BodyUserData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2BodyUserData *)olua_toobj(L, 1, "b2.BodyUserData"); - olua_push_object(L, self, "b2.BodyUserData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2BodyUserData_new(lua_State *L) { olua_startinvoke(L); @@ -7911,7 +7600,6 @@ static int _olua_cls_b2_BodyUserData(lua_State *L) { oluacls_class(L, "b2.BodyUserData"); oluacls_func(L, "__gc", _olua_fun_b2BodyUserData___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2BodyUserData___olua_move); oluacls_func(L, "new", _olua_fun_b2BodyUserData_new); oluacls_prop(L, "pointer", _olua_fun_b2BodyUserData_pointer, _olua_fun_b2BodyUserData_pointer); @@ -7941,18 +7629,6 @@ static int _olua_fun_b2FixtureDef___gc(lua_State *L) return 0; } -static int _olua_fun_b2FixtureDef___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2FixtureDef *)olua_toobj(L, 1, "b2.FixtureDef"); - olua_push_object(L, self, "b2.FixtureDef"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2FixtureDef_density$1(lua_State *L) { olua_startinvoke(L); @@ -8419,7 +8095,6 @@ static int _olua_cls_b2_FixtureDef(lua_State *L) { oluacls_class(L, "b2.FixtureDef"); oluacls_func(L, "__gc", _olua_fun_b2FixtureDef___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2FixtureDef___olua_move); oluacls_func(L, "new", _olua_fun_b2FixtureDef_new); oluacls_prop(L, "density", _olua_fun_b2FixtureDef_density, _olua_fun_b2FixtureDef_density); oluacls_prop(L, "filter", _olua_fun_b2FixtureDef_filter, _olua_fun_b2FixtureDef_filter); @@ -8456,18 +8131,6 @@ static int _olua_fun_b2Fixture___gc(lua_State *L) return 0; } -static int _olua_fun_b2Fixture___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Fixture *)olua_toobj(L, 1, "b2.Fixture"); - olua_push_object(L, self, "b2.Fixture"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Fixture_dump(lua_State *L) { olua_startinvoke(L); @@ -8880,7 +8543,6 @@ static int _olua_cls_b2_Fixture(lua_State *L) { oluacls_class(L, "b2.Fixture"); oluacls_func(L, "__gc", _olua_fun_b2Fixture___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Fixture___olua_move); oluacls_func(L, "dump", _olua_fun_b2Fixture_dump); oluacls_func(L, "getAABB", _olua_fun_b2Fixture_getAABB); oluacls_func(L, "getBody", _olua_fun_b2Fixture_getBody); @@ -8942,18 +8604,6 @@ static int _olua_fun_b2JointDef___gc(lua_State *L) return 0; } -static int _olua_fun_b2JointDef___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2JointDef *)olua_toobj(L, 1, "b2.JointDef"); - olua_push_object(L, self, "b2.JointDef"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2JointDef_bodyA$1(lua_State *L) { olua_startinvoke(L); @@ -9252,7 +8902,6 @@ static int _olua_cls_b2_JointDef(lua_State *L) { oluacls_class(L, "b2.JointDef"); oluacls_func(L, "__gc", _olua_fun_b2JointDef___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2JointDef___olua_move); oluacls_func(L, "new", _olua_fun_b2JointDef_new); oluacls_prop(L, "bodyA", _olua_fun_b2JointDef_bodyA, _olua_fun_b2JointDef_bodyA); oluacls_prop(L, "bodyB", _olua_fun_b2JointDef_bodyB, _olua_fun_b2JointDef_bodyB); @@ -9274,23 +8923,11 @@ OLUA_LIB int luaopen_b2_JointDef(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2JointType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_JointType(lua_State *L) { oluacls_class(L, "b2.JointType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_b2JointType___call); oluacls_enum(L, "distanceJoint", (lua_Integer)b2JointType::e_distanceJoint); oluacls_enum(L, "frictionJoint", (lua_Integer)b2JointType::e_frictionJoint); oluacls_enum(L, "gearJoint", (lua_Integer)b2JointType::e_gearJoint); @@ -9317,18 +8954,6 @@ OLUA_LIB int luaopen_b2_JointType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2Joint___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Joint *)olua_toobj(L, 1, "b2.Joint"); - olua_push_object(L, self, "b2.Joint"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Joint_draw(lua_State *L) { olua_startinvoke(L); @@ -9575,7 +9200,6 @@ static int _olua_fun_b2Joint_shiftOrigin(lua_State *L) static int _olua_cls_b2_Joint(lua_State *L) { oluacls_class(L, "b2.Joint"); - oluacls_func(L, "__olua_move", _olua_fun_b2Joint___olua_move); oluacls_func(L, "draw", _olua_fun_b2Joint_draw); oluacls_func(L, "dump", _olua_fun_b2Joint_dump); oluacls_func(L, "getAnchorA", _olua_fun_b2Joint_getAnchorA); @@ -16326,18 +15950,6 @@ static int _olua_fun_b2JointEdge___gc(lua_State *L) return 0; } -static int _olua_fun_b2JointEdge___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2JointEdge *)olua_toobj(L, 1, "b2.JointEdge"); - olua_push_object(L, self, "b2.JointEdge"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2JointEdge_joint$1(lua_State *L) { olua_startinvoke(L); @@ -16566,7 +16178,6 @@ static int _olua_cls_b2_JointEdge(lua_State *L) { oluacls_class(L, "b2.JointEdge"); oluacls_func(L, "__gc", _olua_fun_b2JointEdge___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2JointEdge___olua_move); oluacls_prop(L, "joint", _olua_fun_b2JointEdge_joint, _olua_fun_b2JointEdge_joint); oluacls_prop(L, "next", _olua_fun_b2JointEdge_next, _olua_fun_b2JointEdge_next); oluacls_prop(L, "other", _olua_fun_b2JointEdge_other, _olua_fun_b2JointEdge_other); @@ -16598,18 +16209,6 @@ static int _olua_fun_b2JointUserData___gc(lua_State *L) return 0; } -static int _olua_fun_b2JointUserData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2JointUserData *)olua_toobj(L, 1, "b2.JointUserData"); - olua_push_object(L, self, "b2.JointUserData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2JointUserData_new(lua_State *L) { olua_startinvoke(L); @@ -16684,7 +16283,6 @@ static int _olua_cls_b2_JointUserData(lua_State *L) { oluacls_class(L, "b2.JointUserData"); oluacls_func(L, "__gc", _olua_fun_b2JointUserData___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2JointUserData___olua_move); oluacls_func(L, "new", _olua_fun_b2JointUserData_new); oluacls_prop(L, "pointer", _olua_fun_b2JointUserData_pointer, _olua_fun_b2JointUserData_pointer); @@ -16714,18 +16312,6 @@ static int _olua_fun_b2ContactEdge___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactEdge___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactEdge *)olua_toobj(L, 1, "b2.ContactEdge"); - olua_push_object(L, self, "b2.ContactEdge"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2ContactEdge_contact$1(lua_State *L) { olua_startinvoke(L); @@ -16954,7 +16540,6 @@ static int _olua_cls_b2_ContactEdge(lua_State *L) { oluacls_class(L, "b2.ContactEdge"); oluacls_func(L, "__gc", _olua_fun_b2ContactEdge___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactEdge___olua_move); oluacls_prop(L, "contact", _olua_fun_b2ContactEdge_contact, _olua_fun_b2ContactEdge_contact); oluacls_prop(L, "next", _olua_fun_b2ContactEdge_next, _olua_fun_b2ContactEdge_next); oluacls_prop(L, "other", _olua_fun_b2ContactEdge_other, _olua_fun_b2ContactEdge_other); @@ -16986,18 +16571,6 @@ static int _olua_fun_b2ContactManager___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactManager___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactManager *)olua_toobj(L, 1, "b2.ContactManager"); - olua_push_object(L, self, "b2.ContactManager"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2ContactManager_addPair(lua_State *L) { olua_startinvoke(L); @@ -17086,7 +16659,6 @@ static int _olua_cls_b2_ContactManager(lua_State *L) { oluacls_class(L, "b2.ContactManager"); oluacls_func(L, "__gc", _olua_fun_b2ContactManager___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactManager___olua_move); oluacls_func(L, "addPair", _olua_fun_b2ContactManager_addPair); oluacls_func(L, "collide", _olua_fun_b2ContactManager_collide); oluacls_func(L, "destroy", _olua_fun_b2ContactManager_destroy); @@ -17119,18 +16691,6 @@ static int _olua_fun_b2Profile___gc(lua_State *L) return 0; } -static int _olua_fun_b2Profile___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Profile *)olua_toobj(L, 1, "b2.Profile"); - olua_push_object(L, self, "b2.Profile"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Profile_broadphase$1(lua_State *L) { olua_startinvoke(L); @@ -17583,7 +17143,6 @@ static int _olua_cls_b2_Profile(lua_State *L) { oluacls_class(L, "b2.Profile"); oluacls_func(L, "__gc", _olua_fun_b2Profile___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Profile___olua_move); oluacls_prop(L, "broadphase", _olua_fun_b2Profile_broadphase, _olua_fun_b2Profile_broadphase); oluacls_prop(L, "collide", _olua_fun_b2Profile_collide, _olua_fun_b2Profile_collide); oluacls_prop(L, "solve", _olua_fun_b2Profile_solve, _olua_fun_b2Profile_solve); @@ -17619,18 +17178,6 @@ static int _olua_fun_b2BroadPhase___gc(lua_State *L) return 0; } -static int _olua_fun_b2BroadPhase___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2BroadPhase *)olua_toobj(L, 1, "b2.BroadPhase"); - olua_push_object(L, self, "b2.BroadPhase"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2BroadPhase_createProxy(lua_State *L) { olua_startinvoke(L); @@ -17873,7 +17420,6 @@ static int _olua_cls_b2_BroadPhase(lua_State *L) { oluacls_class(L, "b2.BroadPhase"); oluacls_func(L, "__gc", _olua_fun_b2BroadPhase___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2BroadPhase___olua_move); oluacls_func(L, "createProxy", _olua_fun_b2BroadPhase_createProxy); oluacls_func(L, "destroyProxy", _olua_fun_b2BroadPhase_destroyProxy); oluacls_func(L, "getFatAABB", _olua_fun_b2BroadPhase_getFatAABB); @@ -17918,18 +17464,6 @@ static int _olua_fun_b2AABB___gc(lua_State *L) return 0; } -static int _olua_fun_b2AABB___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2AABB *)olua_toobj(L, 1, "b2.AABB"); - olua_push_object(L, self, "b2.AABB"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2AABB_combine$1(lua_State *L) { olua_startinvoke(L); @@ -18215,7 +17749,6 @@ static int _olua_cls_b2_AABB(lua_State *L) { oluacls_class(L, "b2.AABB"); oluacls_func(L, "__gc", _olua_fun_b2AABB___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2AABB___olua_move); oluacls_func(L, "combine", _olua_fun_b2AABB_combine); oluacls_func(L, "contains", _olua_fun_b2AABB_contains); oluacls_func(L, "getCenter", _olua_fun_b2AABB_getCenter); @@ -18244,18 +17777,6 @@ OLUA_LIB int luaopen_b2_AABB(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2Contact___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Contact *)olua_toobj(L, 1, "b2.Contact"); - olua_push_object(L, self, "b2.Contact"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Contact_evaluate(lua_State *L) { olua_startinvoke(L); @@ -18641,7 +18162,6 @@ static int _olua_fun_b2Contact_setTangentSpeed(lua_State *L) static int _olua_cls_b2_Contact(lua_State *L) { oluacls_class(L, "b2.Contact"); - oluacls_func(L, "__olua_move", _olua_fun_b2Contact___olua_move); oluacls_func(L, "evaluate", _olua_fun_b2Contact_evaluate); oluacls_func(L, "getChildIndexA", _olua_fun_b2Contact_getChildIndexA); oluacls_func(L, "getChildIndexB", _olua_fun_b2Contact_getChildIndexB); @@ -18703,18 +18223,6 @@ static int _olua_fun_b2ContactImpulse___gc(lua_State *L) return 0; } -static int _olua_fun_b2ContactImpulse___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2ContactImpulse *)olua_toobj(L, 1, "b2.ContactImpulse"); - olua_push_object(L, self, "b2.ContactImpulse"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2ContactImpulse_count$1(lua_State *L) { olua_startinvoke(L); @@ -18775,7 +18283,6 @@ static int _olua_cls_b2_ContactImpulse(lua_State *L) { oluacls_class(L, "b2.ContactImpulse"); oluacls_func(L, "__gc", _olua_fun_b2ContactImpulse___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2ContactImpulse___olua_move); oluacls_prop(L, "count", _olua_fun_b2ContactImpulse_count, _olua_fun_b2ContactImpulse_count); return 1; @@ -18804,18 +18311,6 @@ static int _olua_fun_b2Manifold___gc(lua_State *L) return 0; } -static int _olua_fun_b2Manifold___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2Manifold *)olua_toobj(L, 1, "b2.Manifold"); - olua_push_object(L, self, "b2.Manifold"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2Manifold_localNormal$1(lua_State *L) { olua_startinvoke(L); @@ -19044,7 +18539,6 @@ static int _olua_cls_b2_Manifold(lua_State *L) { oluacls_class(L, "b2.Manifold"); oluacls_func(L, "__gc", _olua_fun_b2Manifold___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2Manifold___olua_move); oluacls_prop(L, "localNormal", _olua_fun_b2Manifold_localNormal, _olua_fun_b2Manifold_localNormal); oluacls_prop(L, "localPoint", _olua_fun_b2Manifold_localPoint, _olua_fun_b2Manifold_localPoint); oluacls_prop(L, "pointCount", _olua_fun_b2Manifold_pointCount, _olua_fun_b2Manifold_pointCount); @@ -19064,23 +18558,11 @@ OLUA_LIB int luaopen_b2_Manifold(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_b2Manifold_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_b2_Manifold_Type(lua_State *L) { oluacls_class(L, "b2.Manifold.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_b2Manifold_Type___call); oluacls_enum(L, "circles", (lua_Integer)b2Manifold::Type::e_circles); oluacls_enum(L, "faceA", (lua_Integer)b2Manifold::Type::e_faceA); oluacls_enum(L, "faceB", (lua_Integer)b2Manifold::Type::e_faceB); @@ -19111,18 +18593,6 @@ static int _olua_fun_b2World___gc(lua_State *L) return 0; } -static int _olua_fun_b2World___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2World *)olua_toobj(L, 1, "b2.World"); - olua_push_object(L, self, "b2.World"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2World_clearForces(lua_State *L) { olua_startinvoke(L); @@ -19864,7 +19334,6 @@ static int _olua_cls_b2_World(lua_State *L) { oluacls_class(L, "b2.World"); oluacls_func(L, "__gc", _olua_fun_b2World___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2World___olua_move); oluacls_func(L, "clearForces", _olua_fun_b2World_clearForces); oluacls_func(L, "createBody", _olua_fun_b2World_createBody); oluacls_func(L, "createJoint", _olua_fun_b2World_createJoint); @@ -19952,18 +19421,6 @@ static int _olua_fun_b2WorldManifold___gc(lua_State *L) return 0; } -static int _olua_fun_b2WorldManifold___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (b2WorldManifold *)olua_toobj(L, 1, "b2.WorldManifold"); - olua_push_object(L, self, "b2.WorldManifold"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_b2WorldManifold_initialize(lua_State *L) { olua_startinvoke(L); @@ -20050,7 +19507,6 @@ static int _olua_cls_b2_WorldManifold(lua_State *L) { oluacls_class(L, "b2.WorldManifold"); oluacls_func(L, "__gc", _olua_fun_b2WorldManifold___gc); - oluacls_func(L, "__olua_move", _olua_fun_b2WorldManifold___olua_move); oluacls_func(L, "initialize", _olua_fun_b2WorldManifold_initialize); oluacls_prop(L, "normal", _olua_fun_b2WorldManifold_normal, _olua_fun_b2WorldManifold_normal); diff --git a/frameworks/cclua/src/lua-bindings/lua_cclua.cpp b/frameworks/cclua/src/lua-bindings/lua_cclua.cpp index 5e615f51..fc16cc1f 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cclua.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cclua.cpp @@ -39,23 +39,11 @@ OLUA_LIB int luaopen_cclua_Callback(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cclua_QRCode_ECLevel___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_QRCode_ECLevel(lua_State *L) { oluacls_class(L, "cclua.QRCode.ECLevel"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_QRCode_ECLevel___call); oluacls_enum(L, "QR_ECLEVEL_H", (lua_Integer)cclua::QRCode::ECLevel::QR_ECLEVEL_H); oluacls_enum(L, "QR_ECLEVEL_L", (lua_Integer)cclua::QRCode::ECLevel::QR_ECLEVEL_L); oluacls_enum(L, "QR_ECLEVEL_M", (lua_Integer)cclua::QRCode::ECLevel::QR_ECLEVEL_M); @@ -75,23 +63,11 @@ OLUA_LIB int luaopen_cclua_QRCode_ECLevel(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cclua_QRCode_EncodeMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_QRCode_EncodeMode(lua_State *L) { oluacls_class(L, "cclua.QRCode.EncodeMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_QRCode_EncodeMode___call); oluacls_enum(L, "QR_MODE_8", (lua_Integer)cclua::QRCode::EncodeMode::QR_MODE_8); oluacls_enum(L, "QR_MODE_AN", (lua_Integer)cclua::QRCode::EncodeMode::QR_MODE_AN); oluacls_enum(L, "QR_MODE_KANJI", (lua_Integer)cclua::QRCode::EncodeMode::QR_MODE_KANJI); @@ -376,25 +352,12 @@ static int _olua_fun_cclua_permission_status___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_permission_status___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::permission::status *)olua_toobj(L, 1, "cclua.permission.status"); - olua_push_object(L, self, "cclua.permission.status"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_permission_status(lua_State *L) { oluacls_class(L, "cclua.permission.status"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); oluacls_func(L, "__gc", _olua_fun_cclua_permission_status___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_permission_status___olua_move); oluacls_const(L, "ALWAYS", cclua::permission::status::ALWAYS); oluacls_const(L, "AUTHORIZED", cclua::permission::status::AUTHORIZED); oluacls_const(L, "DENIED", cclua::permission::status::DENIED); @@ -430,25 +393,12 @@ static int _olua_fun_cclua_permission_android___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_permission_android___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::permission::android *)olua_toobj(L, 1, "cclua.permission.android"); - olua_push_object(L, self, "cclua.permission.android"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_permission_android(lua_State *L) { oluacls_class(L, "cclua.permission.android"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); oluacls_func(L, "__gc", _olua_fun_cclua_permission_android___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_permission_android___olua_move); oluacls_const(L, "ACCEPT_HANDOVER", cclua::permission::android::ACCEPT_HANDOVER); oluacls_const(L, "ACCESS_CHECKIN_PROPERTIES", cclua::permission::android::ACCESS_CHECKIN_PROPERTIES); oluacls_const(L, "ACCESS_COARSE_LOCATION", cclua::permission::android::ACCESS_COARSE_LOCATION); @@ -627,18 +577,6 @@ static int _olua_fun_cclua_permission___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_permission___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::permission *)olua_toobj(L, 1, "cclua.permission"); - olua_push_object(L, self, "cclua.permission"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_permission_get_android(lua_State *L) { olua_startinvoke(L); @@ -669,7 +607,6 @@ static int _olua_cls_cclua_permission(lua_State *L) oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); oluacls_func(L, "__gc", _olua_fun_cclua_permission___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_permission___olua_move); oluacls_prop(L, "android", _olua_fun_cclua_permission_get_android, nullptr); oluacls_prop(L, "status", _olua_fun_cclua_permission_get_status, nullptr); oluacls_const(L, "CALENDAR", cclua::permission::CALENDAR); @@ -710,18 +647,6 @@ static int _olua_fun_cclua_runtime___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_runtime___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::runtime *)olua_toobj(L, 1, "cclua.runtime"); - olua_push_object(L, self, "cclua.runtime"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_runtime_alert(lua_State *L) { olua_startinvoke(L); @@ -1506,12 +1431,12 @@ static int _olua_fun_cclua_runtime_load$1(lua_State *L) { olua_startinvoke(L); - std::string arg2; /** name */ + std::string arg1; /** name */ - olua_check_string(L, 1, &arg2); + olua_check_string(L, 1, &arg1); // static olua_Return load(lua_State *L, const std::string &name) - olua_Return ret = cclua::runtime::load(L, arg2); + olua_Return ret = cclua::runtime::load(L, arg1); olua_endinvoke(L); @@ -1522,14 +1447,14 @@ static int _olua_fun_cclua_runtime_load$2(lua_State *L) { olua_startinvoke(L); - std::string arg2; /** name */ - std::string arg3; /** feature */ + std::string arg1; /** name */ + std::string arg2; /** feature */ - olua_check_string(L, 1, &arg2); - olua_check_string(L, 2, &arg3); + olua_check_string(L, 1, &arg1); + olua_check_string(L, 2, &arg2); // static olua_Return load(lua_State *L, const std::string &name, const std::string &feature) - olua_Return ret = cclua::runtime::load(L, arg2, arg3); + olua_Return ret = cclua::runtime::load(L, arg1, arg2); olua_endinvoke(L); @@ -2044,7 +1969,6 @@ static int _olua_cls_cclua_runtime(lua_State *L) { oluacls_class(L, "cclua.runtime"); oluacls_func(L, "__gc", _olua_fun_cclua_runtime___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_runtime___olua_move); oluacls_func(L, "alert", _olua_fun_cclua_runtime_alert); oluacls_func(L, "canOpenURL", _olua_fun_cclua_runtime_canOpenURL); oluacls_func(L, "capture", _olua_fun_cclua_runtime_capture); @@ -2167,18 +2091,6 @@ static int _olua_fun_cclua_filesystem___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_filesystem___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::filesystem *)olua_toobj(L, 1, "cclua.filesystem"); - olua_push_object(L, self, "cclua.filesystem"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_filesystem_addSearchPath$1(lua_State *L) { olua_startinvoke(L); @@ -2675,7 +2587,6 @@ static int _olua_cls_cclua_filesystem(lua_State *L) { oluacls_class(L, "cclua.filesystem"); oluacls_func(L, "__gc", _olua_fun_cclua_filesystem___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_filesystem___olua_move); oluacls_func(L, "addSearchPath", _olua_fun_cclua_filesystem_addSearchPath); oluacls_func(L, "copy", _olua_fun_cclua_filesystem_copy); oluacls_func(L, "createDirectory", _olua_fun_cclua_filesystem_createDirectory); @@ -2729,18 +2640,6 @@ static int _olua_fun_cclua_preferences___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_preferences___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::preferences *)olua_toobj(L, 1, "cclua.preferences"); - olua_push_object(L, self, "cclua.preferences"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_preferences_deleteKey(lua_State *L) { olua_startinvoke(L); @@ -3158,7 +3057,6 @@ static int _olua_cls_cclua_preferences(lua_State *L) { oluacls_class(L, "cclua.preferences"); oluacls_func(L, "__gc", _olua_fun_cclua_preferences___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_preferences___olua_move); oluacls_func(L, "deleteKey", _olua_fun_cclua_preferences_deleteKey); oluacls_func(L, "flush", _olua_fun_cclua_preferences_flush); oluacls_func(L, "getBoolean", _olua_fun_cclua_preferences_getBoolean); @@ -3198,18 +3096,6 @@ static int _olua_fun_cclua_timer___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_timer___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::timer *)olua_toobj(L, 1, "cclua.timer"); - olua_push_object(L, self, "cclua.timer"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_timer_createTag(lua_State *L) { olua_startinvoke(L); @@ -3384,7 +3270,6 @@ static int _olua_cls_cclua_timer(lua_State *L) { oluacls_class(L, "cclua.timer"); oluacls_func(L, "__gc", _olua_fun_cclua_timer___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_timer___olua_move); oluacls_func(L, "createTag", _olua_fun_cclua_timer_createTag); oluacls_func(L, "delay", _olua_fun_cclua_timer_delay); oluacls_func(L, "delayWithTag", _olua_fun_cclua_timer_delayWithTag); @@ -3418,18 +3303,6 @@ static int _olua_fun_cclua_window___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_window___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::window *)olua_toobj(L, 1, "cclua.window"); - olua_push_object(L, self, "cclua.window"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_window_convertToCameraSpace$1(lua_State *L) { olua_startinvoke(L); @@ -3657,7 +3530,6 @@ static int _olua_cls_cclua_window(lua_State *L) { oluacls_class(L, "cclua.window"); oluacls_func(L, "__gc", _olua_fun_cclua_window___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_window___olua_move); oluacls_func(L, "convertToCameraSpace", _olua_fun_cclua_window_convertToCameraSpace); oluacls_func(L, "getDesignSize", _olua_fun_cclua_window_getDesignSize); oluacls_func(L, "getFrameSize", _olua_fun_cclua_window_getFrameSize); @@ -3696,18 +3568,6 @@ static int _olua_fun_cclua_downloader___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_downloader___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::downloader *)olua_toobj(L, 1, "cclua.downloader"); - olua_push_object(L, self, "cclua.downloader"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_downloader_end_(lua_State *L) { olua_startinvoke(L); @@ -3878,7 +3738,6 @@ static int _olua_cls_cclua_downloader(lua_State *L) { oluacls_class(L, "cclua.downloader"); oluacls_func(L, "__gc", _olua_fun_cclua_downloader___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_downloader___olua_move); oluacls_func(L, "end_", _olua_fun_cclua_downloader_end_); oluacls_func(L, "init", _olua_fun_cclua_downloader_init); oluacls_func(L, "load", _olua_fun_cclua_downloader_load); @@ -4011,23 +3870,11 @@ OLUA_LIB int luaopen_cclua_Container(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cclua_XMLHttpRequest_ResponseType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_XMLHttpRequest_ResponseType(lua_State *L) { oluacls_class(L, "cclua.XMLHttpRequest.ResponseType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_XMLHttpRequest_ResponseType___call); oluacls_enum(L, "ARRAY_BUFFER", (lua_Integer)cclua::XMLHttpRequest::ResponseType::ARRAY_BUFFER); oluacls_enum(L, "BLOB", (lua_Integer)cclua::XMLHttpRequest::ResponseType::BLOB); oluacls_enum(L, "DOCUMENT", (lua_Integer)cclua::XMLHttpRequest::ResponseType::DOCUMENT); @@ -4600,23 +4447,11 @@ OLUA_LIB int luaopen_cclua_XMLHttpRequest(lua_State *L) OLUA_END_DECLS #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -static int _olua_fun_cclua_MP3Encoder_VBRMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_MP3Encoder_VBRMode(lua_State *L) { oluacls_class(L, "cclua.MP3Encoder.VBRMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_MP3Encoder_VBRMode___call); oluacls_enum(L, "ABR", (lua_Integer)cclua::MP3Encoder::VBRMode::ABR); oluacls_enum(L, "DEFAULT", (lua_Integer)cclua::MP3Encoder::VBRMode::DEFAULT); oluacls_enum(L, "MAX_INDICATOR", (lua_Integer)cclua::MP3Encoder::VBRMode::MAX_INDICATOR); @@ -4641,23 +4476,11 @@ OLUA_END_DECLS #endif #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -static int _olua_fun_cclua_MP3Encoder_MPEGMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_MP3Encoder_MPEGMode(lua_State *L) { oluacls_class(L, "cclua.MP3Encoder.MPEGMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_MP3Encoder_MPEGMode___call); oluacls_enum(L, "DUAL_CHANNEL", (lua_Integer)cclua::MP3Encoder::MPEGMode::DUAL_CHANNEL); oluacls_enum(L, "JOINT_STEREO", (lua_Integer)cclua::MP3Encoder::MPEGMode::JOINT_STEREO); oluacls_enum(L, "MAX_INDICATOR", (lua_Integer)cclua::MP3Encoder::MPEGMode::MAX_INDICATOR); @@ -7384,18 +7207,6 @@ static int _olua_fun_cclua_microphone___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_microphone___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::microphone *)olua_toobj(L, 1, "cclua.microphone"); - olua_push_object(L, self, "cclua.microphone"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_microphone_dispatch(lua_State *L) { olua_startinvoke(L); @@ -7500,7 +7311,6 @@ static int _olua_cls_cclua_microphone(lua_State *L) { oluacls_class(L, "cclua.microphone"); oluacls_func(L, "__gc", _olua_fun_cclua_microphone___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_microphone___olua_move); oluacls_func(L, "dispatch", _olua_fun_cclua_microphone_dispatch); oluacls_func(L, "isRunning", _olua_fun_cclua_microphone_isRunning); oluacls_func(L, "setDispatcher", _olua_fun_cclua_microphone_setDispatcher); @@ -7538,18 +7348,6 @@ static int _olua_fun_cclua_photo___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_photo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::photo *)olua_toobj(L, 1, "cclua.photo"); - olua_push_object(L, self, "cclua.photo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_photo_dispatch(lua_State *L) { olua_startinvoke(L); @@ -7669,7 +7467,6 @@ static int _olua_cls_cclua_photo(lua_State *L) { oluacls_class(L, "cclua.photo"); oluacls_func(L, "__gc", _olua_fun_cclua_photo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_photo___olua_move); oluacls_func(L, "dispatch", _olua_fun_cclua_photo_dispatch); oluacls_func(L, "select", _olua_fun_cclua_photo_select); oluacls_func(L, "selectAvatar", _olua_fun_cclua_photo_selectAvatar); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp index 351d4e24..5667addf 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp @@ -17,23 +17,11 @@ static const std::string makeScheduleCallbackTag(const std::string &key) return "schedule." + key; } -static int _olua_fun_cocos2d_RenderTargetFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_RenderTargetFlag(lua_State *L) { oluacls_class(L, "cc.RenderTargetFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_RenderTargetFlag___call); oluacls_enum(L, "ALL", (lua_Integer)cocos2d::RenderTargetFlag::ALL); oluacls_enum(L, "COLOR", (lua_Integer)cocos2d::RenderTargetFlag::COLOR); oluacls_enum(L, "DEPTH", (lua_Integer)cocos2d::RenderTargetFlag::DEPTH); @@ -53,23 +41,11 @@ OLUA_LIB int luaopen_cc_RenderTargetFlag(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ClearFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_ClearFlag(lua_State *L) { oluacls_class(L, "cc.ClearFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ClearFlag___call); oluacls_enum(L, "ALL", (lua_Integer)cocos2d::ClearFlag::ALL); oluacls_enum(L, "COLOR", (lua_Integer)cocos2d::ClearFlag::COLOR); oluacls_enum(L, "DEPTH", (lua_Integer)cocos2d::ClearFlag::DEPTH); @@ -90,23 +66,11 @@ OLUA_LIB int luaopen_cc_ClearFlag(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_MATRIX_STACK_TYPE___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_MATRIX_STACK_TYPE(lua_State *L) { oluacls_class(L, "cc.MATRIX_STACK_TYPE"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_MATRIX_STACK_TYPE___call); oluacls_enum(L, "MATRIX_STACK_MODELVIEW", (lua_Integer)cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); oluacls_enum(L, "MATRIX_STACK_PROJECTION", (lua_Integer)cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); oluacls_enum(L, "MATRIX_STACK_TEXTURE", (lua_Integer)cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_TEXTURE); @@ -125,27 +89,13 @@ OLUA_LIB int luaopen_cc_MATRIX_STACK_TYPE(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Director_Projection___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Director_Projection(lua_State *L) { oluacls_class(L, "cc.Director.Projection"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Director_Projection___call); oluacls_enum(L, "CUSTOM", (lua_Integer)cocos2d::Director::Projection::CUSTOM); oluacls_enum(L, "DEFAULT", (lua_Integer)cocos2d::Director::Projection::DEFAULT); - oluacls_enum(L, "_2D", (lua_Integer)cocos2d::Director::Projection::_2D); - oluacls_enum(L, "_3D", (lua_Integer)cocos2d::Director::Projection::_3D); return 1; } @@ -161,18 +111,6 @@ OLUA_LIB int luaopen_cc_Director_Projection(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_UserDefault___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::UserDefault *)olua_toobj(L, 1, "cc.UserDefault"); - olua_push_object(L, self, "cc.UserDefault"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_UserDefault_deleteValueForKey(lua_State *L) { olua_startinvoke(L); @@ -759,7 +697,6 @@ static int _olua_fun_cocos2d_UserDefault_setStringForKey(lua_State *L) static int _olua_cls_cc_UserDefault(lua_State *L) { oluacls_class(L, "cc.UserDefault"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_UserDefault___olua_move); oluacls_func(L, "deleteValueForKey", _olua_fun_cocos2d_UserDefault_deleteValueForKey); oluacls_func(L, "destroyInstance", _olua_fun_cocos2d_UserDefault_destroyInstance); oluacls_func(L, "flush", _olua_fun_cocos2d_UserDefault_flush); @@ -805,18 +742,6 @@ static int _olua_fun_cocos2d_Ref___gc(lua_State *L) return cclua_ccobjgc(L); } -static int _olua_fun_cocos2d_Ref___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Ref *)olua_toobj(L, 1, "cc.Ref"); - olua_push_object(L, self, "cc.Ref"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Ref_getReferenceCount(lua_State *L) { olua_startinvoke(L); @@ -838,7 +763,6 @@ static int _olua_cls_cc_Ref(lua_State *L) { oluacls_class(L, "cc.Ref"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Ref___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Ref___olua_move); oluacls_func(L, "getReferenceCount", _olua_fun_cocos2d_Ref_getReferenceCount); oluacls_prop(L, "referenceCount", _olua_fun_cocos2d_Ref_getReferenceCount, nullptr); @@ -868,18 +792,6 @@ static int _olua_fun_cocos2d_Clonable___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Clonable___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Clonable *)olua_toobj(L, 1, "cc.Clonable"); - olua_push_object(L, self, "cc.Clonable"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Clonable_clone(lua_State *L) { olua_startinvoke(L); @@ -901,7 +813,6 @@ static int _olua_cls_cc_Clonable(lua_State *L) { oluacls_class(L, "cc.Clonable"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Clonable___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Clonable___olua_move); oluacls_func(L, "clone", _olua_fun_cocos2d_Clonable_clone); return 1; @@ -4491,23 +4402,11 @@ OLUA_LIB int luaopen_cc_EventDispatcher(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_EventListener_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_EventListener_Type(lua_State *L) { oluacls_class(L, "cc.EventListener.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_EventListener_Type___call); oluacls_enum(L, "ACCELERATION", (lua_Integer)cocos2d::EventListener::Type::ACCELERATION); oluacls_enum(L, "CUSTOM", (lua_Integer)cocos2d::EventListener::Type::CUSTOM); oluacls_enum(L, "FOCUS", (lua_Integer)cocos2d::EventListener::Type::FOCUS); @@ -6583,23 +6482,11 @@ OLUA_LIB int luaopen_cc_EventListenerMouse(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Event_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Event_Type(lua_State *L) { oluacls_class(L, "cc.Event.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Event_Type___call); oluacls_enum(L, "ACCELERATION", (lua_Integer)cocos2d::Event::Type::ACCELERATION); oluacls_enum(L, "CUSTOM", (lua_Integer)cocos2d::Event::Type::CUSTOM); oluacls_enum(L, "FOCUS", (lua_Integer)cocos2d::Event::Type::FOCUS); @@ -7428,23 +7315,11 @@ OLUA_LIB int luaopen_cc_EventListenerController(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_EventTouch_EventCode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_EventTouch_EventCode(lua_State *L) { oluacls_class(L, "cc.EventTouch.EventCode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_EventTouch_EventCode___call); oluacls_enum(L, "BEGAN", (lua_Integer)cocos2d::EventTouch::EventCode::BEGAN); oluacls_enum(L, "CANCELLED", (lua_Integer)cocos2d::EventTouch::EventCode::CANCELLED); oluacls_enum(L, "ENDED", (lua_Integer)cocos2d::EventTouch::EventCode::ENDED); @@ -7693,23 +7568,11 @@ OLUA_LIB int luaopen_cc_EventFocus(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_EventMouse_MouseEventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_EventMouse_MouseEventType(lua_State *L) { oluacls_class(L, "cc.EventMouse.MouseEventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_EventMouse_MouseEventType___call); oluacls_enum(L, "MOUSE_DOWN", (lua_Integer)cocos2d::EventMouse::MouseEventType::MOUSE_DOWN); oluacls_enum(L, "MOUSE_MOVE", (lua_Integer)cocos2d::EventMouse::MouseEventType::MOUSE_MOVE); oluacls_enum(L, "MOUSE_NONE", (lua_Integer)cocos2d::EventMouse::MouseEventType::MOUSE_NONE); @@ -7730,23 +7593,11 @@ OLUA_LIB int luaopen_cc_EventMouse_MouseEventType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_EventMouse_MouseButton___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_EventMouse_MouseButton(lua_State *L) { oluacls_class(L, "cc.EventMouse.MouseButton"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_EventMouse_MouseButton___call); oluacls_enum(L, "BUTTON_4", (lua_Integer)cocos2d::EventMouse::MouseButton::BUTTON_4); oluacls_enum(L, "BUTTON_5", (lua_Integer)cocos2d::EventMouse::MouseButton::BUTTON_5); oluacls_enum(L, "BUTTON_6", (lua_Integer)cocos2d::EventMouse::MouseButton::BUTTON_6); @@ -8097,23 +7948,11 @@ OLUA_LIB int luaopen_cc_EventMouse(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_EventKeyboard_KeyCode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_EventKeyboard_KeyCode(lua_State *L) { oluacls_class(L, "cc.EventKeyboard.KeyCode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_EventKeyboard_KeyCode___call); oluacls_enum(L, "KEY_0", (lua_Integer)cocos2d::EventKeyboard::KeyCode::KEY_0); oluacls_enum(L, "KEY_1", (lua_Integer)cocos2d::EventKeyboard::KeyCode::KEY_1); oluacls_enum(L, "KEY_2", (lua_Integer)cocos2d::EventKeyboard::KeyCode::KEY_2); @@ -8299,23 +8138,11 @@ OLUA_LIB int luaopen_cc_EventKeyboard_KeyCode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Touch_DispatchMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Touch_DispatchMode(lua_State *L) { oluacls_class(L, "cc.Touch.DispatchMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Touch_DispatchMode___call); oluacls_enum(L, "ALL_AT_ONCE", (lua_Integer)cocos2d::Touch::DispatchMode::ALL_AT_ONCE); oluacls_enum(L, "ONE_BY_ONE", (lua_Integer)cocos2d::Touch::DispatchMode::ONE_BY_ONE); @@ -8333,23 +8160,11 @@ OLUA_LIB int luaopen_cc_Touch_DispatchMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_EventController_ControllerEventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_EventController_ControllerEventType(lua_State *L) { oluacls_class(L, "cc.EventController.ControllerEventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_EventController_ControllerEventType___call); oluacls_enum(L, "AXIS_STATUS_CHANGED", (lua_Integer)cocos2d::EventController::ControllerEventType::AXIS_STATUS_CHANGED); oluacls_enum(L, "BUTTON_STATUS_CHANGED", (lua_Integer)cocos2d::EventController::ControllerEventType::BUTTON_STATUS_CHANGED); oluacls_enum(L, "CONNECTION", (lua_Integer)cocos2d::EventController::ControllerEventType::CONNECTION); @@ -8861,23 +8676,11 @@ OLUA_LIB int luaopen_cc_Touch(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Controller_Key___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Controller_Key(lua_State *L) { oluacls_class(L, "cc.Controller.Key"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Controller_Key___call); oluacls_enum(L, "AXIS_LEFT_TRIGGER", (lua_Integer)cocos2d::Controller::Key::AXIS_LEFT_TRIGGER); oluacls_enum(L, "AXIS_RIGHT_TRIGGER", (lua_Integer)cocos2d::Controller::Key::AXIS_RIGHT_TRIGGER); oluacls_enum(L, "BUTTON_A", (lua_Integer)cocos2d::Controller::Key::BUTTON_A); @@ -8919,18 +8722,6 @@ OLUA_LIB int luaopen_cc_Controller_Key(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Controller___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Controller *)olua_toobj(L, 1, "cc.Controller"); - olua_push_object(L, self, "cc.Controller"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Controller_getAllController(lua_State *L) { olua_startinvoke(L); @@ -9112,7 +8903,6 @@ static int _olua_fun_cocos2d_Controller_stopDiscoveryController(lua_State *L) static int _olua_cls_cc_Controller(lua_State *L) { oluacls_class(L, "cc.Controller"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Controller___olua_move); oluacls_func(L, "getAllController", _olua_fun_cocos2d_Controller_getAllController); oluacls_func(L, "getControllerByDeviceId", _olua_fun_cocos2d_Controller_getControllerByDeviceId); oluacls_func(L, "getControllerByTag", _olua_fun_cocos2d_Controller_getControllerByTag); @@ -9157,18 +8947,6 @@ static int _olua_fun_cocos2d_AudioProfile___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_AudioProfile___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::AudioProfile *)olua_toobj(L, 1, "cc.AudioProfile"); - olua_push_object(L, self, "cc.AudioProfile"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_AudioProfile_maxInstances$1(lua_State *L) { olua_startinvoke(L); @@ -9355,7 +9133,6 @@ static int _olua_cls_cc_AudioProfile(lua_State *L) { oluacls_class(L, "cc.AudioProfile"); oluacls_func(L, "__gc", _olua_fun_cocos2d_AudioProfile___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_AudioProfile___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_AudioProfile_new); oluacls_prop(L, "maxInstances", _olua_fun_cocos2d_AudioProfile_maxInstances, _olua_fun_cocos2d_AudioProfile_maxInstances); oluacls_prop(L, "minDelay", _olua_fun_cocos2d_AudioProfile_minDelay, _olua_fun_cocos2d_AudioProfile_minDelay); @@ -9375,23 +9152,11 @@ OLUA_LIB int luaopen_cc_AudioProfile(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_AudioEngine_AudioState___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_AudioEngine_AudioState(lua_State *L) { oluacls_class(L, "cc.AudioEngine.AudioState"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_AudioEngine_AudioState___call); oluacls_enum(L, "ERROR", (lua_Integer)cocos2d::AudioEngine::AudioState::ERROR); oluacls_enum(L, "INITIALIZING", (lua_Integer)cocos2d::AudioEngine::AudioState::INITIALIZING); oluacls_enum(L, "PAUSED", (lua_Integer)cocos2d::AudioEngine::AudioState::PAUSED); @@ -9450,18 +9215,6 @@ static int _olua_fun_cocos2d_AudioEngine___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_AudioEngine___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::AudioEngine *)olua_toobj(L, 1, "cc.AudioEngine"); - olua_push_object(L, self, "cc.AudioEngine"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_AudioEngine_end_(lua_State *L) { olua_startinvoke(L); @@ -10179,7 +9932,6 @@ static int _olua_cls_cc_AudioEngine(lua_State *L) { oluacls_class(L, "cc.AudioEngine"); oluacls_func(L, "__gc", _olua_fun_cocos2d_AudioEngine___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_AudioEngine___olua_move); oluacls_func(L, "end_", _olua_fun_cocos2d_AudioEngine_end_); oluacls_func(L, "getCurrentTime", _olua_fun_cocos2d_AudioEngine_getCurrentTime); oluacls_func(L, "getDefaultProfile", _olua_fun_cocos2d_AudioEngine_getDefaultProfile); @@ -10229,23 +9981,11 @@ OLUA_LIB int luaopen_cc_AudioEngine(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ApplicationProtocol_Platform___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_ApplicationProtocol_Platform(lua_State *L) { oluacls_class(L, "cc.ApplicationProtocol.Platform"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ApplicationProtocol_Platform___call); oluacls_enum(L, "OS_ANDROID", (lua_Integer)cocos2d::ApplicationProtocol::Platform::OS_ANDROID); oluacls_enum(L, "OS_IPAD", (lua_Integer)cocos2d::ApplicationProtocol::Platform::OS_IPAD); oluacls_enum(L, "OS_IPHONE", (lua_Integer)cocos2d::ApplicationProtocol::Platform::OS_IPHONE); @@ -10267,23 +10007,11 @@ OLUA_LIB int luaopen_cc_ApplicationProtocol_Platform(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_LanguageType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_LanguageType(lua_State *L) { oluacls_class(L, "cc.LanguageType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_LanguageType___call); oluacls_enum(L, "ARABIC", (lua_Integer)cocos2d::LanguageType::ARABIC); oluacls_enum(L, "BELARUSIAN", (lua_Integer)cocos2d::LanguageType::BELARUSIAN); oluacls_enum(L, "BULGARIAN", (lua_Integer)cocos2d::LanguageType::BULGARIAN); @@ -10331,18 +10059,6 @@ static int _olua_fun_cocos2d_ApplicationProtocol___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ApplicationProtocol___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ApplicationProtocol *)olua_toobj(L, 1, "cc.ApplicationProtocol"); - olua_push_object(L, self, "cc.ApplicationProtocol"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ApplicationProtocol_applicationDidEnterBackground(lua_State *L) { olua_startinvoke(L); @@ -10517,7 +10233,6 @@ static int _olua_cls_cc_ApplicationProtocol(lua_State *L) { oluacls_class(L, "cc.ApplicationProtocol"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ApplicationProtocol___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ApplicationProtocol___olua_move); oluacls_func(L, "applicationDidEnterBackground", _olua_fun_cocos2d_ApplicationProtocol_applicationDidEnterBackground); oluacls_func(L, "applicationDidFinishLaunching", _olua_fun_cocos2d_ApplicationProtocol_applicationDidFinishLaunching); oluacls_func(L, "applicationWillEnterForeground", _olua_fun_cocos2d_ApplicationProtocol_applicationWillEnterForeground); @@ -10610,18 +10325,6 @@ static int _olua_fun_cocos2d_Device___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Device___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Device *)olua_toobj(L, 1, "cc.Device"); - olua_push_object(L, self, "cc.Device"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Device_getDPI(lua_State *L) { olua_startinvoke(L); @@ -10703,7 +10406,6 @@ static int _olua_cls_cc_Device(lua_State *L) { oluacls_class(L, "cc.Device"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Device___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Device___olua_move); oluacls_func(L, "getDPI", _olua_fun_cocos2d_Device_getDPI); oluacls_func(L, "setAccelerometerEnabled", _olua_fun_cocos2d_Device_setAccelerometerEnabled); oluacls_func(L, "setAccelerometerInterval", _olua_fun_cocos2d_Device_setAccelerometerInterval); @@ -10737,18 +10439,6 @@ static int _olua_fun_cocos2d_ResizableBuffer___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ResizableBuffer___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ResizableBuffer *)olua_toobj(L, 1, "cc.ResizableBuffer"); - olua_push_object(L, self, "cc.ResizableBuffer"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ResizableBuffer_buffer(lua_State *L) { olua_startinvoke(L); @@ -10788,7 +10478,6 @@ static int _olua_cls_cc_ResizableBuffer(lua_State *L) { oluacls_class(L, "cc.ResizableBuffer"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ResizableBuffer___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ResizableBuffer___olua_move); oluacls_func(L, "buffer", _olua_fun_cocos2d_ResizableBuffer_buffer); oluacls_func(L, "resize", _olua_fun_cocos2d_ResizableBuffer_resize); @@ -10806,23 +10495,11 @@ OLUA_LIB int luaopen_cc_ResizableBuffer(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_FileUtils_Status___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_FileUtils_Status(lua_State *L) { oluacls_class(L, "cc.FileUtils.Status"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_FileUtils_Status___call); oluacls_enum(L, "NotExists", (lua_Integer)cocos2d::FileUtils::Status::NotExists); oluacls_enum(L, "NotInitialized", (lua_Integer)cocos2d::FileUtils::Status::NotInitialized); oluacls_enum(L, "NotRegularFileType", (lua_Integer)cocos2d::FileUtils::Status::NotRegularFileType); @@ -10858,18 +10535,6 @@ static int _olua_fun_cocos2d_FileUtils___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_FileUtils___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::FileUtils *)olua_toobj(L, 1, "cc.FileUtils"); - olua_push_object(L, self, "cc.FileUtils"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_FileUtils_addSearchPath$1(lua_State *L) { olua_startinvoke(L); @@ -12916,7 +12581,6 @@ static int _olua_cls_cc_FileUtils(lua_State *L) { oluacls_class(L, "cc.FileUtils"); oluacls_func(L, "__gc", _olua_fun_cocos2d_FileUtils___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_FileUtils___olua_move); oluacls_func(L, "addSearchPath", _olua_fun_cocos2d_FileUtils_addSearchPath); oluacls_func(L, "addSearchResolutionsOrder", _olua_fun_cocos2d_FileUtils_addSearchResolutionsOrder); oluacls_func(L, "createDirectory", _olua_fun_cocos2d_FileUtils_createDirectory); @@ -12989,23 +12653,11 @@ OLUA_LIB int luaopen_cc_FileUtils(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_ResolutionPolicy___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_ResolutionPolicy(lua_State *L) { oluacls_class(L, "cc.ResolutionPolicy"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_ResolutionPolicy___call); oluacls_enum(L, "EXACT_FIT", (lua_Integer)ResolutionPolicy::EXACT_FIT); oluacls_enum(L, "FIXED_HEIGHT", (lua_Integer)ResolutionPolicy::FIXED_HEIGHT); oluacls_enum(L, "FIXED_WIDTH", (lua_Integer)ResolutionPolicy::FIXED_WIDTH); @@ -13813,23 +13465,11 @@ OLUA_LIB int luaopen_cc_GLViewImpl(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Image_Format___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Image_Format(lua_State *L) { oluacls_class(L, "cc.Image.Format"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Image_Format___call); oluacls_enum(L, "ATITC", (lua_Integer)cocos2d::Image::Format::ATITC); oluacls_enum(L, "ETC", (lua_Integer)cocos2d::Image::Format::ETC); oluacls_enum(L, "JPG", (lua_Integer)cocos2d::Image::Format::JPG); @@ -14383,23 +14023,11 @@ OLUA_LIB int luaopen_cc_Image(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Properties_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Properties_Type(lua_State *L) { oluacls_class(L, "cc.Properties.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Properties_Type___call); oluacls_enum(L, "MATRIX", (lua_Integer)cocos2d::Properties::Type::MATRIX); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::Properties::Type::NONE); oluacls_enum(L, "NUMBER", (lua_Integer)cocos2d::Properties::Type::NUMBER); @@ -14434,18 +14062,6 @@ static int _olua_fun_cocos2d_Properties___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Properties___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Properties *)olua_toobj(L, 1, "cc.Properties"); - olua_push_object(L, self, "cc.Properties"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Properties_createNonRefCounted(lua_State *L) { olua_startinvoke(L); @@ -15494,7 +15110,6 @@ static int _olua_cls_cc_Properties(lua_State *L) { oluacls_class(L, "cc.Properties"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Properties___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Properties___olua_move); oluacls_func(L, "createNonRefCounted", _olua_fun_cocos2d_Properties_createNonRefCounted); oluacls_func(L, "exists", _olua_fun_cocos2d_Properties_exists); oluacls_func(L, "getBool", _olua_fun_cocos2d_Properties_getBool); @@ -15870,18 +15485,6 @@ static int _olua_fun_cocos2d_Renderer___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Renderer___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Renderer *)olua_toobj(L, 1, "cc.Renderer"); - olua_push_object(L, self, "cc.Renderer"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Renderer_addCommand$1(lua_State *L) { olua_startinvoke(L); @@ -16879,7 +16482,6 @@ static int _olua_cls_cc_Renderer(lua_State *L) { oluacls_class(L, "cc.Renderer"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Renderer___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Renderer___olua_move); oluacls_func(L, "addCommand", _olua_fun_cocos2d_Renderer_addCommand); oluacls_func(L, "addDrawnBatches", _olua_fun_cocos2d_Renderer_addDrawnBatches); oluacls_func(L, "addDrawnVertices", _olua_fun_cocos2d_Renderer_addDrawnVertices); @@ -16975,23 +16577,11 @@ OLUA_LIB int luaopen_cc_Renderer(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_RenderCommand_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_RenderCommand_Type(lua_State *L) { oluacls_class(L, "cc.RenderCommand.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_RenderCommand_Type___call); oluacls_enum(L, "CALLBACK_COMMAND", (lua_Integer)cocos2d::RenderCommand::Type::CALLBACK_COMMAND); oluacls_enum(L, "CAPTURE_SCREEN_COMMAND", (lua_Integer)cocos2d::RenderCommand::Type::CAPTURE_SCREEN_COMMAND); oluacls_enum(L, "CUSTOM_COMMAND", (lua_Integer)cocos2d::RenderCommand::Type::CUSTOM_COMMAND); @@ -17015,23 +16605,11 @@ OLUA_LIB int luaopen_cc_RenderCommand_Type(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_CustomCommand_DrawType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_CustomCommand_DrawType(lua_State *L) { oluacls_class(L, "cc.CustomCommand.DrawType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_CustomCommand_DrawType___call); oluacls_enum(L, "ARRAY", (lua_Integer)cocos2d::CustomCommand::DrawType::ARRAY); oluacls_enum(L, "ELEMENT", (lua_Integer)cocos2d::CustomCommand::DrawType::ELEMENT); @@ -17061,18 +16639,6 @@ static int _olua_fun_cocos2d_PipelineDescriptor___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_PipelineDescriptor___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PipelineDescriptor *)olua_toobj(L, 1, "cc.PipelineDescriptor"); - olua_push_object(L, self, "cc.PipelineDescriptor"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PipelineDescriptor_blendDescriptor$1(lua_State *L) { olua_startinvoke(L); @@ -17189,7 +16755,6 @@ static int _olua_cls_cc_PipelineDescriptor(lua_State *L) { oluacls_class(L, "cc.PipelineDescriptor"); oluacls_func(L, "__gc", _olua_fun_cocos2d_PipelineDescriptor___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PipelineDescriptor___olua_move); oluacls_prop(L, "blendDescriptor", _olua_fun_cocos2d_PipelineDescriptor_blendDescriptor, _olua_fun_cocos2d_PipelineDescriptor_blendDescriptor); oluacls_prop(L, "programState", _olua_fun_cocos2d_PipelineDescriptor_programState, _olua_fun_cocos2d_PipelineDescriptor_programState); @@ -17261,18 +16826,6 @@ OLUA_LIB int luaopen_cc_RenderState(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_RenderCommand___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::RenderCommand *)olua_toobj(L, 1, "cc.RenderCommand"); - olua_push_object(L, self, "cc.RenderCommand"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_RenderCommand_getDepth(lua_State *L) { olua_startinvoke(L); @@ -17488,7 +17041,6 @@ static int _olua_fun_cocos2d_RenderCommand_setTransparent(lua_State *L) static int _olua_cls_cc_RenderCommand(lua_State *L) { oluacls_class(L, "cc.RenderCommand"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_RenderCommand___olua_move); oluacls_func(L, "getDepth", _olua_fun_cocos2d_RenderCommand_getDepth); oluacls_func(L, "getGlobalOrder", _olua_fun_cocos2d_RenderCommand_getGlobalOrder); oluacls_func(L, "getMV", _olua_fun_cocos2d_RenderCommand_getMV); @@ -20738,23 +20290,11 @@ OLUA_LIB int luaopen_cc_TextureAtlas(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_network_WebSocket_ErrorCode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_WebSocket_ErrorCode(lua_State *L) { oluacls_class(L, "cc.WebSocket.ErrorCode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_network_WebSocket_ErrorCode___call); oluacls_enum(L, "CONNECTION_FAILURE", (lua_Integer)cocos2d::network::WebSocket::ErrorCode::CONNECTION_FAILURE); oluacls_enum(L, "TIME_OUT", (lua_Integer)cocos2d::network::WebSocket::ErrorCode::TIME_OUT); oluacls_enum(L, "UNKNOWN", (lua_Integer)cocos2d::network::WebSocket::ErrorCode::UNKNOWN); @@ -20773,23 +20313,11 @@ OLUA_LIB int luaopen_cc_WebSocket_ErrorCode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_network_WebSocket_State___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_WebSocket_State(lua_State *L) { oluacls_class(L, "cc.WebSocket.State"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_network_WebSocket_State___call); oluacls_enum(L, "CLOSED", (lua_Integer)cocos2d::network::WebSocket::State::CLOSED); oluacls_enum(L, "CLOSING", (lua_Integer)cocos2d::network::WebSocket::State::CLOSING); oluacls_enum(L, "CONNECTING", (lua_Integer)cocos2d::network::WebSocket::State::CONNECTING); @@ -20821,18 +20349,6 @@ static int _olua_fun_cocos2d_network_WebSocket_Delegate___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_network_WebSocket_Delegate___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::network::WebSocket::Delegate *)olua_toobj(L, 1, "cc.WebSocket.Delegate"); - olua_push_object(L, self, "cc.WebSocket.Delegate"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_network_WebSocket_Delegate_onClose(lua_State *L) { olua_startinvoke(L); @@ -20913,7 +20429,6 @@ static int _olua_cls_cc_WebSocket_Delegate(lua_State *L) { oluacls_class(L, "cc.WebSocket.Delegate"); oluacls_func(L, "__gc", _olua_fun_cocos2d_network_WebSocket_Delegate___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_network_WebSocket_Delegate___olua_move); oluacls_func(L, "onClose", _olua_fun_cocos2d_network_WebSocket_Delegate_onClose); oluacls_func(L, "onError", _olua_fun_cocos2d_network_WebSocket_Delegate_onError); oluacls_func(L, "onMessage", _olua_fun_cocos2d_network_WebSocket_Delegate_onMessage); @@ -20945,18 +20460,6 @@ static int _olua_fun_cocos2d_network_WebSocket___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_network_WebSocket___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::network::WebSocket *)olua_toobj(L, 1, "cc.WebSocket"); - olua_push_object(L, self, "cc.WebSocket"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_network_WebSocket_close(lua_State *L) { olua_startinvoke(L); @@ -21160,7 +20663,6 @@ static int _olua_cls_cc_WebSocket(lua_State *L) { oluacls_class(L, "cc.WebSocket"); oluacls_func(L, "__gc", _olua_fun_cocos2d_network_WebSocket___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_network_WebSocket___olua_move); oluacls_func(L, "close", _olua_fun_cocos2d_network_WebSocket_close); oluacls_func(L, "closeAllConnections", _olua_fun_cocos2d_network_WebSocket_closeAllConnections); oluacls_func(L, "closeAsync", _olua_fun_cocos2d_network_WebSocket_closeAsync); @@ -27428,18 +26930,6 @@ static int _olua_fun_cocos2d_BlendProtocol___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_BlendProtocol___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::BlendProtocol *)olua_toobj(L, 1, "cc.BlendProtocol"); - olua_push_object(L, self, "cc.BlendProtocol"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_BlendProtocol_getBlendFunc(lua_State *L) { olua_startinvoke(L); @@ -27479,7 +26969,6 @@ static int _olua_cls_cc_BlendProtocol(lua_State *L) { oluacls_class(L, "cc.BlendProtocol"); oluacls_func(L, "__gc", _olua_fun_cocos2d_BlendProtocol___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_BlendProtocol___olua_move); oluacls_func(L, "getBlendFunc", _olua_fun_cocos2d_BlendProtocol_getBlendFunc); oluacls_func(L, "setBlendFunc", _olua_fun_cocos2d_BlendProtocol_setBlendFunc); oluacls_prop(L, "blendFunc", _olua_fun_cocos2d_BlendProtocol_getBlendFunc, _olua_fun_cocos2d_BlendProtocol_setBlendFunc); @@ -27877,18 +27366,6 @@ static int _olua_fun_cocos2d_sImageTGA___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_sImageTGA___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::sImageTGA *)olua_toobj(L, 1, "cc.sImageTGA"); - olua_push_object(L, self, "cc.sImageTGA"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_sImageTGA_flipped$1(lua_State *L) { olua_startinvoke(L); @@ -28285,7 +27762,6 @@ static int _olua_cls_cc_sImageTGA(lua_State *L) { oluacls_class(L, "cc.sImageTGA"); oluacls_func(L, "__gc", _olua_fun_cocos2d_sImageTGA___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_sImageTGA___olua_move); oluacls_prop(L, "flipped", _olua_fun_cocos2d_sImageTGA_flipped, _olua_fun_cocos2d_sImageTGA_flipped); oluacls_prop(L, "height", _olua_fun_cocos2d_sImageTGA_height, _olua_fun_cocos2d_sImageTGA_height); oluacls_prop(L, "imageData", _olua_fun_cocos2d_sImageTGA_imageData, _olua_fun_cocos2d_sImageTGA_imageData); @@ -30721,23 +30197,11 @@ OLUA_LIB int luaopen_cc_ParallaxNode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_TextHAlignment___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_TextHAlignment(lua_State *L) { oluacls_class(L, "cc.TextHAlignment"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_TextHAlignment___call); oluacls_enum(L, "CENTER", (lua_Integer)cocos2d::TextHAlignment::CENTER); oluacls_enum(L, "LEFT", (lua_Integer)cocos2d::TextHAlignment::LEFT); oluacls_enum(L, "RIGHT", (lua_Integer)cocos2d::TextHAlignment::RIGHT); @@ -30756,23 +30220,11 @@ OLUA_LIB int luaopen_cc_TextHAlignment(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_TextVAlignment___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_TextVAlignment(lua_State *L) { oluacls_class(L, "cc.TextVAlignment"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_TextVAlignment___call); oluacls_enum(L, "BOTTOM", (lua_Integer)cocos2d::TextVAlignment::BOTTOM); oluacls_enum(L, "CENTER", (lua_Integer)cocos2d::TextVAlignment::CENTER); oluacls_enum(L, "TOP", (lua_Integer)cocos2d::TextVAlignment::TOP); @@ -30791,23 +30243,11 @@ OLUA_LIB int luaopen_cc_TextVAlignment(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_GlyphCollection___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_GlyphCollection(lua_State *L) { oluacls_class(L, "cc.GlyphCollection"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_GlyphCollection___call); oluacls_enum(L, "ASCII", (lua_Integer)cocos2d::GlyphCollection::ASCII); oluacls_enum(L, "CUSTOM", (lua_Integer)cocos2d::GlyphCollection::CUSTOM); oluacls_enum(L, "DYNAMIC", (lua_Integer)cocos2d::GlyphCollection::DYNAMIC); @@ -30827,23 +30267,11 @@ OLUA_LIB int luaopen_cc_GlyphCollection(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_LabelEffect___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_LabelEffect(lua_State *L) { oluacls_class(L, "cc.LabelEffect"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_LabelEffect___call); oluacls_enum(L, "ALL", (lua_Integer)cocos2d::LabelEffect::ALL); oluacls_enum(L, "BOLD", (lua_Integer)cocos2d::LabelEffect::BOLD); oluacls_enum(L, "GLOW", (lua_Integer)cocos2d::LabelEffect::GLOW); @@ -30868,23 +30296,11 @@ OLUA_LIB int luaopen_cc_LabelEffect(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Label_LabelType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Label_LabelType(lua_State *L) { oluacls_class(L, "cc.Label.LabelType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Label_LabelType___call); oluacls_enum(L, "BMFONT", (lua_Integer)cocos2d::Label::LabelType::BMFONT); oluacls_enum(L, "CHARMAP", (lua_Integer)cocos2d::Label::LabelType::CHARMAP); oluacls_enum(L, "STRING_TEXTURE", (lua_Integer)cocos2d::Label::LabelType::STRING_TEXTURE); @@ -30904,23 +30320,11 @@ OLUA_LIB int luaopen_cc_Label_LabelType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Label_Overflow___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Label_Overflow(lua_State *L) { oluacls_class(L, "cc.Label.Overflow"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Label_Overflow___call); oluacls_enum(L, "CLAMP", (lua_Integer)cocos2d::Label::Overflow::CLAMP); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::Label::Overflow::NONE); oluacls_enum(L, "RESIZE_HEIGHT", (lua_Integer)cocos2d::Label::Overflow::RESIZE_HEIGHT); @@ -30952,18 +30356,6 @@ static int _olua_fun_cocos2d_LabelProtocol___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_LabelProtocol___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::LabelProtocol *)olua_toobj(L, 1, "cc.LabelProtocol"); - olua_push_object(L, self, "cc.LabelProtocol"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_LabelProtocol_getString(lua_State *L) { olua_startinvoke(L); @@ -31003,7 +30395,6 @@ static int _olua_cls_cc_LabelProtocol(lua_State *L) { oluacls_class(L, "cc.LabelProtocol"); oluacls_func(L, "__gc", _olua_fun_cocos2d_LabelProtocol___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_LabelProtocol___olua_move); oluacls_func(L, "getString", _olua_fun_cocos2d_LabelProtocol_getString); oluacls_func(L, "setString", _olua_fun_cocos2d_LabelProtocol_setString); oluacls_prop(L, "string", _olua_fun_cocos2d_LabelProtocol_getString, _olua_fun_cocos2d_LabelProtocol_setString); @@ -35711,23 +35102,11 @@ OLUA_LIB int luaopen_cc_RenderTexture(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ProgressTimer_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_ProgressTimer_Type(lua_State *L) { oluacls_class(L, "cc.ProgressTimer.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ProgressTimer_Type___call); oluacls_enum(L, "BAR", (lua_Integer)cocos2d::ProgressTimer::Type::BAR); oluacls_enum(L, "RADIAL", (lua_Integer)cocos2d::ProgressTimer::Type::RADIAL); @@ -43083,23 +42462,11 @@ OLUA_LIB int luaopen_cc_LayerMultiplex(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_TransitionScene_Orientation___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_TransitionScene_Orientation(lua_State *L) { oluacls_class(L, "cc.TransitionScene.Orientation"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_TransitionScene_Orientation___call); oluacls_enum(L, "DOWN_OVER", (lua_Integer)cocos2d::TransitionScene::Orientation::DOWN_OVER); oluacls_enum(L, "LEFT_OVER", (lua_Integer)cocos2d::TransitionScene::Orientation::LEFT_OVER); oluacls_enum(L, "RIGHT_OVER", (lua_Integer)cocos2d::TransitionScene::Orientation::RIGHT_OVER); @@ -43259,18 +42626,6 @@ static int _olua_fun_cocos2d_TransitionEaseScene___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_TransitionEaseScene___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::TransitionEaseScene *)olua_toobj(L, 1, "cc.TransitionEaseScene"); - olua_push_object(L, self, "cc.TransitionEaseScene"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_TransitionEaseScene_easeActionWithAction(lua_State *L) { olua_startinvoke(L); @@ -43297,7 +42652,6 @@ static int _olua_cls_cc_TransitionEaseScene(lua_State *L) { oluacls_class(L, "cc.TransitionEaseScene"); oluacls_func(L, "__gc", _olua_fun_cocos2d_TransitionEaseScene___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_TransitionEaseScene___olua_move); oluacls_func(L, "easeActionWithAction", _olua_fun_cocos2d_TransitionEaseScene_easeActionWithAction); return 1; @@ -46025,18 +45379,6 @@ static int _olua_fun_cocos2d_IMEDelegate___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_IMEDelegate___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::IMEDelegate *)olua_toobj(L, 1, "cc.IMEDelegate"); - olua_push_object(L, self, "cc.IMEDelegate"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_IMEDelegate_attachWithIME(lua_State *L) { olua_startinvoke(L); @@ -46075,7 +45417,6 @@ static int _olua_cls_cc_IMEDelegate(lua_State *L) { oluacls_class(L, "cc.IMEDelegate"); oluacls_func(L, "__gc", _olua_fun_cocos2d_IMEDelegate___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_IMEDelegate___olua_move); oluacls_func(L, "attachWithIME", _olua_fun_cocos2d_IMEDelegate_attachWithIME); oluacls_func(L, "detachWithIME", _olua_fun_cocos2d_IMEDelegate_detachWithIME); @@ -46105,18 +45446,6 @@ static int _olua_fun_cocos2d_TextFieldDelegate___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_TextFieldDelegate___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::TextFieldDelegate *)olua_toobj(L, 1, "cc.TextFieldDelegate"); - olua_push_object(L, self, "cc.TextFieldDelegate"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_TextFieldDelegate_onTextFieldAttachWithIME(lua_State *L) { olua_startinvoke(L); @@ -46230,7 +45559,6 @@ static int _olua_cls_cc_TextFieldDelegate(lua_State *L) { oluacls_class(L, "cc.TextFieldDelegate"); oluacls_func(L, "__gc", _olua_fun_cocos2d_TextFieldDelegate___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_TextFieldDelegate___olua_move); oluacls_func(L, "onTextFieldAttachWithIME", _olua_fun_cocos2d_TextFieldDelegate_onTextFieldAttachWithIME); oluacls_func(L, "onTextFieldDeleteBackward", _olua_fun_cocos2d_TextFieldDelegate_onTextFieldDeleteBackward); oluacls_func(L, "onTextFieldDetachWithIME", _olua_fun_cocos2d_TextFieldDelegate_onTextFieldDetachWithIME); @@ -46846,23 +46174,11 @@ OLUA_LIB int luaopen_cc_TextFieldTTF(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_LightType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_LightType(lua_State *L) { oluacls_class(L, "cc.LightType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_LightType___call); oluacls_enum(L, "AMBIENT", (lua_Integer)cocos2d::LightType::AMBIENT); oluacls_enum(L, "DIRECTIONAL", (lua_Integer)cocos2d::LightType::DIRECTIONAL); oluacls_enum(L, "POINT", (lua_Integer)cocos2d::LightType::POINT); @@ -46882,23 +46198,11 @@ OLUA_LIB int luaopen_cc_LightType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_LightFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_LightFlag(lua_State *L) { oluacls_class(L, "cc.LightFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_LightFlag___call); oluacls_enum(L, "LIGHT0", (lua_Integer)cocos2d::LightFlag::LIGHT0); oluacls_enum(L, "LIGHT1", (lua_Integer)cocos2d::LightFlag::LIGHT1); oluacls_enum(L, "LIGHT10", (lua_Integer)cocos2d::LightFlag::LIGHT10); @@ -47605,23 +46909,11 @@ OLUA_LIB int luaopen_cc_AmbientLight(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_CameraFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_CameraFlag(lua_State *L) { oluacls_class(L, "cc.CameraFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_CameraFlag___call); oluacls_enum(L, "DEFAULT", (lua_Integer)cocos2d::CameraFlag::DEFAULT); oluacls_enum(L, "USER1", (lua_Integer)cocos2d::CameraFlag::USER1); oluacls_enum(L, "USER2", (lua_Integer)cocos2d::CameraFlag::USER2); @@ -47646,23 +46938,11 @@ OLUA_LIB int luaopen_cc_CameraFlag(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Camera_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Camera_Type(lua_State *L) { oluacls_class(L, "cc.Camera.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Camera_Type___call); oluacls_enum(L, "ORTHOGRAPHIC", (lua_Integer)cocos2d::Camera::Type::ORTHOGRAPHIC); oluacls_enum(L, "PERSPECTIVE", (lua_Integer)cocos2d::Camera::Type::PERSPECTIVE); @@ -48533,23 +47813,11 @@ OLUA_LIB int luaopen_cc_Camera(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_CameraBackgroundBrush_BrushType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_CameraBackgroundBrush_BrushType(lua_State *L) { oluacls_class(L, "cc.CameraBackgroundBrush.BrushType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_CameraBackgroundBrush_BrushType___call); oluacls_enum(L, "COLOR", (lua_Integer)cocos2d::CameraBackgroundBrush::BrushType::COLOR); oluacls_enum(L, "DEPTH", (lua_Integer)cocos2d::CameraBackgroundBrush::BrushType::DEPTH); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::CameraBackgroundBrush::BrushType::NONE); @@ -49116,18 +48384,6 @@ static int _olua_fun_cocos2d_PlayableProtocol___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_PlayableProtocol___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PlayableProtocol *)olua_toobj(L, 1, "cc.PlayableProtocol"); - olua_push_object(L, self, "cc.PlayableProtocol"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PlayableProtocol_start(lua_State *L) { olua_startinvoke(L); @@ -49164,7 +48420,6 @@ static int _olua_cls_cc_PlayableProtocol(lua_State *L) { oluacls_class(L, "cc.PlayableProtocol"); oluacls_func(L, "__gc", _olua_fun_cocos2d_PlayableProtocol___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PlayableProtocol___olua_move); oluacls_func(L, "start", _olua_fun_cocos2d_PlayableProtocol_start); oluacls_func(L, "stop", _olua_fun_cocos2d_PlayableProtocol_stop); @@ -49587,23 +48842,11 @@ OLUA_LIB int luaopen_cc_ParticleBatchNode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ParticleSystem_Mode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_ParticleSystem_Mode(lua_State *L) { oluacls_class(L, "cc.ParticleSystem.Mode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ParticleSystem_Mode___call); oluacls_enum(L, "GRAVITY", (lua_Integer)cocos2d::ParticleSystem::Mode::GRAVITY); oluacls_enum(L, "RADIUS", (lua_Integer)cocos2d::ParticleSystem::Mode::RADIUS); @@ -49621,23 +48864,11 @@ OLUA_LIB int luaopen_cc_ParticleSystem_Mode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ParticleSystem_PositionType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_ParticleSystem_PositionType(lua_State *L) { oluacls_class(L, "cc.ParticleSystem.PositionType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ParticleSystem_PositionType___call); oluacls_enum(L, "FREE", (lua_Integer)cocos2d::ParticleSystem::PositionType::FREE); oluacls_enum(L, "GROUPED", (lua_Integer)cocos2d::ParticleSystem::PositionType::GROUPED); oluacls_enum(L, "RELATIVE", (lua_Integer)cocos2d::ParticleSystem::PositionType::RELATIVE); @@ -52733,18 +51964,6 @@ static int _olua_fun_cocos2d_SAXDelegator___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_SAXDelegator___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::SAXDelegator *)olua_toobj(L, 1, "cc.SAXDelegator"); - olua_push_object(L, self, "cc.SAXDelegator"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_SAXDelegator_endElement(lua_State *L) { olua_startinvoke(L); @@ -52791,7 +52010,6 @@ static int _olua_cls_cc_SAXDelegator(lua_State *L) { oluacls_class(L, "cc.SAXDelegator"); oluacls_func(L, "__gc", _olua_fun_cocos2d_SAXDelegator___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_SAXDelegator___olua_move); oluacls_func(L, "endElement", _olua_fun_cocos2d_SAXDelegator_endElement); oluacls_func(L, "textHandler", _olua_fun_cocos2d_SAXDelegator_textHandler); @@ -52809,23 +52027,11 @@ OLUA_LIB int luaopen_cc_SAXDelegator(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_TMXTileFlags___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_TMXTileFlags(lua_State *L) { oluacls_class(L, "cc.TMXTileFlags"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_TMXTileFlags___call); oluacls_enum(L, "kTMXFlipedAll", (lua_Integer)cocos2d::TMXTileFlags::kTMXFlipedAll); oluacls_enum(L, "kTMXFlippedMask", (lua_Integer)cocos2d::TMXTileFlags::kTMXFlippedMask); oluacls_enum(L, "kTMXTileDiagonalFlag", (lua_Integer)cocos2d::TMXTileFlags::kTMXTileDiagonalFlag); @@ -56015,23 +55221,11 @@ OLUA_LIB int luaopen_cc_FastTMXLayer(lua_State *L) OLUA_END_DECLS #if CC_USE_NAVMESH -static int _olua_fun_cocos2d_NavMeshAgent_NavMeshAgentSyncFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_NavMeshAgent_NavMeshAgentSyncFlag(lua_State *L) { oluacls_class(L, "cc.NavMeshAgent.NavMeshAgentSyncFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_NavMeshAgent_NavMeshAgentSyncFlag___call); oluacls_enum(L, "AGENT_TO_NODE", (lua_Integer)cocos2d::NavMeshAgent::NavMeshAgentSyncFlag::AGENT_TO_NODE); oluacls_enum(L, "NODE_AND_NODE", (lua_Integer)cocos2d::NavMeshAgent::NavMeshAgentSyncFlag::NODE_AND_NODE); oluacls_enum(L, "NODE_TO_AGENT", (lua_Integer)cocos2d::NavMeshAgent::NavMeshAgentSyncFlag::NODE_TO_AGENT); @@ -56753,23 +55947,11 @@ OLUA_END_DECLS #endif #if CC_USE_NAVMESH -static int _olua_fun_cocos2d_NavMeshObstacle_NavMeshObstacleSyncFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_NavMeshObstacle_NavMeshObstacleSyncFlag(lua_State *L) { oluacls_class(L, "cc.NavMeshObstacle.NavMeshObstacleSyncFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_NavMeshObstacle_NavMeshObstacleSyncFlag___call); oluacls_enum(L, "NODE_AND_NODE", (lua_Integer)cocos2d::NavMeshObstacle::NavMeshObstacleSyncFlag::NODE_AND_NODE); oluacls_enum(L, "NODE_TO_OBSTACLE", (lua_Integer)cocos2d::NavMeshObstacle::NavMeshObstacleSyncFlag::NODE_TO_OBSTACLE); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::NavMeshObstacle::NavMeshObstacleSyncFlag::NONE); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp index cccf933f..bc5b7ad9 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cocos2d_MeshVertexAttrib___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_MeshVertexAttrib___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::MeshVertexAttrib *)olua_toobj(L, 1, "cc.MeshVertexAttrib"); - olua_push_object(L, self, "cc.MeshVertexAttrib"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_MeshVertexAttrib_getAttribSizeBytes(lua_State *L) { olua_startinvoke(L); @@ -166,7 +154,6 @@ static int _olua_cls_cc_MeshVertexAttrib(lua_State *L) { oluacls_class(L, "cc.MeshVertexAttrib"); oluacls_func(L, "__gc", _olua_fun_cocos2d_MeshVertexAttrib___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_MeshVertexAttrib___olua_move); oluacls_func(L, "getAttribSizeBytes", _olua_fun_cocos2d_MeshVertexAttrib_getAttribSizeBytes); oluacls_prop(L, "attribSizeBytes", _olua_fun_cocos2d_MeshVertexAttrib_getAttribSizeBytes, nullptr); oluacls_prop(L, "type", _olua_fun_cocos2d_MeshVertexAttrib_type, _olua_fun_cocos2d_MeshVertexAttrib_type); @@ -186,23 +173,11 @@ OLUA_LIB int luaopen_cc_MeshVertexAttrib(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_NTextureData_Usage___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_NTextureData_Usage(lua_State *L) { oluacls_class(L, "cc.NTextureData.Usage"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_NTextureData_Usage___call); oluacls_enum(L, "Ambient", (lua_Integer)cocos2d::NTextureData::Usage::Ambient); oluacls_enum(L, "Bump", (lua_Integer)cocos2d::NTextureData::Usage::Bump); oluacls_enum(L, "Diffuse", (lua_Integer)cocos2d::NTextureData::Usage::Diffuse); @@ -229,23 +204,11 @@ OLUA_LIB int luaopen_cc_NTextureData_Usage(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_shaderinfos_VertexKey___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_VertexKey(lua_State *L) { oluacls_class(L, "cc.VertexKey"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_shaderinfos_VertexKey___call); oluacls_enum(L, "VERTEX_ATTRIB_BINORMAL", (lua_Integer)cocos2d::shaderinfos::VertexKey::VERTEX_ATTRIB_BINORMAL); oluacls_enum(L, "VERTEX_ATTRIB_BLEND_INDEX", (lua_Integer)cocos2d::shaderinfos::VertexKey::VERTEX_ATTRIB_BLEND_INDEX); oluacls_enum(L, "VERTEX_ATTRIB_BLEND_WEIGHT", (lua_Integer)cocos2d::shaderinfos::VertexKey::VERTEX_ATTRIB_BLEND_WEIGHT); @@ -275,23 +238,11 @@ OLUA_LIB int luaopen_cc_VertexKey(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_shaderinfos_Uniformkey___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Uniformkey(lua_State *L) { oluacls_class(L, "cc.Uniformkey"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_shaderinfos_Uniformkey___call); oluacls_enum(L, "UNIFORM_AMBIENT_COLOR", (lua_Integer)cocos2d::shaderinfos::Uniformkey::UNIFORM_AMBIENT_COLOR); oluacls_enum(L, "UNIFORM_COS_TIME", (lua_Integer)cocos2d::shaderinfos::Uniformkey::UNIFORM_COS_TIME); oluacls_enum(L, "UNIFORM_MAX", (lua_Integer)cocos2d::shaderinfos::Uniformkey::UNIFORM_MAX); @@ -335,18 +286,6 @@ static int _olua_fun_cocos2d_NTextureData___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_NTextureData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::NTextureData *)olua_toobj(L, 1, "cc.NTextureData"); - olua_push_object(L, self, "cc.NTextureData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_NTextureData_filename$1(lua_State *L) { olua_startinvoke(L); @@ -631,7 +570,6 @@ static int _olua_cls_cc_NTextureData(lua_State *L) { oluacls_class(L, "cc.NTextureData"); oluacls_func(L, "__gc", _olua_fun_cocos2d_NTextureData___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_NTextureData___olua_move); oluacls_prop(L, "filename", _olua_fun_cocos2d_NTextureData_filename, _olua_fun_cocos2d_NTextureData_filename); oluacls_prop(L, "id", _olua_fun_cocos2d_NTextureData_id, _olua_fun_cocos2d_NTextureData_id); oluacls_prop(L, "type", _olua_fun_cocos2d_NTextureData_type, _olua_fun_cocos2d_NTextureData_type); @@ -1695,23 +1633,11 @@ OLUA_LIB int luaopen_cc_MeshSkin(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_BillBoard_Mode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_BillBoard_Mode(lua_State *L) { oluacls_class(L, "cc.BillBoard.Mode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_BillBoard_Mode___call); oluacls_enum(L, "VIEW_PLANE_ORIENTED", (lua_Integer)cocos2d::BillBoard::Mode::VIEW_PLANE_ORIENTED); oluacls_enum(L, "VIEW_POINT_ORIENTED", (lua_Integer)cocos2d::BillBoard::Mode::VIEW_POINT_ORIENTED); @@ -2012,23 +1938,11 @@ OLUA_LIB int luaopen_cc_BillBoard(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Sprite3DMaterial_MaterialType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_Sprite3DMaterial_MaterialType(lua_State *L) { oluacls_class(L, "cc.Sprite3DMaterial.MaterialType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_Sprite3DMaterial_MaterialType___call); oluacls_enum(L, "BUMPED_DIFFUSE", (lua_Integer)cocos2d::Sprite3DMaterial::MaterialType::BUMPED_DIFFUSE); oluacls_enum(L, "CUSTOM", (lua_Integer)cocos2d::Sprite3DMaterial::MaterialType::CUSTOM); oluacls_enum(L, "DIFFUSE", (lua_Integer)cocos2d::Sprite3DMaterial::MaterialType::DIFFUSE); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp index f7b01430..5d516cb9 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp @@ -8,23 +8,11 @@ static int _olua_module_cocos2d_action(lua_State *L); -static int _olua_fun_cocos2d_tweenfunc_TweenType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_tweenfunc_TweenType(lua_State *L) { oluacls_class(L, "cc.tweenfunc.TweenType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_tweenfunc_TweenType___call); oluacls_enum(L, "Back_EaseIn", (lua_Integer)cocos2d::tweenfunc::TweenType::Back_EaseIn); oluacls_enum(L, "Back_EaseInOut", (lua_Integer)cocos2d::tweenfunc::TweenType::Back_EaseInOut); oluacls_enum(L, "Back_EaseOut", (lua_Integer)cocos2d::tweenfunc::TweenType::Back_EaseOut); @@ -432,18 +420,6 @@ static int _olua_fun_cocos2d_ActionTweenDelegate___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ActionTweenDelegate___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ActionTweenDelegate *)olua_toobj(L, 1, "cc.ActionTweenDelegate"); - olua_push_object(L, self, "cc.ActionTweenDelegate"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ActionTweenDelegate_updateTweenAction(lua_State *L) { olua_startinvoke(L); @@ -468,7 +444,6 @@ static int _olua_cls_cc_ActionTweenDelegate(lua_State *L) { oluacls_class(L, "cc.ActionTweenDelegate"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ActionTweenDelegate___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ActionTweenDelegate___olua_move); oluacls_func(L, "updateTweenAction", _olua_fun_cocos2d_ActionTweenDelegate_updateTweenAction); return 1; diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp index 4deddcbc..f6727c3b 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp @@ -8,28 +8,35 @@ static int _olua_module_cocos2d_backend(lua_State *L); -static int _olua_fun_cocos2d_backend_UniformLocation___gc(lua_State *L) +static int _olua_fun_cocos2d_backend_UniformLocation___eq(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::backend::UniformLocation *)olua_toobj(L, 1, "ccb.UniformLocation"); - olua_postgc(L, self); + cocos2d::backend::UniformLocation *self = nullptr; + cocos2d::backend::UniformLocation *arg1; /** other */ + + olua_to_object(L, 1, &self, "ccb.UniformLocation"); + olua_check_object(L, 2, &arg1, "ccb.UniformLocation"); + + // @operator(operator==) bool __eq(const cocos2d::backend::UniformLocation &other) + bool ret = self->operator==(*arg1); + int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); - return 0; + return num_ret; } -static int _olua_fun_cocos2d_backend_UniformLocation___olua_move(lua_State *L) +static int _olua_fun_cocos2d_backend_UniformLocation___gc(lua_State *L) { olua_startinvoke(L); auto self = (cocos2d::backend::UniformLocation *)olua_toobj(L, 1, "ccb.UniformLocation"); - olua_push_object(L, self, "ccb.UniformLocation"); + olua_postgc(L, self); olua_endinvoke(L); - return 1; + return 0; } static int _olua_fun_cocos2d_backend_UniformLocation_new(lua_State *L) @@ -121,8 +128,8 @@ static int _olua_fun_cocos2d_backend_UniformLocation_shaderStage(lua_State *L) static int _olua_cls_ccb_UniformLocation(lua_State *L) { oluacls_class(L, "ccb.UniformLocation"); + oluacls_func(L, "__eq", _olua_fun_cocos2d_backend_UniformLocation___eq); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_UniformLocation___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_UniformLocation___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_backend_UniformLocation_new); oluacls_func(L, "reset", _olua_fun_cocos2d_backend_UniformLocation_reset); oluacls_prop(L, "shaderStage", _olua_fun_cocos2d_backend_UniformLocation_shaderStage, _olua_fun_cocos2d_backend_UniformLocation_shaderStage); @@ -141,23 +148,11 @@ OLUA_LIB int luaopen_ccb_UniformLocation(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_BufferUsage___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_BufferUsage(lua_State *L) { oluacls_class(L, "ccb.BufferUsage"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_BufferUsage___call); oluacls_enum(L, "DYNAMIC", (lua_Integer)cocos2d::backend::BufferUsage::DYNAMIC); oluacls_enum(L, "STATIC", (lua_Integer)cocos2d::backend::BufferUsage::STATIC); @@ -175,23 +170,11 @@ OLUA_LIB int luaopen_ccb_BufferUsage(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_BufferType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_BufferType(lua_State *L) { oluacls_class(L, "ccb.BufferType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_BufferType___call); oluacls_enum(L, "INDEX", (lua_Integer)cocos2d::backend::BufferType::INDEX); oluacls_enum(L, "VERTEX", (lua_Integer)cocos2d::backend::BufferType::VERTEX); @@ -209,23 +192,11 @@ OLUA_LIB int luaopen_ccb_BufferType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_ShaderStage___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_ShaderStage(lua_State *L) { oluacls_class(L, "ccb.ShaderStage"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_ShaderStage___call); oluacls_enum(L, "FRAGMENT", (lua_Integer)cocos2d::backend::ShaderStage::FRAGMENT); oluacls_enum(L, "VERTEX", (lua_Integer)cocos2d::backend::ShaderStage::VERTEX); oluacls_enum(L, "VERTEX_AND_FRAGMENT", (lua_Integer)cocos2d::backend::ShaderStage::VERTEX_AND_FRAGMENT); @@ -244,23 +215,11 @@ OLUA_LIB int luaopen_ccb_ShaderStage(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_VertexFormat___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_VertexFormat(lua_State *L) { oluacls_class(L, "ccb.VertexFormat"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_VertexFormat___call); oluacls_enum(L, "FLOAT", (lua_Integer)cocos2d::backend::VertexFormat::FLOAT); oluacls_enum(L, "FLOAT2", (lua_Integer)cocos2d::backend::VertexFormat::FLOAT2); oluacls_enum(L, "FLOAT3", (lua_Integer)cocos2d::backend::VertexFormat::FLOAT3); @@ -287,23 +246,11 @@ OLUA_LIB int luaopen_ccb_VertexFormat(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_PixelFormat___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_PixelFormat(lua_State *L) { oluacls_class(L, "ccb.PixelFormat"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_PixelFormat___call); oluacls_enum(L, "A8", (lua_Integer)cocos2d::backend::PixelFormat::A8); oluacls_enum(L, "AI88", (lua_Integer)cocos2d::backend::PixelFormat::AI88); oluacls_enum(L, "ATC_EXPLICIT_ALPHA", (lua_Integer)cocos2d::backend::PixelFormat::ATC_EXPLICIT_ALPHA); @@ -346,23 +293,11 @@ OLUA_LIB int luaopen_ccb_PixelFormat(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_TextureUsage___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_TextureUsage(lua_State *L) { oluacls_class(L, "ccb.TextureUsage"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_TextureUsage___call); oluacls_enum(L, "READ", (lua_Integer)cocos2d::backend::TextureUsage::READ); oluacls_enum(L, "RENDER_TARGET", (lua_Integer)cocos2d::backend::TextureUsage::RENDER_TARGET); oluacls_enum(L, "WRITE", (lua_Integer)cocos2d::backend::TextureUsage::WRITE); @@ -381,23 +316,11 @@ OLUA_LIB int luaopen_ccb_TextureUsage(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_IndexFormat___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_IndexFormat(lua_State *L) { oluacls_class(L, "ccb.IndexFormat"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_IndexFormat___call); oluacls_enum(L, "U_INT", (lua_Integer)cocos2d::backend::IndexFormat::U_INT); oluacls_enum(L, "U_SHORT", (lua_Integer)cocos2d::backend::IndexFormat::U_SHORT); @@ -415,23 +338,11 @@ OLUA_LIB int luaopen_ccb_IndexFormat(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_VertexStepMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_VertexStepMode(lua_State *L) { oluacls_class(L, "ccb.VertexStepMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_VertexStepMode___call); oluacls_enum(L, "INSTANCE", (lua_Integer)cocos2d::backend::VertexStepMode::INSTANCE); oluacls_enum(L, "VERTEX", (lua_Integer)cocos2d::backend::VertexStepMode::VERTEX); @@ -449,23 +360,11 @@ OLUA_LIB int luaopen_ccb_VertexStepMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_PrimitiveType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_PrimitiveType(lua_State *L) { oluacls_class(L, "ccb.PrimitiveType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_PrimitiveType___call); oluacls_enum(L, "LINE", (lua_Integer)cocos2d::backend::PrimitiveType::LINE); oluacls_enum(L, "LINE_STRIP", (lua_Integer)cocos2d::backend::PrimitiveType::LINE_STRIP); oluacls_enum(L, "POINT", (lua_Integer)cocos2d::backend::PrimitiveType::POINT); @@ -486,23 +385,11 @@ OLUA_LIB int luaopen_ccb_PrimitiveType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_TextureType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_TextureType(lua_State *L) { oluacls_class(L, "ccb.TextureType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_TextureType___call); oluacls_enum(L, "TEXTURE_2D", (lua_Integer)cocos2d::backend::TextureType::TEXTURE_2D); oluacls_enum(L, "TEXTURE_CUBE", (lua_Integer)cocos2d::backend::TextureType::TEXTURE_CUBE); @@ -520,23 +407,11 @@ OLUA_LIB int luaopen_ccb_TextureType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_SamplerAddressMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_SamplerAddressMode(lua_State *L) { oluacls_class(L, "ccb.SamplerAddressMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_SamplerAddressMode___call); oluacls_enum(L, "CLAMP_TO_EDGE", (lua_Integer)cocos2d::backend::SamplerAddressMode::CLAMP_TO_EDGE); oluacls_enum(L, "DONT_CARE", (lua_Integer)cocos2d::backend::SamplerAddressMode::DONT_CARE); oluacls_enum(L, "MIRROR_REPEAT", (lua_Integer)cocos2d::backend::SamplerAddressMode::MIRROR_REPEAT); @@ -556,23 +431,11 @@ OLUA_LIB int luaopen_ccb_SamplerAddressMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_SamplerFilter___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_SamplerFilter(lua_State *L) { oluacls_class(L, "ccb.SamplerFilter"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_SamplerFilter___call); oluacls_enum(L, "DONT_CARE", (lua_Integer)cocos2d::backend::SamplerFilter::DONT_CARE); oluacls_enum(L, "LINEAR", (lua_Integer)cocos2d::backend::SamplerFilter::LINEAR); oluacls_enum(L, "LINEAR_MIPMAP_LINEAR", (lua_Integer)cocos2d::backend::SamplerFilter::LINEAR_MIPMAP_LINEAR); @@ -595,23 +458,11 @@ OLUA_LIB int luaopen_ccb_SamplerFilter(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_StencilOperation___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_StencilOperation(lua_State *L) { oluacls_class(L, "ccb.StencilOperation"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_StencilOperation___call); oluacls_enum(L, "DECREMENT_WRAP", (lua_Integer)cocos2d::backend::StencilOperation::DECREMENT_WRAP); oluacls_enum(L, "INCREMENT_WRAP", (lua_Integer)cocos2d::backend::StencilOperation::INCREMENT_WRAP); oluacls_enum(L, "INVERT", (lua_Integer)cocos2d::backend::StencilOperation::INVERT); @@ -633,23 +484,11 @@ OLUA_LIB int luaopen_ccb_StencilOperation(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_CompareFunction___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_CompareFunction(lua_State *L) { oluacls_class(L, "ccb.CompareFunction"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_CompareFunction___call); oluacls_enum(L, "ALWAYS", (lua_Integer)cocos2d::backend::CompareFunction::ALWAYS); oluacls_enum(L, "EQUAL", (lua_Integer)cocos2d::backend::CompareFunction::EQUAL); oluacls_enum(L, "GREATER", (lua_Integer)cocos2d::backend::CompareFunction::GREATER); @@ -673,23 +512,11 @@ OLUA_LIB int luaopen_ccb_CompareFunction(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_BlendOperation___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_BlendOperation(lua_State *L) { oluacls_class(L, "ccb.BlendOperation"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_BlendOperation___call); oluacls_enum(L, "ADD", (lua_Integer)cocos2d::backend::BlendOperation::ADD); oluacls_enum(L, "RESERVE_SUBTRACT", (lua_Integer)cocos2d::backend::BlendOperation::RESERVE_SUBTRACT); oluacls_enum(L, "SUBTRACT", (lua_Integer)cocos2d::backend::BlendOperation::SUBTRACT); @@ -708,23 +535,11 @@ OLUA_LIB int luaopen_ccb_BlendOperation(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_BlendFactor___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_BlendFactor(lua_State *L) { oluacls_class(L, "ccb.BlendFactor"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_BlendFactor___call); oluacls_enum(L, "BLEND_CLOLOR", (lua_Integer)cocos2d::backend::BlendFactor::BLEND_CLOLOR); oluacls_enum(L, "CONSTANT_ALPHA", (lua_Integer)cocos2d::backend::BlendFactor::CONSTANT_ALPHA); oluacls_enum(L, "DST_ALPHA", (lua_Integer)cocos2d::backend::BlendFactor::DST_ALPHA); @@ -754,23 +569,11 @@ OLUA_LIB int luaopen_ccb_BlendFactor(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_ColorWriteMask___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_ColorWriteMask(lua_State *L) { oluacls_class(L, "ccb.ColorWriteMask"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_ColorWriteMask___call); oluacls_enum(L, "ALL", (lua_Integer)cocos2d::backend::ColorWriteMask::ALL); oluacls_enum(L, "ALPHA", (lua_Integer)cocos2d::backend::ColorWriteMask::ALPHA); oluacls_enum(L, "BLUE", (lua_Integer)cocos2d::backend::ColorWriteMask::BLUE); @@ -792,23 +595,11 @@ OLUA_LIB int luaopen_ccb_ColorWriteMask(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_CullMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_CullMode(lua_State *L) { oluacls_class(L, "ccb.CullMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_CullMode___call); oluacls_enum(L, "BACK", (lua_Integer)cocos2d::backend::CullMode::BACK); oluacls_enum(L, "FRONT", (lua_Integer)cocos2d::backend::CullMode::FRONT); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::backend::CullMode::NONE); @@ -827,23 +618,11 @@ OLUA_LIB int luaopen_ccb_CullMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_Winding___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_Winding(lua_State *L) { oluacls_class(L, "ccb.Winding"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_Winding___call); oluacls_enum(L, "CLOCK_WISE", (lua_Integer)cocos2d::backend::Winding::CLOCK_WISE); oluacls_enum(L, "COUNTER_CLOCK_WISE", (lua_Integer)cocos2d::backend::Winding::COUNTER_CLOCK_WISE); @@ -861,23 +640,11 @@ OLUA_LIB int luaopen_ccb_Winding(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_TextureCubeFace___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_TextureCubeFace(lua_State *L) { oluacls_class(L, "ccb.TextureCubeFace"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_TextureCubeFace___call); oluacls_enum(L, "NEGATIVE_X", (lua_Integer)cocos2d::backend::TextureCubeFace::NEGATIVE_X); oluacls_enum(L, "NEGATIVE_Y", (lua_Integer)cocos2d::backend::TextureCubeFace::NEGATIVE_Y); oluacls_enum(L, "NEGATIVE_Z", (lua_Integer)cocos2d::backend::TextureCubeFace::NEGATIVE_Z); @@ -899,23 +666,11 @@ OLUA_LIB int luaopen_ccb_TextureCubeFace(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_ProgramType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_ProgramType(lua_State *L) { oluacls_class(L, "ccb.ProgramType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_ProgramType___call); oluacls_enum(L, "CAMERA_CLEAR", (lua_Integer)cocos2d::backend::ProgramType::CAMERA_CLEAR); oluacls_enum(L, "CUSTOM_PROGRAM", (lua_Integer)cocos2d::backend::ProgramType::CUSTOM_PROGRAM); oluacls_enum(L, "ETC1", (lua_Integer)cocos2d::backend::ProgramType::ETC1); @@ -962,23 +717,11 @@ OLUA_LIB int luaopen_ccb_ProgramType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_Uniform___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_Uniform(lua_State *L) { oluacls_class(L, "ccb.Uniform"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_Uniform___call); oluacls_enum(L, "EFFECT_COLOR", (lua_Integer)cocos2d::backend::Uniform::EFFECT_COLOR); oluacls_enum(L, "EFFECT_TYPE", (lua_Integer)cocos2d::backend::Uniform::EFFECT_TYPE); oluacls_enum(L, "MVP_MATRIX", (lua_Integer)cocos2d::backend::Uniform::MVP_MATRIX); @@ -1003,23 +746,11 @@ OLUA_LIB int luaopen_ccb_Uniform(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_Attribute___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_Attribute(lua_State *L) { oluacls_class(L, "ccb.Attribute"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_Attribute___call); oluacls_enum(L, "ATTRIBUTE_MAX", (lua_Integer)cocos2d::backend::Attribute::ATTRIBUTE_MAX); oluacls_enum(L, "COLOR", (lua_Integer)cocos2d::backend::Attribute::COLOR); oluacls_enum(L, "POSITION", (lua_Integer)cocos2d::backend::Attribute::POSITION); @@ -1042,23 +773,11 @@ OLUA_LIB int luaopen_ccb_Attribute(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_FeatureType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccb_FeatureType(lua_State *L) { oluacls_class(L, "ccb.FeatureType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_backend_FeatureType___call); oluacls_enum(L, "AMD_COMPRESSED_ATC", (lua_Integer)cocos2d::backend::FeatureType::AMD_COMPRESSED_ATC); oluacls_enum(L, "ASTC", (lua_Integer)cocos2d::backend::FeatureType::ASTC); oluacls_enum(L, "DEPTH24", (lua_Integer)cocos2d::backend::FeatureType::DEPTH24); @@ -1233,18 +952,6 @@ static int _olua_fun_cocos2d_backend_VertexLayout___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_VertexLayout___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::VertexLayout *)olua_toobj(L, 1, "ccb.VertexLayout"); - olua_push_object(L, self, "ccb.VertexLayout"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_VertexLayout_getAttributes(lua_State *L) { olua_startinvoke(L); @@ -1378,7 +1085,6 @@ static int _olua_cls_ccb_VertexLayout(lua_State *L) { oluacls_class(L, "ccb.VertexLayout"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_VertexLayout___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_VertexLayout___olua_move); oluacls_func(L, "getAttributes", _olua_fun_cocos2d_backend_VertexLayout_getAttributes); oluacls_func(L, "getStride", _olua_fun_cocos2d_backend_VertexLayout_getStride); oluacls_func(L, "getVertexStepMode", _olua_fun_cocos2d_backend_VertexLayout_getVertexStepMode); @@ -2050,18 +1756,6 @@ static int _olua_fun_cocos2d_backend_DeviceInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_DeviceInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::DeviceInfo *)olua_toobj(L, 1, "ccb.DeviceInfo"); - olua_push_object(L, self, "ccb.DeviceInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_DeviceInfo_checkForFeatureSupported(lua_State *L) { olua_startinvoke(L); @@ -2238,7 +1932,6 @@ static int _olua_cls_ccb_DeviceInfo(lua_State *L) { oluacls_class(L, "ccb.DeviceInfo"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_DeviceInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_DeviceInfo___olua_move); oluacls_func(L, "checkForFeatureSupported", _olua_fun_cocos2d_backend_DeviceInfo_checkForFeatureSupported); oluacls_func(L, "getExtension", _olua_fun_cocos2d_backend_DeviceInfo_getExtension); oluacls_func(L, "getMaxAttributes", _olua_fun_cocos2d_backend_DeviceInfo_getMaxAttributes); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp index 1b7f44f7..4918eb41 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cocos2d_PhysicsMaterial___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_PhysicsMaterial___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PhysicsMaterial *)olua_toobj(L, 1, "cc.PhysicsMaterial"); - olua_push_object(L, self, "cc.PhysicsMaterial"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PhysicsMaterial_density$1(lua_State *L) { olua_startinvoke(L); @@ -262,7 +250,6 @@ static int _olua_cls_cc_PhysicsMaterial(lua_State *L) { oluacls_class(L, "cc.PhysicsMaterial"); oluacls_func(L, "__gc", _olua_fun_cocos2d_PhysicsMaterial___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PhysicsMaterial___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_PhysicsMaterial_new); oluacls_prop(L, "density", _olua_fun_cocos2d_PhysicsMaterial_density, _olua_fun_cocos2d_PhysicsMaterial_density); oluacls_prop(L, "friction", _olua_fun_cocos2d_PhysicsMaterial_friction, _olua_fun_cocos2d_PhysicsMaterial_friction); @@ -3158,23 +3145,11 @@ OLUA_END_DECLS #endif #if CC_USE_PHYSICS -static int _olua_fun_cocos2d_PhysicsContact_EventCode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_PhysicsContact_EventCode(lua_State *L) { oluacls_class(L, "cc.PhysicsContact.EventCode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_PhysicsContact_EventCode___call); oluacls_enum(L, "BEGIN", (lua_Integer)cocos2d::PhysicsContact::EventCode::BEGIN); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::PhysicsContact::EventCode::NONE); oluacls_enum(L, "POSTSOLVE", (lua_Integer)cocos2d::PhysicsContact::EventCode::POSTSOLVE); @@ -3312,18 +3287,6 @@ OLUA_END_DECLS #endif #if CC_USE_PHYSICS -static int _olua_fun_cocos2d_PhysicsContactPostSolve___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PhysicsContactPostSolve *)olua_toobj(L, 1, "cc.PhysicsContactPostSolve"); - olua_push_object(L, self, "cc.PhysicsContactPostSolve"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PhysicsContactPostSolve_getFriction(lua_State *L) { olua_startinvoke(L); @@ -3378,7 +3341,6 @@ static int _olua_fun_cocos2d_PhysicsContactPostSolve_getSurfaceVelocity(lua_Stat static int _olua_cls_cc_PhysicsContactPostSolve(lua_State *L) { oluacls_class(L, "cc.PhysicsContactPostSolve"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PhysicsContactPostSolve___olua_move); oluacls_func(L, "getFriction", _olua_fun_cocos2d_PhysicsContactPostSolve_getFriction); oluacls_func(L, "getRestitution", _olua_fun_cocos2d_PhysicsContactPostSolve_getRestitution); oluacls_func(L, "getSurfaceVelocity", _olua_fun_cocos2d_PhysicsContactPostSolve_getSurfaceVelocity); @@ -3402,18 +3364,6 @@ OLUA_END_DECLS #endif #if CC_USE_PHYSICS -static int _olua_fun_cocos2d_PhysicsContactPreSolve___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PhysicsContactPreSolve *)olua_toobj(L, 1, "cc.PhysicsContactPreSolve"); - olua_push_object(L, self, "cc.PhysicsContactPreSolve"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PhysicsContactPreSolve_getFriction(lua_State *L) { olua_startinvoke(L); @@ -3538,7 +3488,6 @@ static int _olua_fun_cocos2d_PhysicsContactPreSolve_setSurfaceVelocity(lua_State static int _olua_cls_cc_PhysicsContactPreSolve(lua_State *L) { oluacls_class(L, "cc.PhysicsContactPreSolve"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PhysicsContactPreSolve___olua_move); oluacls_func(L, "getFriction", _olua_fun_cocos2d_PhysicsContactPreSolve_getFriction); oluacls_func(L, "getRestitution", _olua_fun_cocos2d_PhysicsContactPreSolve_getRestitution); oluacls_func(L, "getSurfaceVelocity", _olua_fun_cocos2d_PhysicsContactPreSolve_getSurfaceVelocity); @@ -3566,18 +3515,6 @@ OLUA_END_DECLS #endif #if CC_USE_PHYSICS -static int _olua_fun_cocos2d_PhysicsJoint___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PhysicsJoint *)olua_toobj(L, 1, "cc.PhysicsJoint"); - olua_push_object(L, self, "cc.PhysicsJoint"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PhysicsJoint_getBodyA(lua_State *L) { olua_startinvoke(L); @@ -3788,7 +3725,6 @@ static int _olua_fun_cocos2d_PhysicsJoint_setTag(lua_State *L) static int _olua_cls_cc_PhysicsJoint(lua_State *L) { oluacls_class(L, "cc.PhysicsJoint"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PhysicsJoint___olua_move); oluacls_func(L, "getBodyA", _olua_fun_cocos2d_PhysicsJoint_getBodyA); oluacls_func(L, "getBodyB", _olua_fun_cocos2d_PhysicsJoint_getBodyB); oluacls_func(L, "getMaxForce", _olua_fun_cocos2d_PhysicsJoint_getMaxForce); @@ -5557,23 +5493,11 @@ OLUA_END_DECLS #endif #if CC_USE_PHYSICS -static int _olua_fun_cocos2d_PhysicsShape_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cc_PhysicsShape_Type(lua_State *L) { oluacls_class(L, "cc.PhysicsShape.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_PhysicsShape_Type___call); oluacls_enum(L, "BOX", (lua_Integer)cocos2d::PhysicsShape::Type::BOX); oluacls_enum(L, "CIRCLE", (lua_Integer)cocos2d::PhysicsShape::Type::CIRCLE); oluacls_enum(L, "EDGEBOX", (lua_Integer)cocos2d::PhysicsShape::Type::EDGEBOX); @@ -7588,18 +7512,6 @@ static int _olua_fun_cocos2d_PhysicsRayCastInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_PhysicsRayCastInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PhysicsRayCastInfo *)olua_toobj(L, 1, "cc.PhysicsRayCastInfo"); - olua_push_object(L, self, "cc.PhysicsRayCastInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PhysicsRayCastInfo_contact$1(lua_State *L) { olua_startinvoke(L); @@ -7996,7 +7908,6 @@ static int _olua_cls_cc_PhysicsRayCastInfo(lua_State *L) { oluacls_class(L, "cc.PhysicsRayCastInfo"); oluacls_func(L, "__gc", _olua_fun_cocos2d_PhysicsRayCastInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PhysicsRayCastInfo___olua_move); oluacls_prop(L, "contact", _olua_fun_cocos2d_PhysicsRayCastInfo_contact, _olua_fun_cocos2d_PhysicsRayCastInfo_contact); oluacls_prop(L, "data", _olua_fun_cocos2d_PhysicsRayCastInfo_data, _olua_fun_cocos2d_PhysicsRayCastInfo_data); oluacls_prop(L, "end", _olua_fun_cocos2d_PhysicsRayCastInfo_end, _olua_fun_cocos2d_PhysicsRayCastInfo_end); @@ -8021,18 +7932,6 @@ OLUA_END_DECLS #endif #if CC_USE_PHYSICS -static int _olua_fun_cocos2d_PhysicsWorld___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::PhysicsWorld *)olua_toobj(L, 1, "cc.PhysicsWorld"); - olua_push_object(L, self, "cc.PhysicsWorld"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_PhysicsWorld_addJoint(lua_State *L) { olua_startinvoke(L); @@ -8850,7 +8749,6 @@ static int _olua_fun_cocos2d_PhysicsWorld_step(lua_State *L) static int _olua_cls_cc_PhysicsWorld(lua_State *L) { oluacls_class(L, "cc.PhysicsWorld"); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_PhysicsWorld___olua_move); oluacls_func(L, "addJoint", _olua_fun_cocos2d_PhysicsWorld_addJoint); oluacls_func(L, "getAllBodies", _olua_fun_cocos2d_PhysicsWorld_getAllBodies); oluacls_func(L, "getBody", _olua_fun_cocos2d_PhysicsWorld_getBody); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp index 21b5bc5e..29322ff8 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp @@ -36,18 +36,6 @@ static int _olua_fun_cocostudio_timeline_AnimationInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_timeline_AnimationInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::timeline::AnimationInfo *)olua_toobj(L, 1, "ccs.timeline.AnimationInfo"); - olua_push_object(L, self, "ccs.timeline.AnimationInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_timeline_AnimationInfo_clipEndCallBack$1(lua_State *L) { olua_startinvoke(L); @@ -363,7 +351,6 @@ static int _olua_cls_ccs_timeline_AnimationInfo(lua_State *L) { oluacls_class(L, "ccs.timeline.AnimationInfo"); oluacls_func(L, "__gc", _olua_fun_cocostudio_timeline_AnimationInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_timeline_AnimationInfo___olua_move); oluacls_func(L, "new", _olua_fun_cocostudio_timeline_AnimationInfo_new); oluacls_prop(L, "clipEndCallBack", _olua_fun_cocostudio_timeline_AnimationInfo_clipEndCallBack, _olua_fun_cocostudio_timeline_AnimationInfo_clipEndCallBack); oluacls_prop(L, "endIndex", _olua_fun_cocostudio_timeline_AnimationInfo_endIndex, _olua_fun_cocostudio_timeline_AnimationInfo_endIndex); @@ -396,18 +383,6 @@ static int _olua_fun_cocos2d_CSLoader___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_CSLoader___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::CSLoader *)olua_toobj(L, 1, "cc.CSLoader"); - olua_push_object(L, self, "cc.CSLoader"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_CSLoader_bindCallback(lua_State *L) { olua_startinvoke(L); @@ -977,7 +952,6 @@ static int _olua_cls_cc_CSLoader(lua_State *L) { oluacls_class(L, "cc.CSLoader"); oluacls_func(L, "__gc", _olua_fun_cocos2d_CSLoader___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_CSLoader___olua_move); oluacls_func(L, "bindCallback", _olua_fun_cocos2d_CSLoader_bindCallback); oluacls_func(L, "createNode", _olua_fun_cocos2d_CSLoader_createNode); oluacls_func(L, "createNodeFromJson", _olua_fun_cocos2d_CSLoader_createNodeFromJson); @@ -1014,23 +988,11 @@ OLUA_LIB int luaopen_cc_CSLoader(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocostudio_MovementEventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccs_MovementEventType(lua_State *L) { oluacls_class(L, "ccs.MovementEventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocostudio_MovementEventType___call); oluacls_enum(L, "COMPLETE", (lua_Integer)cocostudio::MovementEventType::COMPLETE); oluacls_enum(L, "LOOP_COMPLETE", (lua_Integer)cocostudio::MovementEventType::LOOP_COMPLETE); oluacls_enum(L, "START", (lua_Integer)cocostudio::MovementEventType::START); @@ -1049,23 +1011,11 @@ OLUA_LIB int luaopen_ccs_MovementEventType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocostudio_DisplayType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccs_DisplayType(lua_State *L) { oluacls_class(L, "ccs.DisplayType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocostudio_DisplayType___call); oluacls_enum(L, "CS_DISPLAY_ARMATURE", (lua_Integer)cocostudio::DisplayType::CS_DISPLAY_ARMATURE); oluacls_enum(L, "CS_DISPLAY_MAX", (lua_Integer)cocostudio::DisplayType::CS_DISPLAY_MAX); oluacls_enum(L, "CS_DISPLAY_PARTICLE", (lua_Integer)cocostudio::DisplayType::CS_DISPLAY_PARTICLE); @@ -8244,23 +8194,10 @@ static int _olua_fun_cocostudio_CocoLoader___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_CocoLoader___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::CocoLoader *)olua_toobj(L, 1, "ccs.CocoLoader"); - olua_push_object(L, self, "ccs.CocoLoader"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccs_CocoLoader(lua_State *L) { oluacls_class(L, "ccs.CocoLoader"); oluacls_func(L, "__gc", _olua_fun_cocostudio_CocoLoader___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_CocoLoader___olua_move); return 1; } @@ -8700,23 +8637,10 @@ static int _olua_fun_cocostudio_ColliderFilter___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_ColliderFilter___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::ColliderFilter *)olua_toobj(L, 1, "ccs.ColliderFilter"); - olua_push_object(L, self, "ccs.ColliderFilter"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccs_ColliderFilter(lua_State *L) { oluacls_class(L, "ccs.ColliderFilter"); oluacls_func(L, "__gc", _olua_fun_cocostudio_ColliderFilter___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_ColliderFilter___olua_move); return 1; } @@ -10785,18 +10709,6 @@ static int _olua_fun_cocostudio_DataReaderHelper___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_DataReaderHelper___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::DataReaderHelper *)olua_toobj(L, 1, "ccs.DataReaderHelper"); - olua_push_object(L, self, "ccs.DataReaderHelper"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_DataReaderHelper_addDataAsyncCallBack(lua_State *L) { olua_startinvoke(L); @@ -10923,7 +10835,6 @@ static int _olua_cls_ccs_DataReaderHelper(lua_State *L) { oluacls_class(L, "ccs.DataReaderHelper"); oluacls_func(L, "__gc", _olua_fun_cocostudio_DataReaderHelper___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_DataReaderHelper___olua_move); oluacls_func(L, "addDataAsyncCallBack", _olua_fun_cocostudio_DataReaderHelper_addDataAsyncCallBack); oluacls_func(L, "addDataFromFile", _olua_fun_cocostudio_DataReaderHelper_addDataFromFile); oluacls_func(L, "getInstance", _olua_fun_cocostudio_DataReaderHelper_getInstance); @@ -11140,18 +11051,6 @@ static int _olua_fun_cocostudio_DisplayFactory___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_DisplayFactory___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::DisplayFactory *)olua_toobj(L, 1, "ccs.DisplayFactory"); - olua_push_object(L, self, "ccs.DisplayFactory"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_DisplayFactory_addArmatureDisplay(lua_State *L) { olua_startinvoke(L); @@ -11390,7 +11289,6 @@ static int _olua_cls_ccs_DisplayFactory(lua_State *L) { oluacls_class(L, "ccs.DisplayFactory"); oluacls_func(L, "__gc", _olua_fun_cocostudio_DisplayFactory___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_DisplayFactory___olua_move); oluacls_func(L, "addArmatureDisplay", _olua_fun_cocostudio_DisplayFactory_addArmatureDisplay); oluacls_func(L, "addDisplay", _olua_fun_cocostudio_DisplayFactory_addDisplay); oluacls_func(L, "addParticleDisplay", _olua_fun_cocostudio_DisplayFactory_addParticleDisplay); @@ -12911,18 +12809,6 @@ static int _olua_fun_cocostudio_InputDelegate___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_InputDelegate___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::InputDelegate *)olua_toobj(L, 1, "ccs.InputDelegate"); - olua_push_object(L, self, "ccs.InputDelegate"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_InputDelegate_getTouchMode(lua_State *L) { olua_startinvoke(L); @@ -13345,7 +13231,6 @@ static int _olua_cls_ccs_InputDelegate(lua_State *L) { oluacls_class(L, "ccs.InputDelegate"); oluacls_func(L, "__gc", _olua_fun_cocostudio_InputDelegate___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_InputDelegate___olua_move); oluacls_func(L, "getTouchMode", _olua_fun_cocostudio_InputDelegate_getTouchMode); oluacls_func(L, "getTouchPriority", _olua_fun_cocostudio_InputDelegate_getTouchPriority); oluacls_func(L, "isAccelerometerEnabled", _olua_fun_cocostudio_InputDelegate_isAccelerometerEnabled); @@ -14376,23 +14261,11 @@ OLUA_LIB int luaopen_ccs_ParticleDisplayData(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocostudio_SceneReader_AttachComponentType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccs_SceneReader_AttachComponentType(lua_State *L) { oluacls_class(L, "ccs.SceneReader.AttachComponentType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocostudio_SceneReader_AttachComponentType___call); oluacls_enum(L, "DEFAULT", (lua_Integer)cocostudio::SceneReader::AttachComponentType::DEFAULT); oluacls_enum(L, "EMPTY_NODE", (lua_Integer)cocostudio::SceneReader::AttachComponentType::EMPTY_NODE); oluacls_enum(L, "RENDER_NODE", (lua_Integer)cocostudio::SceneReader::AttachComponentType::RENDER_NODE); @@ -14423,18 +14296,6 @@ static int _olua_fun_cocostudio_SceneReader___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_SceneReader___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::SceneReader *)olua_toobj(L, 1, "ccs.SceneReader"); - olua_push_object(L, self, "ccs.SceneReader"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_SceneReader_createNodeWithSceneFile$1(lua_State *L) { olua_startinvoke(L); @@ -14641,7 +14502,6 @@ static int _olua_cls_ccs_SceneReader(lua_State *L) { oluacls_class(L, "ccs.SceneReader"); oluacls_func(L, "__gc", _olua_fun_cocostudio_SceneReader___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_SceneReader___olua_move); oluacls_func(L, "createNodeWithSceneFile", _olua_fun_cocostudio_SceneReader_createNodeWithSceneFile); oluacls_func(L, "destroyInstance", _olua_fun_cocostudio_SceneReader_destroyInstance); oluacls_func(L, "getAttachComponentType", _olua_fun_cocostudio_SceneReader_getAttachComponentType); @@ -15005,18 +14865,6 @@ OLUA_LIB int luaopen_ccs_SpriteDisplayData(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocostudio_SpriteFrameCacheHelper___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::SpriteFrameCacheHelper *)olua_toobj(L, 1, "ccs.SpriteFrameCacheHelper"); - olua_push_object(L, self, "ccs.SpriteFrameCacheHelper"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_SpriteFrameCacheHelper_addSpriteFrameFromFile(lua_State *L) { olua_startinvoke(L); @@ -15083,7 +14931,6 @@ static int _olua_fun_cocostudio_SpriteFrameCacheHelper_removeSpriteFrameFromFile static int _olua_cls_ccs_SpriteFrameCacheHelper(lua_State *L) { oluacls_class(L, "ccs.SpriteFrameCacheHelper"); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_SpriteFrameCacheHelper___olua_move); oluacls_func(L, "addSpriteFrameFromFile", _olua_fun_cocostudio_SpriteFrameCacheHelper_addSpriteFrameFromFile); oluacls_func(L, "getInstance", _olua_fun_cocostudio_SpriteFrameCacheHelper_getInstance); oluacls_func(L, "purge", _olua_fun_cocostudio_SpriteFrameCacheHelper_purge); @@ -15813,23 +15660,11 @@ OLUA_LIB int luaopen_ccs_Tween(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocostudio_timeline_InnerActionType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccs_timeline_InnerActionType(lua_State *L) { oluacls_class(L, "ccs.timeline.InnerActionType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocostudio_timeline_InnerActionType___call); oluacls_enum(L, "LoopAction", (lua_Integer)cocostudio::timeline::InnerActionType::LoopAction); oluacls_enum(L, "NoLoopAction", (lua_Integer)cocostudio::timeline::InnerActionType::NoLoopAction); oluacls_enum(L, "SingleFrame", (lua_Integer)cocostudio::timeline::InnerActionType::SingleFrame); @@ -17778,18 +17613,6 @@ static int _olua_fun_cocostudio_timeline_ActionTimelineCache___gc(lua_State *L) return 0; } -static int _olua_fun_cocostudio_timeline_ActionTimelineCache___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocostudio::timeline::ActionTimelineCache *)olua_toobj(L, 1, "ccs.timeline.ActionTimelineCache"); - olua_push_object(L, self, "ccs.timeline.ActionTimelineCache"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocostudio_timeline_ActionTimelineCache_createAction(lua_State *L) { olua_startinvoke(L); @@ -18065,7 +17888,6 @@ static int _olua_cls_ccs_timeline_ActionTimelineCache(lua_State *L) { oluacls_class(L, "ccs.timeline.ActionTimelineCache"); oluacls_func(L, "__gc", _olua_fun_cocostudio_timeline_ActionTimelineCache___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocostudio_timeline_ActionTimelineCache___olua_move); oluacls_func(L, "createAction", _olua_fun_cocostudio_timeline_ActionTimelineCache_createAction); oluacls_func(L, "createActionFromContent", _olua_fun_cocostudio_timeline_ActionTimelineCache_createActionFromContent); oluacls_func(L, "createActionFromJson", _olua_fun_cocostudio_timeline_ActionTimelineCache_createActionFromJson); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp index bdc798ea..ab48731b 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp @@ -197,6 +197,63 @@ OLUA_LIB bool olua_canpack_object(lua_State *L, int idx, const cocos2d::ccBezier return olua_is_object(L, idx + 0, "cc.Vec2") && olua_is_object(L, idx + 1, "cc.Vec2") && olua_is_object(L, idx + 2, "cc.Vec2"); } +static int _olua_fun_cocos2d_Vec2___add(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec2 *self = nullptr; + cocos2d::Vec2 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec2"); + olua_check_object(L, 2, &arg1, "cc.Vec2"); + + // @operator(operator+) cocos2d::Vec2 __add(const cocos2d::Vec2 &v) + cocos2d::Vec2 ret = self->operator+(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec2"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec2___div(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec2 *self = nullptr; + float arg1 = 0; /** s */ + + olua_to_object(L, 1, &self, "cc.Vec2"); + olua_check_number(L, 2, &arg1); + + // @operator(operator/) cocos2d::Vec2 __div(float s) + cocos2d::Vec2 ret = self->operator/(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec2"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec2___eq(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec2 *self = nullptr; + cocos2d::Vec2 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec2"); + olua_check_object(L, 2, &arg1, "cc.Vec2"); + + // @operator(operator==) bool __eq(const cocos2d::Vec2 &v) + bool ret = self->operator==(*arg1); + int num_ret = olua_push_bool(L, ret); + + olua_endinvoke(L); + + return num_ret; +} + static int _olua_fun_cocos2d_Vec2___gc(lua_State *L) { olua_startinvoke(L); @@ -209,16 +266,78 @@ static int _olua_fun_cocos2d_Vec2___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Vec2___olua_move(lua_State *L) +static int _olua_fun_cocos2d_Vec2___lt(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::Vec2 *)olua_toobj(L, 1, "cc.Vec2"); - olua_push_object(L, self, "cc.Vec2"); + cocos2d::Vec2 *self = nullptr; + cocos2d::Vec2 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec2"); + olua_check_object(L, 2, &arg1, "cc.Vec2"); + + // @operator(operator<) bool __lt(const cocos2d::Vec2 &v) + bool ret = self->operator<(*arg1); + int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); - return 1; + return num_ret; +} + +static int _olua_fun_cocos2d_Vec2___mul(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec2 *self = nullptr; + float arg1 = 0; /** s */ + + olua_to_object(L, 1, &self, "cc.Vec2"); + olua_check_number(L, 2, &arg1); + + // @operator(operator*) cocos2d::Vec2 __mul(float s) + cocos2d::Vec2 ret = self->operator*(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec2"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec2___sub(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec2 *self = nullptr; + cocos2d::Vec2 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec2"); + olua_check_object(L, 2, &arg1, "cc.Vec2"); + + // @operator(operator-) cocos2d::Vec2 __sub(const cocos2d::Vec2 &v) + cocos2d::Vec2 ret = self->operator-(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec2"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec2___unm(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec2 *self = nullptr; + + olua_to_object(L, 1, &self, "cc.Vec2"); + + // @operator(operator-) cocos2d::Vec2 __unm() + cocos2d::Vec2 ret = self->operator-(); + int num_ret = olua_copy_object(L, ret, "cc.Vec2"); + + olua_endinvoke(L); + + return num_ret; } static int _olua_fun_cocos2d_Vec2_add$1(lua_State *L) @@ -1853,8 +1972,14 @@ static int _olua_fun_cocos2d_Vec2_y(lua_State *L) static int _olua_cls_cc_Vec2(lua_State *L) { oluacls_class(L, "cc.Vec2"); + oluacls_func(L, "__add", _olua_fun_cocos2d_Vec2___add); + oluacls_func(L, "__div", _olua_fun_cocos2d_Vec2___div); + oluacls_func(L, "__eq", _olua_fun_cocos2d_Vec2___eq); oluacls_func(L, "__gc", _olua_fun_cocos2d_Vec2___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Vec2___olua_move); + oluacls_func(L, "__lt", _olua_fun_cocos2d_Vec2___lt); + oluacls_func(L, "__mul", _olua_fun_cocos2d_Vec2___mul); + oluacls_func(L, "__sub", _olua_fun_cocos2d_Vec2___sub); + oluacls_func(L, "__unm", _olua_fun_cocos2d_Vec2___unm); oluacls_func(L, "add", _olua_fun_cocos2d_Vec2_add); oluacls_func(L, "angle", _olua_fun_cocos2d_Vec2_angle); oluacls_func(L, "clamp", _olua_fun_cocos2d_Vec2_clamp); @@ -1936,6 +2061,63 @@ OLUA_LIB int luaopen_cc_Vec2(lua_State *L) } OLUA_END_DECLS +static int _olua_fun_cocos2d_Vec3___add(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec3 *self = nullptr; + cocos2d::Vec3 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec3"); + olua_check_object(L, 2, &arg1, "cc.Vec3"); + + // @operator(operator+) cocos2d::Vec3 __add(const cocos2d::Vec3 &v) + cocos2d::Vec3 ret = self->operator+(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec3"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec3___div(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec3 *self = nullptr; + float arg1 = 0; /** s */ + + olua_to_object(L, 1, &self, "cc.Vec3"); + olua_check_number(L, 2, &arg1); + + // @operator(operator/) cocos2d::Vec3 __div(float s) + cocos2d::Vec3 ret = self->operator/(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec3"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec3___eq(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec3 *self = nullptr; + cocos2d::Vec3 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec3"); + olua_check_object(L, 2, &arg1, "cc.Vec3"); + + // @operator(operator==) bool __eq(const cocos2d::Vec3 &v) + bool ret = self->operator==(*arg1); + int num_ret = olua_push_bool(L, ret); + + olua_endinvoke(L); + + return num_ret; +} + static int _olua_fun_cocos2d_Vec3___gc(lua_State *L) { olua_startinvoke(L); @@ -1948,16 +2130,78 @@ static int _olua_fun_cocos2d_Vec3___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Vec3___olua_move(lua_State *L) +static int _olua_fun_cocos2d_Vec3___lt(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::Vec3 *)olua_toobj(L, 1, "cc.Vec3"); - olua_push_object(L, self, "cc.Vec3"); + cocos2d::Vec3 *self = nullptr; + cocos2d::Vec3 *arg1; /** rhs */ + + olua_to_object(L, 1, &self, "cc.Vec3"); + olua_check_object(L, 2, &arg1, "cc.Vec3"); + + // @operator(operator<) bool __lt(const cocos2d::Vec3 &rhs) + bool ret = self->operator<(*arg1); + int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); - return 1; + return num_ret; +} + +static int _olua_fun_cocos2d_Vec3___mul(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec3 *self = nullptr; + float arg1 = 0; /** s */ + + olua_to_object(L, 1, &self, "cc.Vec3"); + olua_check_number(L, 2, &arg1); + + // @operator(operator*) cocos2d::Vec3 __mul(float s) + cocos2d::Vec3 ret = self->operator*(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec3"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec3___sub(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec3 *self = nullptr; + cocos2d::Vec3 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec3"); + olua_check_object(L, 2, &arg1, "cc.Vec3"); + + // @operator(operator-) cocos2d::Vec3 __sub(const cocos2d::Vec3 &v) + cocos2d::Vec3 ret = self->operator-(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec3"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec3___unm(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec3 *self = nullptr; + + olua_to_object(L, 1, &self, "cc.Vec3"); + + // @operator(operator-) cocos2d::Vec3 __unm() + cocos2d::Vec3 ret = self->operator-(); + int num_ret = olua_copy_object(L, ret, "cc.Vec3"); + + olua_endinvoke(L); + + return num_ret; } static int _olua_fun_cocos2d_Vec3_add$1(lua_State *L) @@ -2957,8 +3201,14 @@ static int _olua_fun_cocos2d_Vec3_z(lua_State *L) static int _olua_cls_cc_Vec3(lua_State *L) { oluacls_class(L, "cc.Vec3"); + oluacls_func(L, "__add", _olua_fun_cocos2d_Vec3___add); + oluacls_func(L, "__div", _olua_fun_cocos2d_Vec3___div); + oluacls_func(L, "__eq", _olua_fun_cocos2d_Vec3___eq); oluacls_func(L, "__gc", _olua_fun_cocos2d_Vec3___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Vec3___olua_move); + oluacls_func(L, "__lt", _olua_fun_cocos2d_Vec3___lt); + oluacls_func(L, "__mul", _olua_fun_cocos2d_Vec3___mul); + oluacls_func(L, "__sub", _olua_fun_cocos2d_Vec3___sub); + oluacls_func(L, "__unm", _olua_fun_cocos2d_Vec3___unm); oluacls_func(L, "add", _olua_fun_cocos2d_Vec3_add); oluacls_func(L, "angle", _olua_fun_cocos2d_Vec3_angle); oluacls_func(L, "clamp", _olua_fun_cocos2d_Vec3_clamp); @@ -3007,6 +3257,63 @@ OLUA_LIB int luaopen_cc_Vec3(lua_State *L) } OLUA_END_DECLS +static int _olua_fun_cocos2d_Vec4___add(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec4 *self = nullptr; + cocos2d::Vec4 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec4"); + olua_check_object(L, 2, &arg1, "cc.Vec4"); + + // @operator(operator+) cocos2d::Vec4 __add(const cocos2d::Vec4 &v) + cocos2d::Vec4 ret = self->operator+(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec4"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec4___div(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec4 *self = nullptr; + float arg1 = 0; /** s */ + + olua_to_object(L, 1, &self, "cc.Vec4"); + olua_check_number(L, 2, &arg1); + + // @operator(operator/) cocos2d::Vec4 __div(float s) + cocos2d::Vec4 ret = self->operator/(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec4"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec4___eq(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec4 *self = nullptr; + cocos2d::Vec4 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec4"); + olua_check_object(L, 2, &arg1, "cc.Vec4"); + + // @operator(operator==) bool __eq(const cocos2d::Vec4 &v) + bool ret = self->operator==(*arg1); + int num_ret = olua_push_bool(L, ret); + + olua_endinvoke(L); + + return num_ret; +} + static int _olua_fun_cocos2d_Vec4___gc(lua_State *L) { olua_startinvoke(L); @@ -3019,16 +3326,78 @@ static int _olua_fun_cocos2d_Vec4___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Vec4___olua_move(lua_State *L) +static int _olua_fun_cocos2d_Vec4___lt(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::Vec4 *)olua_toobj(L, 1, "cc.Vec4"); - olua_push_object(L, self, "cc.Vec4"); + cocos2d::Vec4 *self = nullptr; + cocos2d::Vec4 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec4"); + olua_check_object(L, 2, &arg1, "cc.Vec4"); + + // @operator(operator<) bool __lt(const cocos2d::Vec4 &v) + bool ret = self->operator<(*arg1); + int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); - return 1; + return num_ret; +} + +static int _olua_fun_cocos2d_Vec4___mul(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec4 *self = nullptr; + float arg1 = 0; /** s */ + + olua_to_object(L, 1, &self, "cc.Vec4"); + olua_check_number(L, 2, &arg1); + + // @operator(operator*) cocos2d::Vec4 __mul(float s) + cocos2d::Vec4 ret = self->operator*(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec4"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec4___sub(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec4 *self = nullptr; + cocos2d::Vec4 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Vec4"); + olua_check_object(L, 2, &arg1, "cc.Vec4"); + + // @operator(operator-) cocos2d::Vec4 __sub(const cocos2d::Vec4 &v) + cocos2d::Vec4 ret = self->operator-(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec4"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Vec4___unm(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Vec4 *self = nullptr; + + olua_to_object(L, 1, &self, "cc.Vec4"); + + // @operator(operator-) cocos2d::Vec4 __unm() + cocos2d::Vec4 ret = self->operator-(); + int num_ret = olua_copy_object(L, ret, "cc.Vec4"); + + olua_endinvoke(L); + + return num_ret; } static int _olua_fun_cocos2d_Vec4_add$1(lua_State *L) @@ -3941,8 +4310,14 @@ static int _olua_fun_cocos2d_Vec4_z(lua_State *L) static int _olua_cls_cc_Vec4(lua_State *L) { oluacls_class(L, "cc.Vec4"); + oluacls_func(L, "__add", _olua_fun_cocos2d_Vec4___add); + oluacls_func(L, "__div", _olua_fun_cocos2d_Vec4___div); + oluacls_func(L, "__eq", _olua_fun_cocos2d_Vec4___eq); oluacls_func(L, "__gc", _olua_fun_cocos2d_Vec4___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Vec4___olua_move); + oluacls_func(L, "__lt", _olua_fun_cocos2d_Vec4___lt); + oluacls_func(L, "__mul", _olua_fun_cocos2d_Vec4___mul); + oluacls_func(L, "__sub", _olua_fun_cocos2d_Vec4___sub); + oluacls_func(L, "__unm", _olua_fun_cocos2d_Vec4___unm); oluacls_func(L, "add", _olua_fun_cocos2d_Vec4_add); oluacls_func(L, "angle", _olua_fun_cocos2d_Vec4_angle); oluacls_func(L, "clamp", _olua_fun_cocos2d_Vec4_clamp); @@ -3989,6 +4364,44 @@ OLUA_LIB int luaopen_cc_Vec4(lua_State *L) } OLUA_END_DECLS +static int _olua_fun_cocos2d_Size___add(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Size *self = nullptr; + cocos2d::Size *arg1; /** right */ + + olua_to_object(L, 1, &self, "cc.Size"); + olua_check_object(L, 2, &arg1, "cc.Size"); + + // @operator(operator+) cocos2d::Size __add(const cocos2d::Size &right) + cocos2d::Size ret = self->operator+(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Size"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Size___div(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Size *self = nullptr; + float arg1 = 0; /** a */ + + olua_to_object(L, 1, &self, "cc.Size"); + olua_check_number(L, 2, &arg1); + + // @operator(operator/) cocos2d::Size __div(float a) + cocos2d::Size ret = self->operator/(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Size"); + + olua_endinvoke(L); + + return num_ret; +} + static int _olua_fun_cocos2d_Size___gc(lua_State *L) { olua_startinvoke(L); @@ -4001,16 +4414,42 @@ static int _olua_fun_cocos2d_Size___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Size___olua_move(lua_State *L) +static int _olua_fun_cocos2d_Size___mul(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Size *self = nullptr; + float arg1 = 0; /** a */ + + olua_to_object(L, 1, &self, "cc.Size"); + olua_check_number(L, 2, &arg1); + + // @operator(operator*) cocos2d::Size __mul(float a) + cocos2d::Size ret = self->operator*(arg1); + int num_ret = olua_copy_object(L, ret, "cc.Size"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Size___sub(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::Size *)olua_toobj(L, 1, "cc.Size"); - olua_push_object(L, self, "cc.Size"); + cocos2d::Size *self = nullptr; + cocos2d::Size *arg1; /** right */ + + olua_to_object(L, 1, &self, "cc.Size"); + olua_check_object(L, 2, &arg1, "cc.Size"); + + // @operator(operator-) cocos2d::Size __sub(const cocos2d::Size &right) + cocos2d::Size ret = self->operator-(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Size"); olua_endinvoke(L); - return 1; + return num_ret; } static int _olua_fun_cocos2d_Size_equals(lua_State *L) @@ -4247,8 +4686,11 @@ static int _olua_fun_cocos2d_Size_width(lua_State *L) static int _olua_cls_cc_Size(lua_State *L) { oluacls_class(L, "cc.Size"); + oluacls_func(L, "__add", _olua_fun_cocos2d_Size___add); + oluacls_func(L, "__div", _olua_fun_cocos2d_Size___div); oluacls_func(L, "__gc", _olua_fun_cocos2d_Size___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Size___olua_move); + oluacls_func(L, "__mul", _olua_fun_cocos2d_Size___mul); + oluacls_func(L, "__sub", _olua_fun_cocos2d_Size___sub); oluacls_func(L, "equals", _olua_fun_cocos2d_Size_equals); oluacls_func(L, "new", _olua_fun_cocos2d_Size_new); oluacls_func(L, "setSize", _olua_fun_cocos2d_Size_setSize); @@ -4294,18 +4736,6 @@ static int _olua_fun_cocos2d_Rect___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Rect___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Rect *)olua_toobj(L, 1, "cc.Rect"); - olua_push_object(L, self, "cc.Rect"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Rect_containsPoint(lua_State *L) { olua_startinvoke(L); @@ -4750,7 +5180,6 @@ static int _olua_cls_cc_Rect(lua_State *L) oluacls_class(L, "cc.Rect"); oluacls_func(L, "__call", _olua_fun_cocos2d_Rect___call); oluacls_func(L, "__gc", _olua_fun_cocos2d_Rect___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Rect___olua_move); oluacls_func(L, "containsPoint", _olua_fun_cocos2d_Rect_containsPoint); oluacls_func(L, "equals", _olua_fun_cocos2d_Rect_equals); oluacls_func(L, "getMaxX", _olua_fun_cocos2d_Rect_getMaxX); @@ -4801,18 +5230,6 @@ static int _olua_fun_cocos2d_Bounds___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Bounds___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Bounds *)olua_toobj(L, 1, "cc.Bounds"); - olua_push_object(L, self, "cc.Bounds"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Bounds_bottom$1(lua_State *L) { olua_startinvoke(L); @@ -5055,7 +5472,6 @@ static int _olua_cls_cc_Bounds(lua_State *L) { oluacls_class(L, "cc.Bounds"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Bounds___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Bounds___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_Bounds_new); oluacls_prop(L, "bottom", _olua_fun_cocos2d_Bounds_bottom, _olua_fun_cocos2d_Bounds_bottom); oluacls_prop(L, "left", _olua_fun_cocos2d_Bounds_left, _olua_fun_cocos2d_Bounds_left); @@ -5076,7 +5492,26 @@ OLUA_LIB int luaopen_cc_Bounds(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_Mat4___add(lua_State *L) +static int _olua_fun_cocos2d_Mat4___add$1(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Mat4 *self = nullptr; + cocos2d::Mat4 *arg1; /** mat */ + + olua_to_object(L, 1, &self, "cc.Mat4"); + olua_check_object(L, 2, &arg1, "cc.Mat4"); + + // @operator(operator+) cocos2d::Mat4 __add(const cocos2d::Mat4 &mat) + cocos2d::Mat4 ret = self->operator+(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Mat4"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Mat4___add$2(lua_State *L) { olua_startinvoke(L); @@ -5098,6 +5533,27 @@ static int _olua_fun_cocos2d_Mat4___add(lua_State *L) return num_ret; } +static int _olua_fun_cocos2d_Mat4___add(lua_State *L) +{ + int num_args = lua_gettop(L) - 1; + + if (num_args == 1) { + if ((olua_is_object(L, 2, "cc.Mat4"))) { + // @operator(operator+) cocos2d::Mat4 __add(const cocos2d::Mat4 &mat) + return _olua_fun_cocos2d_Mat4___add$1(L); + } + + // if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_is_object(L, 2, "cc.Mat4"))) { + // @postnew @extend(cocos2d::Mat4Extend) static cocos2d::Mat4 *__add(cocos2d::Mat4 *mat1, cocos2d::Mat4 *mat2) + return _olua_fun_cocos2d_Mat4___add$2(L); + // } + } + + luaL_error(L, "method 'cocos2d::Mat4::__add' not support '%d' arguments", num_args); + + return 0; +} + static int _olua_fun_cocos2d_Mat4___gc(lua_State *L) { olua_startinvoke(L); @@ -5110,7 +5566,26 @@ static int _olua_fun_cocos2d_Mat4___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Mat4___mul(lua_State *L) +static int _olua_fun_cocos2d_Mat4___mul$1(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Mat4 *self = nullptr; + cocos2d::Mat4 *arg1; /** mat */ + + olua_to_object(L, 1, &self, "cc.Mat4"); + olua_check_object(L, 2, &arg1, "cc.Mat4"); + + // @operator(operator*) cocos2d::Mat4 __mul(const cocos2d::Mat4 &mat) + cocos2d::Mat4 ret = self->operator*(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Mat4"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Mat4___mul$2(lua_State *L) { olua_startinvoke(L); @@ -5132,19 +5607,47 @@ static int _olua_fun_cocos2d_Mat4___mul(lua_State *L) return num_ret; } -static int _olua_fun_cocos2d_Mat4___olua_move(lua_State *L) +static int _olua_fun_cocos2d_Mat4___mul(lua_State *L) +{ + int num_args = lua_gettop(L) - 1; + + if (num_args == 1) { + if ((olua_is_object(L, 2, "cc.Mat4"))) { + // @operator(operator*) cocos2d::Mat4 __mul(const cocos2d::Mat4 &mat) + return _olua_fun_cocos2d_Mat4___mul$1(L); + } + + // if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_is_object(L, 2, "cc.Mat4"))) { + // @postnew @extend(cocos2d::Mat4Extend) static cocos2d::Mat4 *__mul(cocos2d::Mat4 *mat1, cocos2d::Mat4 *mat2) + return _olua_fun_cocos2d_Mat4___mul$2(L); + // } + } + + luaL_error(L, "method 'cocos2d::Mat4::__mul' not support '%d' arguments", num_args); + + return 0; +} + +static int _olua_fun_cocos2d_Mat4___sub$1(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::Mat4 *)olua_toobj(L, 1, "cc.Mat4"); - olua_push_object(L, self, "cc.Mat4"); + cocos2d::Mat4 *self = nullptr; + cocos2d::Mat4 *arg1; /** mat */ + + olua_to_object(L, 1, &self, "cc.Mat4"); + olua_check_object(L, 2, &arg1, "cc.Mat4"); + + // @operator(operator-) cocos2d::Mat4 __sub(const cocos2d::Mat4 &mat) + cocos2d::Mat4 ret = self->operator-(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Mat4"); olua_endinvoke(L); - return 1; + return num_ret; } -static int _olua_fun_cocos2d_Mat4___sub(lua_State *L) +static int _olua_fun_cocos2d_Mat4___sub$2(lua_State *L) { olua_startinvoke(L); @@ -5166,6 +5669,44 @@ static int _olua_fun_cocos2d_Mat4___sub(lua_State *L) return num_ret; } +static int _olua_fun_cocos2d_Mat4___sub(lua_State *L) +{ + int num_args = lua_gettop(L) - 1; + + if (num_args == 1) { + if ((olua_is_object(L, 2, "cc.Mat4"))) { + // @operator(operator-) cocos2d::Mat4 __sub(const cocos2d::Mat4 &mat) + return _olua_fun_cocos2d_Mat4___sub$1(L); + } + + // if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_is_object(L, 2, "cc.Mat4"))) { + // @postnew @extend(cocos2d::Mat4Extend) static cocos2d::Mat4 *__sub(cocos2d::Mat4 *mat1, cocos2d::Mat4 *mat2) + return _olua_fun_cocos2d_Mat4___sub$2(L); + // } + } + + luaL_error(L, "method 'cocos2d::Mat4::__sub' not support '%d' arguments", num_args); + + return 0; +} + +static int _olua_fun_cocos2d_Mat4___unm(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Mat4 *self = nullptr; + + olua_to_object(L, 1, &self, "cc.Mat4"); + + // @operator(operator-) cocos2d::Mat4 __unm() + cocos2d::Mat4 ret = self->operator-(); + int num_ret = olua_copy_object(L, ret, "cc.Mat4"); + + olua_endinvoke(L); + + return num_ret; +} + static int _olua_fun_cocos2d_Mat4_add$1(lua_State *L) { olua_startinvoke(L); @@ -7469,8 +8010,8 @@ static int _olua_cls_cc_Mat4(lua_State *L) oluacls_func(L, "__add", _olua_fun_cocos2d_Mat4___add); oluacls_func(L, "__gc", _olua_fun_cocos2d_Mat4___gc); oluacls_func(L, "__mul", _olua_fun_cocos2d_Mat4___mul); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Mat4___olua_move); oluacls_func(L, "__sub", _olua_fun_cocos2d_Mat4___sub); + oluacls_func(L, "__unm", _olua_fun_cocos2d_Mat4___unm); oluacls_func(L, "add", _olua_fun_cocos2d_Mat4_add); oluacls_func(L, "createBillboard", _olua_fun_cocos2d_Mat4_createBillboard); oluacls_func(L, "createLookAt", _olua_fun_cocos2d_Mat4_createLookAt); @@ -7549,18 +8090,6 @@ static int _olua_fun_cocos2d_Viewport___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Viewport___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Viewport *)olua_toobj(L, 1, "cc.Viewport"); - olua_push_object(L, self, "cc.Viewport"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Viewport_h$1(lua_State *L) { olua_startinvoke(L); @@ -7789,7 +8318,6 @@ static int _olua_cls_cc_Viewport(lua_State *L) { oluacls_class(L, "cc.Viewport"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Viewport___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Viewport___olua_move); oluacls_prop(L, "h", _olua_fun_cocos2d_Viewport_h, _olua_fun_cocos2d_Viewport_h); oluacls_prop(L, "w", _olua_fun_cocos2d_Viewport_w, _olua_fun_cocos2d_Viewport_w); oluacls_prop(L, "x", _olua_fun_cocos2d_Viewport_x, _olua_fun_cocos2d_Viewport_x); @@ -7821,18 +8349,6 @@ static int _olua_fun_cocos2d_ScissorRect___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ScissorRect___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ScissorRect *)olua_toobj(L, 1, "cc.ScissorRect"); - olua_push_object(L, self, "cc.ScissorRect"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ScissorRect_height$1(lua_State *L) { olua_startinvoke(L); @@ -8061,7 +8577,6 @@ static int _olua_cls_cc_ScissorRect(lua_State *L) { oluacls_class(L, "cc.ScissorRect"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ScissorRect___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ScissorRect___olua_move); oluacls_prop(L, "height", _olua_fun_cocos2d_ScissorRect_height, _olua_fun_cocos2d_ScissorRect_height); oluacls_prop(L, "width", _olua_fun_cocos2d_ScissorRect_width, _olua_fun_cocos2d_ScissorRect_width); oluacls_prop(L, "x", _olua_fun_cocos2d_ScissorRect_x, _olua_fun_cocos2d_ScissorRect_x); @@ -8093,16 +8608,63 @@ static int _olua_fun_cocos2d_Quaternion___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Quaternion___olua_move(lua_State *L) +static int _olua_fun_cocos2d_Quaternion___mul$1(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::Quaternion *)olua_toobj(L, 1, "cc.Quaternion"); - olua_push_object(L, self, "cc.Quaternion"); + cocos2d::Quaternion *self = nullptr; + cocos2d::Quaternion *arg1; /** q */ + + olua_to_object(L, 1, &self, "cc.Quaternion"); + olua_check_object(L, 2, &arg1, "cc.Quaternion"); + + // @operator(operator*) cocos2d::Quaternion __mul(const cocos2d::Quaternion &q) + cocos2d::Quaternion ret = self->operator*(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Quaternion"); olua_endinvoke(L); - return 1; + return num_ret; +} + +static int _olua_fun_cocos2d_Quaternion___mul$2(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::Quaternion *self = nullptr; + cocos2d::Vec3 *arg1; /** v */ + + olua_to_object(L, 1, &self, "cc.Quaternion"); + olua_check_object(L, 2, &arg1, "cc.Vec3"); + + // @operator(operator*) cocos2d::Vec3 __mul(const cocos2d::Vec3 &v) + cocos2d::Vec3 ret = self->operator*(*arg1); + int num_ret = olua_copy_object(L, ret, "cc.Vec3"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_cocos2d_Quaternion___mul(lua_State *L) +{ + int num_args = lua_gettop(L) - 1; + + if (num_args == 1) { + if ((olua_is_object(L, 2, "cc.Vec3"))) { + // @operator(operator*) cocos2d::Vec3 __mul(const cocos2d::Vec3 &v) + return _olua_fun_cocos2d_Quaternion___mul$2(L); + } + + // if ((olua_is_object(L, 2, "cc.Quaternion"))) { + // @operator(operator*) cocos2d::Quaternion __mul(const cocos2d::Quaternion &q) + return _olua_fun_cocos2d_Quaternion___mul$1(L); + // } + } + + luaL_error(L, "method 'cocos2d::Quaternion::__mul' not support '%d' arguments", num_args); + + return 0; } static int _olua_fun_cocos2d_Quaternion_conjugate(lua_State *L) @@ -8969,7 +9531,7 @@ static int _olua_cls_cc_Quaternion(lua_State *L) { oluacls_class(L, "cc.Quaternion"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Quaternion___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Quaternion___olua_move); + oluacls_func(L, "__mul", _olua_fun_cocos2d_Quaternion___mul); oluacls_func(L, "conjugate", _olua_fun_cocos2d_Quaternion_conjugate); oluacls_func(L, "createFromAxisAngle", _olua_fun_cocos2d_Quaternion_createFromAxisAngle); oluacls_func(L, "createFromRotationMatrix", _olua_fun_cocos2d_Quaternion_createFromRotationMatrix); @@ -9025,18 +9587,6 @@ static int _olua_fun_cocos2d_AffineTransform___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_AffineTransform___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::AffineTransform *)olua_toobj(L, 1, "cc.AffineTransform"); - olua_push_object(L, self, "cc.AffineTransform"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_AffineTransform_a$1(lua_State *L) { olua_startinvoke(L); @@ -9377,7 +9927,6 @@ static int _olua_cls_cc_AffineTransform(lua_State *L) { oluacls_class(L, "cc.AffineTransform"); oluacls_func(L, "__gc", _olua_fun_cocos2d_AffineTransform___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_AffineTransform___olua_move); oluacls_prop(L, "a", _olua_fun_cocos2d_AffineTransform_a, _olua_fun_cocos2d_AffineTransform_a); oluacls_prop(L, "b", _olua_fun_cocos2d_AffineTransform_b, _olua_fun_cocos2d_AffineTransform_b); oluacls_prop(L, "c", _olua_fun_cocos2d_AffineTransform_c, _olua_fun_cocos2d_AffineTransform_c); @@ -9412,18 +9961,6 @@ static int _olua_fun_GLContextAttrs___gc(lua_State *L) return 0; } -static int _olua_fun_GLContextAttrs___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (GLContextAttrs *)olua_toobj(L, 1, "cc.GLContextAttrs"); - olua_push_object(L, self, "cc.GLContextAttrs"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_GLContextAttrs_alphaBits$1(lua_State *L) { olua_startinvoke(L); @@ -9820,7 +10357,6 @@ static int _olua_cls_cc_GLContextAttrs(lua_State *L) { oluacls_class(L, "cc.GLContextAttrs"); oluacls_func(L, "__gc", _olua_fun_GLContextAttrs___gc); - oluacls_func(L, "__olua_move", _olua_fun_GLContextAttrs___olua_move); oluacls_prop(L, "alphaBits", _olua_fun_GLContextAttrs_alphaBits, _olua_fun_GLContextAttrs_alphaBits); oluacls_prop(L, "blueBits", _olua_fun_GLContextAttrs_blueBits, _olua_fun_GLContextAttrs_blueBits); oluacls_prop(L, "depthBits", _olua_fun_GLContextAttrs_depthBits, _olua_fun_GLContextAttrs_depthBits); @@ -9855,18 +10391,6 @@ static int _olua_fun_cocos2d_Tex2F___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Tex2F___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Tex2F *)olua_toobj(L, 1, "cc.Tex2F"); - olua_push_object(L, self, "cc.Tex2F"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Tex2F_new$1(lua_State *L) { olua_startinvoke(L); @@ -10038,7 +10562,6 @@ static int _olua_cls_cc_Tex2F(lua_State *L) { oluacls_class(L, "cc.Tex2F"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Tex2F___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Tex2F___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_Tex2F_new); oluacls_prop(L, "u", _olua_fun_cocos2d_Tex2F_u, _olua_fun_cocos2d_Tex2F_u); oluacls_prop(L, "v", _olua_fun_cocos2d_Tex2F_v, _olua_fun_cocos2d_Tex2F_v); @@ -10069,18 +10592,6 @@ static int _olua_fun_cocos2d_T2F_Quad___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_T2F_Quad___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::T2F_Quad *)olua_toobj(L, 1, "cc.T2F_Quad"); - olua_push_object(L, self, "cc.T2F_Quad"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_T2F_Quad_bl$1(lua_State *L) { olua_startinvoke(L); @@ -10309,7 +10820,6 @@ static int _olua_cls_cc_T2F_Quad(lua_State *L) { oluacls_class(L, "cc.T2F_Quad"); oluacls_func(L, "__gc", _olua_fun_cocos2d_T2F_Quad___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_T2F_Quad___olua_move); oluacls_prop(L, "bl", _olua_fun_cocos2d_T2F_Quad_bl, _olua_fun_cocos2d_T2F_Quad_bl); oluacls_prop(L, "br", _olua_fun_cocos2d_T2F_Quad_br, _olua_fun_cocos2d_T2F_Quad_br); oluacls_prop(L, "tl", _olua_fun_cocos2d_T2F_Quad_tl, _olua_fun_cocos2d_T2F_Quad_tl); @@ -10341,18 +10851,6 @@ static int _olua_fun_cocos2d_ccBezierConfig___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ccBezierConfig___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ccBezierConfig *)olua_toobj(L, 1, "cc.ccBezierConfig"); - olua_push_object(L, self, "cc.ccBezierConfig"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ccBezierConfig_controlPoint_1$1(lua_State *L) { olua_startinvoke(L); @@ -10525,7 +11023,6 @@ static int _olua_cls_cc_ccBezierConfig(lua_State *L) { oluacls_class(L, "cc.ccBezierConfig"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ccBezierConfig___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ccBezierConfig___olua_move); oluacls_prop(L, "controlPoint_1", _olua_fun_cocos2d_ccBezierConfig_controlPoint_1, _olua_fun_cocos2d_ccBezierConfig_controlPoint_1); oluacls_prop(L, "controlPoint_2", _olua_fun_cocos2d_ccBezierConfig_controlPoint_2, _olua_fun_cocos2d_ccBezierConfig_controlPoint_2); oluacls_prop(L, "endPosition", _olua_fun_cocos2d_ccBezierConfig_endPosition, _olua_fun_cocos2d_ccBezierConfig_endPosition); @@ -10544,28 +11041,16 @@ OLUA_LIB int luaopen_cc_ccBezierConfig(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_TTFConfig___gc(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::TTFConfig *)olua_toobj(L, 1, "cc.TTFConfig"); - olua_postgc(L, self); - - olua_endinvoke(L); - - return 0; -} - -static int _olua_fun_cocos2d_TTFConfig___olua_move(lua_State *L) +static int _olua_fun_cocos2d_TTFConfig___gc(lua_State *L) { olua_startinvoke(L); auto self = (cocos2d::TTFConfig *)olua_toobj(L, 1, "cc.TTFConfig"); - olua_push_object(L, self, "cc.TTFConfig"); + olua_postgc(L, self); olua_endinvoke(L); - return 1; + return 0; } static int _olua_fun_cocos2d_TTFConfig_bold$1(lua_State *L) @@ -11132,7 +11617,6 @@ static int _olua_cls_cc_TTFConfig(lua_State *L) { oluacls_class(L, "cc.TTFConfig"); oluacls_func(L, "__gc", _olua_fun_cocos2d_TTFConfig___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_TTFConfig___olua_move); oluacls_prop(L, "bold", _olua_fun_cocos2d_TTFConfig_bold, _olua_fun_cocos2d_TTFConfig_bold); oluacls_prop(L, "customGlyphs", _olua_fun_cocos2d_TTFConfig_customGlyphs, _olua_fun_cocos2d_TTFConfig_customGlyphs); oluacls_prop(L, "distanceFieldEnabled", _olua_fun_cocos2d_TTFConfig_distanceFieldEnabled, _olua_fun_cocos2d_TTFConfig_distanceFieldEnabled); @@ -11158,6 +11642,25 @@ OLUA_LIB int luaopen_cc_TTFConfig(lua_State *L) } OLUA_END_DECLS +static int _olua_fun_cocos2d_BlendFunc___eq(lua_State *L) +{ + olua_startinvoke(L); + + cocos2d::BlendFunc *self = nullptr; + cocos2d::BlendFunc *arg1; /** a */ + + olua_to_object(L, 1, &self, "cc.BlendFunc"); + olua_check_object(L, 2, &arg1, "cc.BlendFunc"); + + // @operator(operator==) bool __eq(const cocos2d::BlendFunc &a) + bool ret = self->operator==(*arg1); + int num_ret = olua_push_bool(L, ret); + + olua_endinvoke(L); + + return num_ret; +} + static int _olua_fun_cocos2d_BlendFunc___gc(lua_State *L) { olua_startinvoke(L); @@ -11170,16 +11673,23 @@ static int _olua_fun_cocos2d_BlendFunc___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_BlendFunc___olua_move(lua_State *L) +static int _olua_fun_cocos2d_BlendFunc___lt(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::BlendFunc *)olua_toobj(L, 1, "cc.BlendFunc"); - olua_push_object(L, self, "cc.BlendFunc"); + cocos2d::BlendFunc *self = nullptr; + cocos2d::BlendFunc *arg1; /** a */ + + olua_to_object(L, 1, &self, "cc.BlendFunc"); + olua_check_object(L, 2, &arg1, "cc.BlendFunc"); + + // @operator(operator<) bool __lt(const cocos2d::BlendFunc &a) + bool ret = self->operator<(*arg1); + int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); - return 1; + return num_ret; } static int _olua_fun_cocos2d_BlendFunc_dst$1(lua_State *L) @@ -11297,8 +11807,9 @@ static int _olua_fun_cocos2d_BlendFunc_src(lua_State *L) static int _olua_cls_cc_BlendFunc(lua_State *L) { oluacls_class(L, "cc.BlendFunc"); + oluacls_func(L, "__eq", _olua_fun_cocos2d_BlendFunc___eq); oluacls_func(L, "__gc", _olua_fun_cocos2d_BlendFunc___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_BlendFunc___olua_move); + oluacls_func(L, "__lt", _olua_fun_cocos2d_BlendFunc___lt); oluacls_prop(L, "dst", _olua_fun_cocos2d_BlendFunc_dst, _olua_fun_cocos2d_BlendFunc_dst); oluacls_prop(L, "src", _olua_fun_cocos2d_BlendFunc_src, _olua_fun_cocos2d_BlendFunc_src); oluacls_const(L, "ADDITIVE", &cocos2d::BlendFunc::ADDITIVE); @@ -11332,18 +11843,6 @@ static int _olua_fun_cocos2d_ui_Margin___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ui_Margin___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ui::Margin *)olua_toobj(L, 1, "cc.ui.Margin"); - olua_push_object(L, self, "cc.ui.Margin"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ui_Margin_bottom$1(lua_State *L) { olua_startinvoke(L); @@ -11674,7 +12173,6 @@ static int _olua_cls_cc_ui_Margin(lua_State *L) { oluacls_class(L, "cc.ui.Margin"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ui_Margin___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ui_Margin___olua_move); oluacls_func(L, "equals", _olua_fun_cocos2d_ui_Margin_equals); oluacls_func(L, "new", _olua_fun_cocos2d_ui_Margin_new); oluacls_func(L, "setMargin", _olua_fun_cocos2d_ui_Margin_setMargin); @@ -11710,18 +12208,6 @@ static int _olua_fun_cocos2d_ResourceData___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ResourceData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ResourceData *)olua_toobj(L, 1, "cc.ResourceData"); - olua_push_object(L, self, "cc.ResourceData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ResourceData_file$1(lua_State *L) { olua_startinvoke(L); @@ -11951,7 +12437,6 @@ static int _olua_cls_cc_ResourceData(lua_State *L) { oluacls_class(L, "cc.ResourceData"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ResourceData___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ResourceData___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_ResourceData_new); oluacls_prop(L, "file", _olua_fun_cocos2d_ResourceData_file, _olua_fun_cocos2d_ResourceData_file); oluacls_prop(L, "plist", _olua_fun_cocos2d_ResourceData_plist, _olua_fun_cocos2d_ResourceData_plist); @@ -11983,18 +12468,6 @@ static int _olua_fun_cocos2d_Quad3___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Quad3___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Quad3 *)olua_toobj(L, 1, "cc.Quad3"); - olua_push_object(L, self, "cc.Quad3"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Quad3_bl$1(lua_State *L) { olua_startinvoke(L); @@ -12223,7 +12696,6 @@ static int _olua_cls_cc_Quad3(lua_State *L) { oluacls_class(L, "cc.Quad3"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Quad3___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Quad3___olua_move); oluacls_prop(L, "bl", _olua_fun_cocos2d_Quad3_bl, _olua_fun_cocos2d_Quad3_bl); oluacls_prop(L, "br", _olua_fun_cocos2d_Quad3_br, _olua_fun_cocos2d_Quad3_br); oluacls_prop(L, "tl", _olua_fun_cocos2d_Quad3_tl, _olua_fun_cocos2d_Quad3_tl); @@ -12255,18 +12727,6 @@ static int _olua_fun_cocos2d_Texture2D_PixelFormatInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Texture2D_PixelFormatInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Texture2D::PixelFormatInfo *)olua_toobj(L, 1, "cc.Texture2D.PixelFormatInfo"); - olua_push_object(L, self, "cc.Texture2D.PixelFormatInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Texture2D_PixelFormatInfo_alpha$1(lua_State *L) { olua_startinvoke(L); @@ -12461,7 +12921,6 @@ static int _olua_cls_cc_Texture2D_PixelFormatInfo(lua_State *L) { oluacls_class(L, "cc.Texture2D.PixelFormatInfo"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Texture2D_PixelFormatInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Texture2D_PixelFormatInfo___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_Texture2D_PixelFormatInfo_new); oluacls_prop(L, "alpha", _olua_fun_cocos2d_Texture2D_PixelFormatInfo_alpha, _olua_fun_cocos2d_Texture2D_PixelFormatInfo_alpha); oluacls_prop(L, "bpp", _olua_fun_cocos2d_Texture2D_PixelFormatInfo_bpp, _olua_fun_cocos2d_Texture2D_PixelFormatInfo_bpp); @@ -12493,18 +12952,6 @@ static int _olua_fun_cocos2d_Controller_KeyStatus___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_Controller_KeyStatus___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::Controller::KeyStatus *)olua_toobj(L, 1, "cc.Controller.KeyStatus"); - olua_push_object(L, self, "cc.Controller.KeyStatus"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_Controller_KeyStatus_isAnalog$1(lua_State *L) { olua_startinvoke(L); @@ -12677,7 +13124,6 @@ static int _olua_cls_cc_Controller_KeyStatus(lua_State *L) { oluacls_class(L, "cc.Controller.KeyStatus"); oluacls_func(L, "__gc", _olua_fun_cocos2d_Controller_KeyStatus___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_Controller_KeyStatus___olua_move); oluacls_prop(L, "isAnalog", _olua_fun_cocos2d_Controller_KeyStatus_isAnalog, _olua_fun_cocos2d_Controller_KeyStatus_isAnalog); oluacls_prop(L, "isPressed", _olua_fun_cocos2d_Controller_KeyStatus_isPressed, _olua_fun_cocos2d_Controller_KeyStatus_isPressed); oluacls_prop(L, "value", _olua_fun_cocos2d_Controller_KeyStatus_value, _olua_fun_cocos2d_Controller_KeyStatus_value); @@ -12709,18 +13155,6 @@ static int _olua_fun_cocos2d_NavMeshAgentParam___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_NavMeshAgentParam___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::NavMeshAgentParam *)olua_toobj(L, 1, "cc.NavMeshAgentParam"); - olua_push_object(L, self, "cc.NavMeshAgentParam"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_NavMeshAgentParam_collisionQueryRange$1(lua_State *L) { olua_startinvoke(L); @@ -13299,7 +13733,6 @@ static int _olua_cls_cc_NavMeshAgentParam(lua_State *L) { oluacls_class(L, "cc.NavMeshAgentParam"); oluacls_func(L, "__gc", _olua_fun_cocos2d_NavMeshAgentParam___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_NavMeshAgentParam___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_NavMeshAgentParam_new); oluacls_prop(L, "collisionQueryRange", _olua_fun_cocos2d_NavMeshAgentParam_collisionQueryRange, _olua_fun_cocos2d_NavMeshAgentParam_collisionQueryRange); oluacls_prop(L, "height", _olua_fun_cocos2d_NavMeshAgentParam_height, _olua_fun_cocos2d_NavMeshAgentParam_height); @@ -13340,18 +13773,6 @@ static int _olua_fun_cocos2d_OffMeshLinkData___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_OffMeshLinkData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::OffMeshLinkData *)olua_toobj(L, 1, "cc.OffMeshLinkData"); - olua_push_object(L, self, "cc.OffMeshLinkData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_OffMeshLinkData_endPosition$1(lua_State *L) { olua_startinvoke(L); @@ -13468,7 +13889,6 @@ static int _olua_cls_cc_OffMeshLinkData(lua_State *L) { oluacls_class(L, "cc.OffMeshLinkData"); oluacls_func(L, "__gc", _olua_fun_cocos2d_OffMeshLinkData___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_OffMeshLinkData___olua_move); oluacls_prop(L, "endPosition", _olua_fun_cocos2d_OffMeshLinkData_endPosition, _olua_fun_cocos2d_OffMeshLinkData_endPosition); oluacls_prop(L, "startPosition", _olua_fun_cocos2d_OffMeshLinkData_startPosition, _olua_fun_cocos2d_OffMeshLinkData_startPosition); @@ -13499,18 +13919,6 @@ static int _olua_fun_cocos2d_backend_BlendDescriptor___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_BlendDescriptor___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::BlendDescriptor *)olua_toobj(L, 1, "ccb.BlendDescriptor"); - olua_push_object(L, self, "ccb.BlendDescriptor"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_BlendDescriptor_alphaBlendOperation$1(lua_State *L) { olua_startinvoke(L); @@ -13963,7 +14371,6 @@ static int _olua_cls_ccb_BlendDescriptor(lua_State *L) { oluacls_class(L, "ccb.BlendDescriptor"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_BlendDescriptor___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_BlendDescriptor___olua_move); oluacls_prop(L, "alphaBlendOperation", _olua_fun_cocos2d_backend_BlendDescriptor_alphaBlendOperation, _olua_fun_cocos2d_backend_BlendDescriptor_alphaBlendOperation); oluacls_prop(L, "blendEnabled", _olua_fun_cocos2d_backend_BlendDescriptor_blendEnabled, _olua_fun_cocos2d_backend_BlendDescriptor_blendEnabled); oluacls_prop(L, "destinationAlphaBlendFactor", _olua_fun_cocos2d_backend_BlendDescriptor_destinationAlphaBlendFactor, _olua_fun_cocos2d_backend_BlendDescriptor_destinationAlphaBlendFactor); @@ -13999,18 +14406,6 @@ static int _olua_fun_cocos2d_backend_SamplerDescriptor___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_SamplerDescriptor___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::SamplerDescriptor *)olua_toobj(L, 1, "ccb.SamplerDescriptor"); - olua_push_object(L, self, "ccb.SamplerDescriptor"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_SamplerDescriptor_magFilter$1(lua_State *L) { olua_startinvoke(L); @@ -14298,7 +14693,6 @@ static int _olua_cls_ccb_SamplerDescriptor(lua_State *L) { oluacls_class(L, "ccb.SamplerDescriptor"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_SamplerDescriptor___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_SamplerDescriptor___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_backend_SamplerDescriptor_new); oluacls_prop(L, "magFilter", _olua_fun_cocos2d_backend_SamplerDescriptor_magFilter, _olua_fun_cocos2d_backend_SamplerDescriptor_magFilter); oluacls_prop(L, "minFilter", _olua_fun_cocos2d_backend_SamplerDescriptor_minFilter, _olua_fun_cocos2d_backend_SamplerDescriptor_minFilter); @@ -14331,18 +14725,6 @@ static int _olua_fun_cocos2d_backend_TextureInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_TextureInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::TextureInfo *)olua_toobj(L, 1, "ccb.TextureInfo"); - olua_push_object(L, self, "ccb.TextureInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_TextureInfo_new$1(lua_State *L) { olua_startinvoke(L); @@ -14558,7 +14940,6 @@ static int _olua_cls_ccb_TextureInfo(lua_State *L) { oluacls_class(L, "ccb.TextureInfo"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_TextureInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_TextureInfo___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_backend_TextureInfo_new); oluacls_func(L, "releaseTextures", _olua_fun_cocos2d_backend_TextureInfo_releaseTextures); oluacls_func(L, "retainTextures", _olua_fun_cocos2d_backend_TextureInfo_retainTextures); @@ -14591,18 +14972,6 @@ static int _olua_fun_cocos2d_backend_AttributeBindInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_AttributeBindInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::AttributeBindInfo *)olua_toobj(L, 1, "ccb.AttributeBindInfo"); - olua_push_object(L, self, "ccb.AttributeBindInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_AttributeBindInfo_attributeName$1(lua_State *L) { olua_startinvoke(L); @@ -14831,7 +15200,6 @@ static int _olua_cls_ccb_AttributeBindInfo(lua_State *L) { oluacls_class(L, "ccb.AttributeBindInfo"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_AttributeBindInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_AttributeBindInfo___olua_move); oluacls_prop(L, "attributeName", _olua_fun_cocos2d_backend_AttributeBindInfo_attributeName, _olua_fun_cocos2d_backend_AttributeBindInfo_attributeName); oluacls_prop(L, "location", _olua_fun_cocos2d_backend_AttributeBindInfo_location, _olua_fun_cocos2d_backend_AttributeBindInfo_location); oluacls_prop(L, "size", _olua_fun_cocos2d_backend_AttributeBindInfo_size, _olua_fun_cocos2d_backend_AttributeBindInfo_size); @@ -14863,18 +15231,6 @@ static int _olua_fun_cocos2d_backend_UniformInfo___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_UniformInfo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::UniformInfo *)olua_toobj(L, 1, "ccb.UniformInfo"); - olua_push_object(L, self, "ccb.UniformInfo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_UniformInfo_bufferOffset$1(lua_State *L) { olua_startinvoke(L); @@ -15327,7 +15683,6 @@ static int _olua_cls_ccb_UniformInfo(lua_State *L) { oluacls_class(L, "ccb.UniformInfo"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_UniformInfo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_UniformInfo___olua_move); oluacls_prop(L, "bufferOffset", _olua_fun_cocos2d_backend_UniformInfo_bufferOffset, _olua_fun_cocos2d_backend_UniformInfo_bufferOffset); oluacls_prop(L, "count", _olua_fun_cocos2d_backend_UniformInfo_count, _olua_fun_cocos2d_backend_UniformInfo_count); oluacls_prop(L, "isArray", _olua_fun_cocos2d_backend_UniformInfo_isArray, _olua_fun_cocos2d_backend_UniformInfo_isArray); @@ -15363,18 +15718,6 @@ static int _olua_fun_cocos2d_backend_TextureDescriptor___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_TextureDescriptor___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::TextureDescriptor *)olua_toobj(L, 1, "ccb.TextureDescriptor"); - olua_push_object(L, self, "ccb.TextureDescriptor"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_TextureDescriptor_depth$1(lua_State *L) { olua_startinvoke(L); @@ -15827,7 +16170,6 @@ static int _olua_cls_ccb_TextureDescriptor(lua_State *L) { oluacls_class(L, "ccb.TextureDescriptor"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_TextureDescriptor___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_TextureDescriptor___olua_move); oluacls_prop(L, "depth", _olua_fun_cocos2d_backend_TextureDescriptor_depth, _olua_fun_cocos2d_backend_TextureDescriptor_depth); oluacls_prop(L, "height", _olua_fun_cocos2d_backend_TextureDescriptor_height, _olua_fun_cocos2d_backend_TextureDescriptor_height); oluacls_prop(L, "sampleCount", _olua_fun_cocos2d_backend_TextureDescriptor_sampleCount, _olua_fun_cocos2d_backend_TextureDescriptor_sampleCount); @@ -15851,28 +16193,35 @@ OLUA_LIB int luaopen_ccb_TextureDescriptor(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_backend_StencilDescriptor___gc(lua_State *L) +static int _olua_fun_cocos2d_backend_StencilDescriptor___eq(lua_State *L) { olua_startinvoke(L); - auto self = (cocos2d::backend::StencilDescriptor *)olua_toobj(L, 1, "ccb.StencilDescriptor"); - olua_postgc(L, self); + cocos2d::backend::StencilDescriptor *self = nullptr; + cocos2d::backend::StencilDescriptor *arg1; /** rhs */ + + olua_to_object(L, 1, &self, "ccb.StencilDescriptor"); + olua_check_object(L, 2, &arg1, "ccb.StencilDescriptor"); + + // @operator(operator==) bool __eq(const cocos2d::backend::StencilDescriptor &rhs) + bool ret = self->operator==(*arg1); + int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); - return 0; + return num_ret; } -static int _olua_fun_cocos2d_backend_StencilDescriptor___olua_move(lua_State *L) +static int _olua_fun_cocos2d_backend_StencilDescriptor___gc(lua_State *L) { olua_startinvoke(L); auto self = (cocos2d::backend::StencilDescriptor *)olua_toobj(L, 1, "ccb.StencilDescriptor"); - olua_push_object(L, self, "ccb.StencilDescriptor"); + olua_postgc(L, self); olua_endinvoke(L); - return 1; + return 0; } static int _olua_fun_cocos2d_backend_StencilDescriptor_depthFailureOperation$1(lua_State *L) @@ -16214,8 +16563,8 @@ static int _olua_fun_cocos2d_backend_StencilDescriptor_writeMask(lua_State *L) static int _olua_cls_ccb_StencilDescriptor(lua_State *L) { oluacls_class(L, "ccb.StencilDescriptor"); + oluacls_func(L, "__eq", _olua_fun_cocos2d_backend_StencilDescriptor___eq); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_StencilDescriptor___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_StencilDescriptor___olua_move); oluacls_prop(L, "depthFailureOperation", _olua_fun_cocos2d_backend_StencilDescriptor_depthFailureOperation, _olua_fun_cocos2d_backend_StencilDescriptor_depthFailureOperation); oluacls_prop(L, "depthStencilPassOperation", _olua_fun_cocos2d_backend_StencilDescriptor_depthStencilPassOperation, _olua_fun_cocos2d_backend_StencilDescriptor_depthStencilPassOperation); oluacls_prop(L, "readMask", _olua_fun_cocos2d_backend_StencilDescriptor_readMask, _olua_fun_cocos2d_backend_StencilDescriptor_readMask); @@ -16249,18 +16598,6 @@ static int _olua_fun_cocos2d_backend_DepthStencilDescriptor___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_DepthStencilDescriptor___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::DepthStencilDescriptor *)olua_toobj(L, 1, "ccb.DepthStencilDescriptor"); - olua_push_object(L, self, "ccb.DepthStencilDescriptor"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_DepthStencilDescriptor_backFaceStencil$1(lua_State *L) { olua_startinvoke(L); @@ -16601,7 +16938,6 @@ static int _olua_cls_ccb_DepthStencilDescriptor(lua_State *L) { oluacls_class(L, "ccb.DepthStencilDescriptor"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_DepthStencilDescriptor___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_DepthStencilDescriptor___olua_move); oluacls_prop(L, "backFaceStencil", _olua_fun_cocos2d_backend_DepthStencilDescriptor_backFaceStencil, _olua_fun_cocos2d_backend_DepthStencilDescriptor_backFaceStencil); oluacls_prop(L, "depthCompareFunction", _olua_fun_cocos2d_backend_DepthStencilDescriptor_depthCompareFunction, _olua_fun_cocos2d_backend_DepthStencilDescriptor_depthCompareFunction); oluacls_prop(L, "depthTestEnabled", _olua_fun_cocos2d_backend_DepthStencilDescriptor_depthTestEnabled, _olua_fun_cocos2d_backend_DepthStencilDescriptor_depthTestEnabled); @@ -16635,18 +16971,6 @@ static int _olua_fun_cocos2d_backend_VertexLayout_Attribute___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_backend_VertexLayout_Attribute___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::backend::VertexLayout::Attribute *)olua_toobj(L, 1, "ccb.VertexLayout.Attribute"); - olua_push_object(L, self, "ccb.VertexLayout.Attribute"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_backend_VertexLayout_Attribute_format$1(lua_State *L) { olua_startinvoke(L); @@ -16992,7 +17316,6 @@ static int _olua_cls_ccb_VertexLayout_Attribute(lua_State *L) { oluacls_class(L, "ccb.VertexLayout.Attribute"); oluacls_func(L, "__gc", _olua_fun_cocos2d_backend_VertexLayout_Attribute___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_backend_VertexLayout_Attribute___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_backend_VertexLayout_Attribute_new); oluacls_prop(L, "format", _olua_fun_cocos2d_backend_VertexLayout_Attribute_format, _olua_fun_cocos2d_backend_VertexLayout_Attribute_format); oluacls_prop(L, "index", _olua_fun_cocos2d_backend_VertexLayout_Attribute_index, _olua_fun_cocos2d_backend_VertexLayout_Attribute_index); @@ -17073,18 +17396,6 @@ static int _olua_fun_cocos2d_types_VectorString___newindex(lua_State *L) return 0; } -static int _olua_fun_cocos2d_types_VectorString___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::types::VectorString *)olua_toobj(L, 1, "cc.types.VectorString"); - olua_push_object(L, self, "cc.types.VectorString"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_types_VectorString_buffer(lua_State *L) { olua_startinvoke(L); @@ -17382,13 +17693,13 @@ static int _olua_fun_cocos2d_types_VectorString_tostring(lua_State *L) olua_startinvoke(L); cocos2d::types::VectorString *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "cc.types.VectorString"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -17461,7 +17772,6 @@ static int _olua_cls_cc_types_VectorString(lua_State *L) oluacls_func(L, "__gc", _olua_fun_cocos2d_types_VectorString___gc); oluacls_func(L, "__index", _olua_fun_cocos2d_types_VectorString___index); oluacls_func(L, "__newindex", _olua_fun_cocos2d_types_VectorString___newindex); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_types_VectorString___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_types_VectorString_new); oluacls_func(L, "slice", _olua_fun_cocos2d_types_VectorString_slice); oluacls_func(L, "sub", _olua_fun_cocos2d_types_VectorString_sub); @@ -17544,18 +17854,6 @@ static int _olua_fun_cocos2d_types_VectorInt___newindex(lua_State *L) return 0; } -static int _olua_fun_cocos2d_types_VectorInt___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::types::VectorInt *)olua_toobj(L, 1, "cc.types.VectorInt"); - olua_push_object(L, self, "cc.types.VectorInt"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_types_VectorInt_buffer(lua_State *L) { olua_startinvoke(L); @@ -17853,13 +18151,13 @@ static int _olua_fun_cocos2d_types_VectorInt_tostring(lua_State *L) olua_startinvoke(L); cocos2d::types::VectorInt *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "cc.types.VectorInt"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -17932,7 +18230,6 @@ static int _olua_cls_cc_types_VectorInt(lua_State *L) oluacls_func(L, "__gc", _olua_fun_cocos2d_types_VectorInt___gc); oluacls_func(L, "__index", _olua_fun_cocos2d_types_VectorInt___index); oluacls_func(L, "__newindex", _olua_fun_cocos2d_types_VectorInt___newindex); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_types_VectorInt___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_types_VectorInt_new); oluacls_func(L, "slice", _olua_fun_cocos2d_types_VectorInt_slice); oluacls_func(L, "sub", _olua_fun_cocos2d_types_VectorInt_sub); @@ -18011,18 +18308,6 @@ static int _olua_fun_cocos2d_types_ValueMap___newindex(lua_State *L) return 0; } -static int _olua_fun_cocos2d_types_ValueMap___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::types::ValueMap *)olua_toobj(L, 1, "cc.types.ValueMap"); - olua_push_object(L, self, "cc.types.ValueMap"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_types_ValueMap_buffer(lua_State *L) { olua_startinvoke(L); @@ -18320,13 +18605,13 @@ static int _olua_fun_cocos2d_types_ValueMap_tostring(lua_State *L) olua_startinvoke(L); cocos2d::types::ValueMap *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "cc.types.ValueMap"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -18395,7 +18680,6 @@ static int _olua_cls_cc_types_ValueMap(lua_State *L) oluacls_func(L, "__gc", _olua_fun_cocos2d_types_ValueMap___gc); oluacls_func(L, "__index", _olua_fun_cocos2d_types_ValueMap___index); oluacls_func(L, "__newindex", _olua_fun_cocos2d_types_ValueMap___newindex); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_types_ValueMap___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_types_ValueMap_new); oluacls_func(L, "slice", _olua_fun_cocos2d_types_ValueMap_slice); oluacls_func(L, "sub", _olua_fun_cocos2d_types_ValueMap_sub); @@ -18474,18 +18758,6 @@ static int _olua_fun_cocos2d_types_TMXTileFlags___newindex(lua_State *L) return 0; } -static int _olua_fun_cocos2d_types_TMXTileFlags___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::types::TMXTileFlags *)olua_toobj(L, 1, "cc.types.TMXTileFlags"); - olua_push_object(L, self, "cc.types.TMXTileFlags"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_types_TMXTileFlags_buffer(lua_State *L) { olua_startinvoke(L); @@ -18783,13 +19055,13 @@ static int _olua_fun_cocos2d_types_TMXTileFlags_tostring(lua_State *L) olua_startinvoke(L); cocos2d::types::TMXTileFlags *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "cc.types.TMXTileFlags"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -18858,7 +19130,6 @@ static int _olua_cls_cc_types_TMXTileFlags(lua_State *L) oluacls_func(L, "__gc", _olua_fun_cocos2d_types_TMXTileFlags___gc); oluacls_func(L, "__index", _olua_fun_cocos2d_types_TMXTileFlags___index); oluacls_func(L, "__newindex", _olua_fun_cocos2d_types_TMXTileFlags___newindex); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_types_TMXTileFlags___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_types_TMXTileFlags_new); oluacls_func(L, "slice", _olua_fun_cocos2d_types_TMXTileFlags_slice); oluacls_func(L, "sub", _olua_fun_cocos2d_types_TMXTileFlags_sub); @@ -18937,18 +19208,6 @@ static int _olua_fun_cocos2d_types_Vec2Array___newindex(lua_State *L) return 0; } -static int _olua_fun_cocos2d_types_Vec2Array___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::types::Vec2Array *)olua_toobj(L, 1, "cc.types.Vec2Array"); - olua_push_object(L, self, "cc.types.Vec2Array"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_types_Vec2Array_buffer(lua_State *L) { olua_startinvoke(L); @@ -19246,13 +19505,13 @@ static int _olua_fun_cocos2d_types_Vec2Array_tostring(lua_State *L) olua_startinvoke(L); cocos2d::types::Vec2Array *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "cc.types.Vec2Array"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -19321,7 +19580,6 @@ static int _olua_cls_cc_types_Vec2Array(lua_State *L) oluacls_func(L, "__gc", _olua_fun_cocos2d_types_Vec2Array___gc); oluacls_func(L, "__index", _olua_fun_cocos2d_types_Vec2Array___index); oluacls_func(L, "__newindex", _olua_fun_cocos2d_types_Vec2Array___newindex); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_types_Vec2Array___olua_move); oluacls_func(L, "new", _olua_fun_cocos2d_types_Vec2Array_new); oluacls_func(L, "slice", _olua_fun_cocos2d_types_Vec2Array_slice); oluacls_func(L, "sub", _olua_fun_cocos2d_types_Vec2Array_sub); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp index 40c9cd7c..d8e365b6 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp @@ -11,23 +11,11 @@ static int _olua_module_cocos2d_ui(lua_State *L); -static int _olua_fun_cocos2d_ui_Widget_FocusDirection___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Widget_FocusDirection(lua_State *L) { oluacls_class(L, "ccui.Widget.FocusDirection"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Widget_FocusDirection___call); oluacls_enum(L, "DOWN", (lua_Integer)cocos2d::ui::Widget::FocusDirection::DOWN); oluacls_enum(L, "LEFT", (lua_Integer)cocos2d::ui::Widget::FocusDirection::LEFT); oluacls_enum(L, "RIGHT", (lua_Integer)cocos2d::ui::Widget::FocusDirection::RIGHT); @@ -47,23 +35,11 @@ OLUA_LIB int luaopen_ccui_Widget_FocusDirection(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Widget_PositionType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Widget_PositionType(lua_State *L) { oluacls_class(L, "ccui.Widget.PositionType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Widget_PositionType___call); oluacls_enum(L, "ABSOLUTE", (lua_Integer)cocos2d::ui::Widget::PositionType::ABSOLUTE); oluacls_enum(L, "PERCENT", (lua_Integer)cocos2d::ui::Widget::PositionType::PERCENT); @@ -81,23 +57,11 @@ OLUA_LIB int luaopen_ccui_Widget_PositionType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Widget_SizeType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Widget_SizeType(lua_State *L) { oluacls_class(L, "ccui.Widget.SizeType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Widget_SizeType___call); oluacls_enum(L, "ABSOLUTE", (lua_Integer)cocos2d::ui::Widget::SizeType::ABSOLUTE); oluacls_enum(L, "PERCENT", (lua_Integer)cocos2d::ui::Widget::SizeType::PERCENT); @@ -115,23 +79,11 @@ OLUA_LIB int luaopen_ccui_Widget_SizeType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Widget_TouchEventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Widget_TouchEventType(lua_State *L) { oluacls_class(L, "ccui.Widget.TouchEventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Widget_TouchEventType___call); oluacls_enum(L, "BEGAN", (lua_Integer)cocos2d::ui::Widget::TouchEventType::BEGAN); oluacls_enum(L, "CANCELED", (lua_Integer)cocos2d::ui::Widget::TouchEventType::CANCELED); oluacls_enum(L, "ENDED", (lua_Integer)cocos2d::ui::Widget::TouchEventType::ENDED); @@ -151,23 +103,11 @@ OLUA_LIB int luaopen_ccui_Widget_TouchEventType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Widget_TextureResType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Widget_TextureResType(lua_State *L) { oluacls_class(L, "ccui.Widget.TextureResType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Widget_TextureResType___call); oluacls_enum(L, "LOCAL", (lua_Integer)cocos2d::ui::Widget::TextureResType::LOCAL); oluacls_enum(L, "PLIST", (lua_Integer)cocos2d::ui::Widget::TextureResType::PLIST); @@ -185,23 +125,11 @@ OLUA_LIB int luaopen_ccui_Widget_TextureResType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Widget_BrightStyle___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Widget_BrightStyle(lua_State *L) { oluacls_class(L, "ccui.Widget.BrightStyle"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Widget_BrightStyle___call); oluacls_enum(L, "HIGHLIGHT", (lua_Integer)cocos2d::ui::Widget::BrightStyle::HIGHLIGHT); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::ui::Widget::BrightStyle::NONE); oluacls_enum(L, "NORMAL", (lua_Integer)cocos2d::ui::Widget::BrightStyle::NORMAL); @@ -362,18 +290,6 @@ static int _olua_fun_cocos2d_ui_LayoutParameterProtocol___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ui_LayoutParameterProtocol___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ui::LayoutParameterProtocol *)olua_toobj(L, 1, "ccui.LayoutParameterProtocol"); - olua_push_object(L, self, "ccui.LayoutParameterProtocol"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ui_LayoutParameterProtocol_getLayoutParameter(lua_State *L) { olua_startinvoke(L); @@ -395,7 +311,6 @@ static int _olua_cls_ccui_LayoutParameterProtocol(lua_State *L) { oluacls_class(L, "ccui.LayoutParameterProtocol"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ui_LayoutParameterProtocol___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ui_LayoutParameterProtocol___olua_move); oluacls_func(L, "getLayoutParameter", _olua_fun_cocos2d_ui_LayoutParameterProtocol_getLayoutParameter); oluacls_prop(L, "layoutParameter", _olua_fun_cocos2d_ui_LayoutParameterProtocol_getLayoutParameter, nullptr); @@ -425,18 +340,6 @@ static int _olua_fun_cocos2d_ui_LayoutProtocol___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ui_LayoutProtocol___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ui::LayoutProtocol *)olua_toobj(L, 1, "ccui.LayoutProtocol"); - olua_push_object(L, self, "ccui.LayoutProtocol"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ui_LayoutProtocol_createLayoutManager(lua_State *L) { olua_startinvoke(L); @@ -510,7 +413,6 @@ static int _olua_cls_ccui_LayoutProtocol(lua_State *L) { oluacls_class(L, "ccui.LayoutProtocol"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ui_LayoutProtocol___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ui_LayoutProtocol___olua_move); oluacls_func(L, "createLayoutManager", _olua_fun_cocos2d_ui_LayoutProtocol_createLayoutManager); oluacls_func(L, "doLayout", _olua_fun_cocos2d_ui_LayoutProtocol_doLayout); oluacls_func(L, "getLayoutContentSize", _olua_fun_cocos2d_ui_LayoutProtocol_getLayoutContentSize); @@ -2366,18 +2268,6 @@ static int _olua_fun_cocos2d_ui_Helper___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ui_Helper___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ui::Helper *)olua_toobj(L, 1, "ccui.Helper"); - olua_push_object(L, self, "ccui.Helper"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ui_Helper_changeLayoutSystemActiveState(lua_State *L) { olua_startinvoke(L); @@ -2528,7 +2418,6 @@ static int _olua_cls_ccui_Helper(lua_State *L) { oluacls_class(L, "ccui.Helper"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ui_Helper___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ui_Helper___olua_move); oluacls_func(L, "changeLayoutSystemActiveState", _olua_fun_cocos2d_ui_Helper_changeLayoutSystemActiveState); oluacls_func(L, "convertBoundingBoxToScreen", _olua_fun_cocos2d_ui_Helper_convertBoundingBoxToScreen); oluacls_func(L, "doLayout", _olua_fun_cocos2d_ui_Helper_doLayout); @@ -2552,23 +2441,11 @@ OLUA_LIB int luaopen_ccui_Helper(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Scale9Sprite_State___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Scale9Sprite_State(lua_State *L) { oluacls_class(L, "ccui.Scale9Sprite.State"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Scale9Sprite_State___call); oluacls_enum(L, "GRAY", (lua_Integer)cocos2d::ui::Scale9Sprite::State::GRAY); oluacls_enum(L, "NORMAL", (lua_Integer)cocos2d::ui::Scale9Sprite::State::NORMAL); @@ -2586,23 +2463,11 @@ OLUA_LIB int luaopen_ccui_Scale9Sprite_State(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Scale9Sprite_RenderingType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Scale9Sprite_RenderingType(lua_State *L) { oluacls_class(L, "ccui.Scale9Sprite.RenderingType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Scale9Sprite_RenderingType___call); oluacls_enum(L, "SIMPLE", (lua_Integer)cocos2d::ui::Scale9Sprite::RenderingType::SIMPLE); oluacls_enum(L, "SLICE", (lua_Integer)cocos2d::ui::Scale9Sprite::RenderingType::SLICE); @@ -3880,23 +3745,11 @@ OLUA_LIB int luaopen_ccui_Scale9Sprite(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_LayoutComponent_HorizontalEdge___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_LayoutComponent_HorizontalEdge(lua_State *L) { oluacls_class(L, "ccui.LayoutComponent.HorizontalEdge"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_LayoutComponent_HorizontalEdge___call); oluacls_enum(L, "Center", (lua_Integer)cocos2d::ui::LayoutComponent::HorizontalEdge::Center); oluacls_enum(L, "Left", (lua_Integer)cocos2d::ui::LayoutComponent::HorizontalEdge::Left); oluacls_enum(L, "None", (lua_Integer)cocos2d::ui::LayoutComponent::HorizontalEdge::None); @@ -3916,23 +3769,11 @@ OLUA_LIB int luaopen_ccui_LayoutComponent_HorizontalEdge(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_LayoutComponent_VerticalEdge___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_LayoutComponent_VerticalEdge(lua_State *L) { oluacls_class(L, "ccui.LayoutComponent.VerticalEdge"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_LayoutComponent_VerticalEdge___call); oluacls_enum(L, "Bottom", (lua_Integer)cocos2d::ui::LayoutComponent::VerticalEdge::Bottom); oluacls_enum(L, "Center", (lua_Integer)cocos2d::ui::LayoutComponent::VerticalEdge::Center); oluacls_enum(L, "None", (lua_Integer)cocos2d::ui::LayoutComponent::VerticalEdge::None); @@ -4946,23 +4787,11 @@ OLUA_LIB int luaopen_ccui_LayoutComponent(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_LayoutParameter_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_LayoutParameter_Type(lua_State *L) { oluacls_class(L, "ccui.LayoutParameter.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_LayoutParameter_Type___call); oluacls_enum(L, "LINEAR", (lua_Integer)cocos2d::ui::LayoutParameter::Type::LINEAR); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::ui::LayoutParameter::Type::NONE); oluacls_enum(L, "RELATIVE", (lua_Integer)cocos2d::ui::LayoutParameter::Type::RELATIVE); @@ -5140,23 +4969,11 @@ OLUA_LIB int luaopen_ccui_LayoutParameter(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_LinearLayoutParameter_LinearGravity___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_LinearLayoutParameter_LinearGravity(lua_State *L) { oluacls_class(L, "ccui.LinearLayoutParameter.LinearGravity"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_LinearLayoutParameter_LinearGravity___call); oluacls_enum(L, "BOTTOM", (lua_Integer)cocos2d::ui::LinearLayoutParameter::LinearGravity::BOTTOM); oluacls_enum(L, "CENTER_HORIZONTAL", (lua_Integer)cocos2d::ui::LinearLayoutParameter::LinearGravity::CENTER_HORIZONTAL); oluacls_enum(L, "CENTER_VERTICAL", (lua_Integer)cocos2d::ui::LinearLayoutParameter::LinearGravity::CENTER_VERTICAL); @@ -5264,23 +5081,11 @@ OLUA_LIB int luaopen_ccui_LinearLayoutParameter(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_RelativeLayoutParameter_RelativeAlign___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_RelativeLayoutParameter_RelativeAlign(lua_State *L) { oluacls_class(L, "ccui.RelativeLayoutParameter.RelativeAlign"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_RelativeLayoutParameter_RelativeAlign___call); oluacls_enum(L, "CENTER_IN_PARENT", (lua_Integer)cocos2d::ui::RelativeLayoutParameter::RelativeAlign::CENTER_IN_PARENT); oluacls_enum(L, "LOCATION_ABOVE_CENTER", (lua_Integer)cocos2d::ui::RelativeLayoutParameter::RelativeAlign::LOCATION_ABOVE_CENTER); oluacls_enum(L, "LOCATION_ABOVE_LEFTALIGN", (lua_Integer)cocos2d::ui::RelativeLayoutParameter::RelativeAlign::LOCATION_ABOVE_LEFTALIGN); @@ -5479,23 +5284,11 @@ OLUA_LIB int luaopen_ccui_RelativeLayoutParameter(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Layout_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Layout_Type(lua_State *L) { oluacls_class(L, "ccui.Layout.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Layout_Type___call); oluacls_enum(L, "ABSOLUTE", (lua_Integer)cocos2d::ui::Layout::Type::ABSOLUTE); oluacls_enum(L, "HORIZONTAL", (lua_Integer)cocos2d::ui::Layout::Type::HORIZONTAL); oluacls_enum(L, "RELATIVE", (lua_Integer)cocos2d::ui::Layout::Type::RELATIVE); @@ -5515,23 +5308,11 @@ OLUA_LIB int luaopen_ccui_Layout_Type(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Layout_ClippingType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Layout_ClippingType(lua_State *L) { oluacls_class(L, "ccui.Layout.ClippingType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Layout_ClippingType___call); oluacls_enum(L, "SCISSOR", (lua_Integer)cocos2d::ui::Layout::ClippingType::SCISSOR); oluacls_enum(L, "STENCIL", (lua_Integer)cocos2d::ui::Layout::ClippingType::STENCIL); @@ -5549,23 +5330,11 @@ OLUA_LIB int luaopen_ccui_Layout_ClippingType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Layout_BackGroundColorType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Layout_BackGroundColorType(lua_State *L) { oluacls_class(L, "ccui.Layout.BackGroundColorType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Layout_BackGroundColorType___call); oluacls_enum(L, "GRADIENT", (lua_Integer)cocos2d::ui::Layout::BackGroundColorType::GRADIENT); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::ui::Layout::BackGroundColorType::NONE); oluacls_enum(L, "SOLID", (lua_Integer)cocos2d::ui::Layout::BackGroundColorType::SOLID); @@ -7589,23 +7358,11 @@ OLUA_END_DECLS #endif #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -static int _olua_fun_cocos2d_ui_VideoPlayer_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_VideoPlayer_EventType(lua_State *L) { oluacls_class(L, "ccui.VideoPlayer.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_VideoPlayer_EventType___call); oluacls_enum(L, "COMPLETED", (lua_Integer)cocos2d::ui::VideoPlayer::EventType::COMPLETED); oluacls_enum(L, "ERROR", (lua_Integer)cocos2d::ui::VideoPlayer::EventType::ERROR); oluacls_enum(L, "PAUSED", (lua_Integer)cocos2d::ui::VideoPlayer::EventType::PAUSED); @@ -7661,23 +7418,11 @@ OLUA_END_DECLS #endif #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -static int _olua_fun_cocos2d_ui_VideoPlayer_StyleType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_VideoPlayer_StyleType(lua_State *L) { oluacls_class(L, "ccui.VideoPlayer.StyleType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_VideoPlayer_StyleType___call); oluacls_enum(L, "DEFAULT", (lua_Integer)cocos2d::ui::VideoPlayer::StyleType::DEFAULT); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::ui::VideoPlayer::StyleType::NONE); @@ -8911,23 +8656,11 @@ OLUA_LIB int luaopen_ccui_AbstractCheckButton(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_TabHeader_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_TabHeader_EventType(lua_State *L) { oluacls_class(L, "ccui.TabHeader.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_TabHeader_EventType___call); oluacls_enum(L, "SELECTED", (lua_Integer)cocos2d::ui::TabHeader::EventType::SELECTED); oluacls_enum(L, "UNSELECTED", (lua_Integer)cocos2d::ui::TabHeader::EventType::UNSELECTED); @@ -9312,23 +9045,11 @@ OLUA_LIB int luaopen_ccui_TabHeader(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_TabControl_Dock___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_TabControl_Dock(lua_State *L) { oluacls_class(L, "ccui.TabControl.Dock"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_TabControl_Dock___call); oluacls_enum(L, "BOTTOM", (lua_Integer)cocos2d::ui::TabControl::Dock::BOTTOM); oluacls_enum(L, "LEFT", (lua_Integer)cocos2d::ui::TabControl::Dock::LEFT); oluacls_enum(L, "RIGHT", (lua_Integer)cocos2d::ui::TabControl::Dock::RIGHT); @@ -9348,23 +9069,11 @@ OLUA_LIB int luaopen_ccui_TabControl_Dock(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_TabControl_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_TabControl_EventType(lua_State *L) { oluacls_class(L, "ccui.TabControl.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_TabControl_EventType___call); oluacls_enum(L, "SELECT_CHANGED", (lua_Integer)cocos2d::ui::TabControl::EventType::SELECT_CHANGED); return 1; @@ -9894,23 +9603,11 @@ OLUA_LIB int luaopen_ccui_TabControl(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_ScrollView_Direction___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_ScrollView_Direction(lua_State *L) { oluacls_class(L, "ccui.ScrollView.Direction"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_ScrollView_Direction___call); oluacls_enum(L, "BOTH", (lua_Integer)cocos2d::ui::ScrollView::Direction::BOTH); oluacls_enum(L, "HORIZONTAL", (lua_Integer)cocos2d::ui::ScrollView::Direction::HORIZONTAL); oluacls_enum(L, "NONE", (lua_Integer)cocos2d::ui::ScrollView::Direction::NONE); @@ -9930,23 +9627,11 @@ OLUA_LIB int luaopen_ccui_ScrollView_Direction(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_ScrollView_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_ScrollView_EventType(lua_State *L) { oluacls_class(L, "ccui.ScrollView.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_ScrollView_EventType___call); oluacls_enum(L, "AUTOSCROLL_ENDED", (lua_Integer)cocos2d::ui::ScrollView::EventType::AUTOSCROLL_ENDED); oluacls_enum(L, "BOUNCE_BOTTOM", (lua_Integer)cocos2d::ui::ScrollView::EventType::BOUNCE_BOTTOM); oluacls_enum(L, "BOUNCE_LEFT", (lua_Integer)cocos2d::ui::ScrollView::EventType::BOUNCE_LEFT); @@ -11255,23 +10940,11 @@ OLUA_LIB int luaopen_ccui_ScrollView(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_ListView_Gravity___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_ListView_Gravity(lua_State *L) { oluacls_class(L, "ccui.ListView.Gravity"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_ListView_Gravity___call); oluacls_enum(L, "BOTTOM", (lua_Integer)cocos2d::ui::ListView::Gravity::BOTTOM); oluacls_enum(L, "CENTER_HORIZONTAL", (lua_Integer)cocos2d::ui::ListView::Gravity::CENTER_HORIZONTAL); oluacls_enum(L, "CENTER_VERTICAL", (lua_Integer)cocos2d::ui::ListView::Gravity::CENTER_VERTICAL); @@ -11293,23 +10966,11 @@ OLUA_LIB int luaopen_ccui_ListView_Gravity(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_ListView_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_ListView_EventType(lua_State *L) { oluacls_class(L, "ccui.ListView.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_ListView_EventType___call); oluacls_enum(L, "ON_SELECTED_ITEM_END", (lua_Integer)cocos2d::ui::ListView::EventType::ON_SELECTED_ITEM_END); oluacls_enum(L, "ON_SELECTED_ITEM_START", (lua_Integer)cocos2d::ui::ListView::EventType::ON_SELECTED_ITEM_START); @@ -11327,23 +10988,11 @@ OLUA_LIB int luaopen_ccui_ListView_EventType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_ListView_MagneticType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_ListView_MagneticType(lua_State *L) { oluacls_class(L, "ccui.ListView.MagneticType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_ListView_MagneticType___call); oluacls_enum(L, "BOTH_END", (lua_Integer)cocos2d::ui::ListView::MagneticType::BOTH_END); oluacls_enum(L, "BOTTOM", (lua_Integer)cocos2d::ui::ListView::MagneticType::BOTTOM); oluacls_enum(L, "CENTER", (lua_Integer)cocos2d::ui::ListView::MagneticType::CENTER); @@ -12430,23 +12079,11 @@ OLUA_LIB int luaopen_ccui_ListView(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_LoadingBar_Direction___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_LoadingBar_Direction(lua_State *L) { oluacls_class(L, "ccui.LoadingBar.Direction"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_LoadingBar_Direction___call); oluacls_enum(L, "LEFT", (lua_Integer)cocos2d::ui::LoadingBar::Direction::LEFT); oluacls_enum(L, "RIGHT", (lua_Integer)cocos2d::ui::LoadingBar::Direction::RIGHT); @@ -12874,23 +12511,11 @@ OLUA_LIB int luaopen_ccui_LoadingBar(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_PageView_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_PageView_EventType(lua_State *L) { oluacls_class(L, "ccui.PageView.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_PageView_EventType___call); oluacls_enum(L, "TURNING", (lua_Integer)cocos2d::ui::PageView::EventType::TURNING); return 1; @@ -12907,23 +12532,11 @@ OLUA_LIB int luaopen_ccui_PageView_EventType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_PageView_TouchDirection___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_PageView_TouchDirection(lua_State *L) { oluacls_class(L, "ccui.PageView.TouchDirection"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_PageView_TouchDirection___call); oluacls_enum(L, "DOWN", (lua_Integer)cocos2d::ui::PageView::TouchDirection::DOWN); oluacls_enum(L, "LEFT", (lua_Integer)cocos2d::ui::PageView::TouchDirection::LEFT); oluacls_enum(L, "RIGHT", (lua_Integer)cocos2d::ui::PageView::TouchDirection::RIGHT); @@ -13831,23 +13444,11 @@ OLUA_LIB int luaopen_ccui_PageView(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_RichElement_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_RichElement_Type(lua_State *L) { oluacls_class(L, "ccui.RichElement.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_RichElement_Type___call); oluacls_enum(L, "CUSTOM", (lua_Integer)cocos2d::ui::RichElement::Type::CUSTOM); oluacls_enum(L, "IMAGE", (lua_Integer)cocos2d::ui::RichElement::Type::IMAGE); oluacls_enum(L, "NEWLINE", (lua_Integer)cocos2d::ui::RichElement::Type::NEWLINE); @@ -15162,23 +14763,11 @@ OLUA_LIB int luaopen_ccui_RichElementNewLine(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_RichText_WrapMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_RichText_WrapMode(lua_State *L) { oluacls_class(L, "ccui.RichText.WrapMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_RichText_WrapMode___call); oluacls_enum(L, "WRAP_PER_CHAR", (lua_Integer)cocos2d::ui::RichText::WrapMode::WRAP_PER_CHAR); oluacls_enum(L, "WRAP_PER_WORD", (lua_Integer)cocos2d::ui::RichText::WrapMode::WRAP_PER_WORD); @@ -15196,23 +14785,11 @@ OLUA_LIB int luaopen_ccui_RichText_WrapMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_RichText_HorizontalAlignment___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_RichText_HorizontalAlignment(lua_State *L) { oluacls_class(L, "ccui.RichText.HorizontalAlignment"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_RichText_HorizontalAlignment___call); oluacls_enum(L, "CENTER", (lua_Integer)cocos2d::ui::RichText::HorizontalAlignment::CENTER); oluacls_enum(L, "LEFT", (lua_Integer)cocos2d::ui::RichText::HorizontalAlignment::LEFT); oluacls_enum(L, "RIGHT", (lua_Integer)cocos2d::ui::RichText::HorizontalAlignment::RIGHT); @@ -16902,23 +16479,11 @@ OLUA_LIB int luaopen_ccui_ScrollViewBar(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Slider_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Slider_EventType(lua_State *L) { oluacls_class(L, "ccui.Slider.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Slider_EventType___call); oluacls_enum(L, "ON_PERCENTAGE_CHANGED", (lua_Integer)cocos2d::ui::Slider::EventType::ON_PERCENTAGE_CHANGED); oluacls_enum(L, "ON_SLIDEBALL_CANCEL", (lua_Integer)cocos2d::ui::Slider::EventType::ON_SLIDEBALL_CANCEL); oluacls_enum(L, "ON_SLIDEBALL_DOWN", (lua_Integer)cocos2d::ui::Slider::EventType::ON_SLIDEBALL_DOWN); @@ -18016,23 +17581,11 @@ OLUA_LIB int luaopen_ccui_Slider(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_Text_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_Text_Type(lua_State *L) { oluacls_class(L, "ccui.Text.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_Text_Type___call); oluacls_enum(L, "SYSTEM", (lua_Integer)cocos2d::ui::Text::Type::SYSTEM); oluacls_enum(L, "TTF", (lua_Integer)cocos2d::ui::Text::Type::TTF); @@ -20091,23 +19644,11 @@ OLUA_LIB int luaopen_ccui_UICCTextField(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_TextField_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_TextField_EventType(lua_State *L) { oluacls_class(L, "ccui.TextField.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_TextField_EventType___call); oluacls_enum(L, "ATTACH_WITH_IME", (lua_Integer)cocos2d::ui::TextField::EventType::ATTACH_WITH_IME); oluacls_enum(L, "DELETE_BACKWARD", (lua_Integer)cocos2d::ui::TextField::EventType::DELETE_BACKWARD); oluacls_enum(L, "DETACH_WITH_IME", (lua_Integer)cocos2d::ui::TextField::EventType::DETACH_WITH_IME); @@ -22487,23 +22028,11 @@ OLUA_LIB int luaopen_ccui_Button(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_CheckBox_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_CheckBox_EventType(lua_State *L) { oluacls_class(L, "ccui.CheckBox.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_CheckBox_EventType___call); oluacls_enum(L, "SELECTED", (lua_Integer)cocos2d::ui::CheckBox::EventType::SELECTED); oluacls_enum(L, "UNSELECTED", (lua_Integer)cocos2d::ui::CheckBox::EventType::UNSELECTED); @@ -22786,23 +22315,11 @@ OLUA_LIB int luaopen_ccui_CheckBox(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_RadioButton_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_RadioButton_EventType(lua_State *L) { oluacls_class(L, "ccui.RadioButton.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_RadioButton_EventType___call); oluacls_enum(L, "SELECTED", (lua_Integer)cocos2d::ui::RadioButton::EventType::SELECTED); oluacls_enum(L, "UNSELECTED", (lua_Integer)cocos2d::ui::RadioButton::EventType::UNSELECTED); @@ -23085,23 +22602,11 @@ OLUA_LIB int luaopen_ccui_RadioButton(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_RadioButtonGroup_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_RadioButtonGroup_EventType(lua_State *L) { oluacls_class(L, "ccui.RadioButtonGroup.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_RadioButtonGroup_EventType___call); oluacls_enum(L, "SELECT_CHANGED", (lua_Integer)cocos2d::ui::RadioButtonGroup::EventType::SELECT_CHANGED); return 1; @@ -23961,23 +23466,11 @@ OLUA_LIB int luaopen_ccui_ImageView(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_EditBoxDelegate_EditBoxEndAction___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_EditBoxDelegate_EditBoxEndAction(lua_State *L) { oluacls_class(L, "ccui.EditBoxDelegate.EditBoxEndAction"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_EditBoxDelegate_EditBoxEndAction___call); oluacls_enum(L, "RETURN", (lua_Integer)cocos2d::ui::EditBoxDelegate::EditBoxEndAction::RETURN); oluacls_enum(L, "TAB_TO_NEXT", (lua_Integer)cocos2d::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_NEXT); oluacls_enum(L, "TAB_TO_PREVIOUS", (lua_Integer)cocos2d::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_PREVIOUS); @@ -24009,18 +23502,6 @@ static int _olua_fun_cocos2d_ui_EditBoxDelegate___gc(lua_State *L) return 0; } -static int _olua_fun_cocos2d_ui_EditBoxDelegate___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cocos2d::ui::EditBoxDelegate *)olua_toobj(L, 1, "ccui.EditBoxDelegate"); - olua_push_object(L, self, "ccui.EditBoxDelegate"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cocos2d_ui_EditBoxDelegate_editBoxEditingDidBegin(lua_State *L) { olua_startinvoke(L); @@ -24101,7 +23582,6 @@ static int _olua_cls_ccui_EditBoxDelegate(lua_State *L) { oluacls_class(L, "ccui.EditBoxDelegate"); oluacls_func(L, "__gc", _olua_fun_cocos2d_ui_EditBoxDelegate___gc); - oluacls_func(L, "__olua_move", _olua_fun_cocos2d_ui_EditBoxDelegate___olua_move); oluacls_func(L, "editBoxEditingDidBegin", _olua_fun_cocos2d_ui_EditBoxDelegate_editBoxEditingDidBegin); oluacls_func(L, "editBoxEditingDidEndWithAction", _olua_fun_cocos2d_ui_EditBoxDelegate_editBoxEditingDidEndWithAction); oluacls_func(L, "editBoxReturn", _olua_fun_cocos2d_ui_EditBoxDelegate_editBoxReturn); @@ -24528,23 +24008,11 @@ OLUA_LIB int luaopen_ccui_LuaEditBoxDelegate(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_EditBox_KeyboardReturnType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_EditBox_KeyboardReturnType(lua_State *L) { oluacls_class(L, "ccui.EditBox.KeyboardReturnType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_EditBox_KeyboardReturnType___call); oluacls_enum(L, "DEFAULT", (lua_Integer)cocos2d::ui::EditBox::KeyboardReturnType::DEFAULT); oluacls_enum(L, "DONE", (lua_Integer)cocos2d::ui::EditBox::KeyboardReturnType::DONE); oluacls_enum(L, "GO", (lua_Integer)cocos2d::ui::EditBox::KeyboardReturnType::GO); @@ -24566,23 +24034,11 @@ OLUA_LIB int luaopen_ccui_EditBox_KeyboardReturnType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_EditBox_InputMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_EditBox_InputMode(lua_State *L) { oluacls_class(L, "ccui.EditBox.InputMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_EditBox_InputMode___call); oluacls_enum(L, "ANY", (lua_Integer)cocos2d::ui::EditBox::InputMode::ANY); oluacls_enum(L, "DECIMAL", (lua_Integer)cocos2d::ui::EditBox::InputMode::DECIMAL); oluacls_enum(L, "EMAIL_ADDRESS", (lua_Integer)cocos2d::ui::EditBox::InputMode::EMAIL_ADDRESS); @@ -24605,23 +24061,11 @@ OLUA_LIB int luaopen_ccui_EditBox_InputMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_cocos2d_ui_EditBox_InputFlag___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_ccui_EditBox_InputFlag(lua_State *L) { oluacls_class(L, "ccui.EditBox.InputFlag"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cocos2d_ui_EditBox_InputFlag___call); oluacls_enum(L, "INITIAL_CAPS_ALL_CHARACTERS", (lua_Integer)cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_ALL_CHARACTERS); oluacls_enum(L, "INITIAL_CAPS_SENTENCE", (lua_Integer)cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_SENTENCE); oluacls_enum(L, "INITIAL_CAPS_WORD", (lua_Integer)cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_WORD); diff --git a/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp b/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp index 4c98639b..7407a108 100644 --- a/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp @@ -21,18 +21,6 @@ static int _olua_fun_dragonBones_Rectangle___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_Rectangle___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::Rectangle *)olua_toobj(L, 1, "db.Rectangle"); - olua_push_object(L, self, "db.Rectangle"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_Rectangle_clear(lua_State *L) { olua_startinvoke(L); @@ -291,7 +279,6 @@ static int _olua_cls_db_Rectangle(lua_State *L) { oluacls_class(L, "db.Rectangle"); oluacls_func(L, "__gc", _olua_fun_dragonBones_Rectangle___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_Rectangle___olua_move); oluacls_func(L, "clear", _olua_fun_dragonBones_Rectangle_clear); oluacls_func(L, "new", _olua_fun_dragonBones_Rectangle_new); oluacls_prop(L, "height", _olua_fun_dragonBones_Rectangle_height, _olua_fun_dragonBones_Rectangle_height); @@ -313,23 +300,11 @@ OLUA_LIB int luaopen_db_Rectangle(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_BinaryOffset___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_BinaryOffset(lua_State *L) { oluacls_class(L, "db.BinaryOffset"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_BinaryOffset___call); oluacls_enum(L, "DeformCount", (lua_Integer)dragonBones::BinaryOffset::DeformCount); oluacls_enum(L, "DeformFloatOffset", (lua_Integer)dragonBones::BinaryOffset::DeformFloatOffset); oluacls_enum(L, "DeformValueCount", (lua_Integer)dragonBones::BinaryOffset::DeformValueCount); @@ -368,23 +343,11 @@ OLUA_LIB int luaopen_db_BinaryOffset(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_ArmatureType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_ArmatureType(lua_State *L) { oluacls_class(L, "db.ArmatureType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_ArmatureType___call); oluacls_enum(L, "Armature", (lua_Integer)dragonBones::ArmatureType::Armature); oluacls_enum(L, "MovieClip", (lua_Integer)dragonBones::ArmatureType::MovieClip); oluacls_enum(L, "Stage", (lua_Integer)dragonBones::ArmatureType::Stage); @@ -403,23 +366,11 @@ OLUA_LIB int luaopen_db_ArmatureType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_OffsetMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_OffsetMode(lua_State *L) { oluacls_class(L, "db.OffsetMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_OffsetMode___call); oluacls_enum(L, "Additive", (lua_Integer)dragonBones::OffsetMode::Additive); oluacls_enum(L, "None", (lua_Integer)dragonBones::OffsetMode::None); oluacls_enum(L, "Override", (lua_Integer)dragonBones::OffsetMode::Override); @@ -438,23 +389,11 @@ OLUA_LIB int luaopen_db_OffsetMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_DisplayType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_DisplayType(lua_State *L) { oluacls_class(L, "db.DisplayType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_DisplayType___call); oluacls_enum(L, "Armature", (lua_Integer)dragonBones::DisplayType::Armature); oluacls_enum(L, "BoundingBox", (lua_Integer)dragonBones::DisplayType::BoundingBox); oluacls_enum(L, "Image", (lua_Integer)dragonBones::DisplayType::Image); @@ -475,23 +414,11 @@ OLUA_LIB int luaopen_db_DisplayType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_BoundingBoxType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_BoundingBoxType(lua_State *L) { oluacls_class(L, "db.BoundingBoxType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_BoundingBoxType___call); oluacls_enum(L, "Ellipse", (lua_Integer)dragonBones::BoundingBoxType::Ellipse); oluacls_enum(L, "Polygon", (lua_Integer)dragonBones::BoundingBoxType::Polygon); oluacls_enum(L, "Rectangle", (lua_Integer)dragonBones::BoundingBoxType::Rectangle); @@ -510,23 +437,11 @@ OLUA_LIB int luaopen_db_BoundingBoxType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_ActionType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_ActionType(lua_State *L) { oluacls_class(L, "db.ActionType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_ActionType___call); oluacls_enum(L, "Frame", (lua_Integer)dragonBones::ActionType::Frame); oluacls_enum(L, "Play", (lua_Integer)dragonBones::ActionType::Play); oluacls_enum(L, "Sound", (lua_Integer)dragonBones::ActionType::Sound); @@ -545,23 +460,11 @@ OLUA_LIB int luaopen_db_ActionType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_BlendMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_BlendMode(lua_State *L) { oluacls_class(L, "db.BlendMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_BlendMode___call); oluacls_enum(L, "Add", (lua_Integer)dragonBones::BlendMode::Add); oluacls_enum(L, "Alpha", (lua_Integer)dragonBones::BlendMode::Alpha); oluacls_enum(L, "Darken", (lua_Integer)dragonBones::BlendMode::Darken); @@ -591,23 +494,11 @@ OLUA_LIB int luaopen_db_BlendMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_TweenType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_TweenType(lua_State *L) { oluacls_class(L, "db.TweenType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_TweenType___call); oluacls_enum(L, "Curve", (lua_Integer)dragonBones::TweenType::Curve); oluacls_enum(L, "Line", (lua_Integer)dragonBones::TweenType::Line); oluacls_enum(L, "None", (lua_Integer)dragonBones::TweenType::None); @@ -629,23 +520,11 @@ OLUA_LIB int luaopen_db_TweenType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_TimelineType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_TimelineType(lua_State *L) { oluacls_class(L, "db.TimelineType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_TimelineType___call); oluacls_enum(L, "Action", (lua_Integer)dragonBones::TimelineType::Action); oluacls_enum(L, "AnimationTime", (lua_Integer)dragonBones::TimelineType::AnimationTime); oluacls_enum(L, "AnimationWeight", (lua_Integer)dragonBones::TimelineType::AnimationWeight); @@ -673,23 +552,11 @@ OLUA_LIB int luaopen_db_TimelineType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_AnimationFadeOutMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_AnimationFadeOutMode(lua_State *L) { oluacls_class(L, "db.AnimationFadeOutMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_AnimationFadeOutMode___call); oluacls_enum(L, "All", (lua_Integer)dragonBones::AnimationFadeOutMode::All); oluacls_enum(L, "None", (lua_Integer)dragonBones::AnimationFadeOutMode::None); oluacls_enum(L, "SameGroup", (lua_Integer)dragonBones::AnimationFadeOutMode::SameGroup); @@ -711,23 +578,11 @@ OLUA_LIB int luaopen_db_AnimationFadeOutMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_dragonBones_TextureFormat___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_db_TextureFormat(lua_State *L) { oluacls_class(L, "db.TextureFormat"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_dragonBones_TextureFormat___call); oluacls_enum(L, "BGRA8888", (lua_Integer)dragonBones::TextureFormat::BGRA8888); oluacls_enum(L, "DEFAULT", (lua_Integer)dragonBones::TextureFormat::DEFAULT); oluacls_enum(L, "RGB565", (lua_Integer)dragonBones::TextureFormat::RGB565); @@ -762,18 +617,6 @@ static int _olua_fun_dragonBones_DragonBones___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_DragonBones___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::DragonBones *)olua_toobj(L, 1, "db.DragonBones"); - olua_push_object(L, self, "db.DragonBones"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_DragonBones_advanceTime(lua_State *L) { olua_startinvoke(L); @@ -1084,7 +927,6 @@ static int _olua_cls_db_DragonBones(lua_State *L) { oluacls_class(L, "db.DragonBones"); oluacls_func(L, "__gc", _olua_fun_dragonBones_DragonBones___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_DragonBones___olua_move); oluacls_func(L, "advanceTime", _olua_fun_dragonBones_DragonBones_advanceTime); oluacls_func(L, "bufferEvent", _olua_fun_dragonBones_DragonBones_bufferEvent); oluacls_func(L, "bufferObject", _olua_fun_dragonBones_DragonBones_bufferObject); @@ -1125,18 +967,6 @@ static int _olua_fun_dragonBones_BaseObject___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_BaseObject___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::BaseObject *)olua_toobj(L, 1, "db.BaseObject"); - olua_push_object(L, self, "db.BaseObject"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_BaseObject_clearPool$1(lua_State *L) { olua_startinvoke(L); @@ -1258,7 +1088,6 @@ static int _olua_cls_db_BaseObject(lua_State *L) { oluacls_class(L, "db.BaseObject"); oluacls_func(L, "__gc", _olua_fun_dragonBones_BaseObject___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_BaseObject___olua_move); oluacls_func(L, "clearPool", _olua_fun_dragonBones_BaseObject_clearPool); oluacls_func(L, "getClassTypeIndex", _olua_fun_dragonBones_BaseObject_getClassTypeIndex); oluacls_func(L, "returnToPool", _olua_fun_dragonBones_BaseObject_returnToPool); @@ -2534,18 +2363,6 @@ static int _olua_fun_dragonBones_Point___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_Point___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::Point *)olua_toobj(L, 1, "db.Point"); - olua_push_object(L, self, "db.Point"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_Point_clear(lua_State *L) { olua_startinvoke(L); @@ -2944,7 +2761,6 @@ static int _olua_cls_db_Point(lua_State *L) { oluacls_class(L, "db.Point"); oluacls_func(L, "__gc", _olua_fun_dragonBones_Point___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_Point___olua_move); oluacls_func(L, "clear", _olua_fun_dragonBones_Point_clear); oluacls_func(L, "getHelpPointA", _olua_fun_dragonBones_Point_getHelpPointA); oluacls_func(L, "getHelpPointB", _olua_fun_dragonBones_Point_getHelpPointB); @@ -3873,18 +3689,6 @@ static int _olua_fun_dragonBones_IAnimatable___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_IAnimatable___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::IAnimatable *)olua_toobj(L, 1, "db.IAnimatable"); - olua_push_object(L, self, "db.IAnimatable"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_IAnimatable_advanceTime(lua_State *L) { olua_startinvoke(L); @@ -3942,7 +3746,6 @@ static int _olua_cls_db_IAnimatable(lua_State *L) { oluacls_class(L, "db.IAnimatable"); oluacls_func(L, "__gc", _olua_fun_dragonBones_IAnimatable___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_IAnimatable___olua_move); oluacls_func(L, "advanceTime", _olua_fun_dragonBones_IAnimatable_advanceTime); oluacls_func(L, "getClock", _olua_fun_dragonBones_IAnimatable_getClock); oluacls_func(L, "setClock", _olua_fun_dragonBones_IAnimatable_setClock); @@ -16247,18 +16050,6 @@ static int _olua_fun_dragonBones_BaseFactory___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_BaseFactory___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::BaseFactory *)olua_toobj(L, 1, "db.BaseFactory"); - olua_push_object(L, self, "db.BaseFactory"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_BaseFactory_addDragonBonesData$1(lua_State *L) { olua_startinvoke(L); @@ -17413,7 +17204,6 @@ static int _olua_cls_db_BaseFactory(lua_State *L) { oluacls_class(L, "db.BaseFactory"); oluacls_func(L, "__gc", _olua_fun_dragonBones_BaseFactory___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_BaseFactory___olua_move); oluacls_func(L, "addDragonBonesData", _olua_fun_dragonBones_BaseFactory_addDragonBonesData); oluacls_func(L, "addTextureAtlasData", _olua_fun_dragonBones_BaseFactory_addTextureAtlasData); oluacls_func(L, "buildArmature", _olua_fun_dragonBones_BaseFactory_buildArmature); @@ -20134,18 +19924,6 @@ static int _olua_fun_dragonBones_IEventDispatcher___gc(lua_State *L) return 0; } -static int _olua_fun_dragonBones_IEventDispatcher___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (dragonBones::IEventDispatcher *)olua_toobj(L, 1, "db.IEventDispatcher"); - olua_push_object(L, self, "db.IEventDispatcher"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_dragonBones_IEventDispatcher_addDBEventListener(lua_State *L) { olua_startinvoke(L); @@ -20277,7 +20055,6 @@ static int _olua_cls_db_IEventDispatcher(lua_State *L) { oluacls_class(L, "db.IEventDispatcher"); oluacls_func(L, "__gc", _olua_fun_dragonBones_IEventDispatcher___gc); - oluacls_func(L, "__olua_move", _olua_fun_dragonBones_IEventDispatcher___olua_move); oluacls_func(L, "addDBEventListener", _olua_fun_dragonBones_IEventDispatcher_addDBEventListener); oluacls_func(L, "dispatchDBEvent", _olua_fun_dragonBones_IEventDispatcher_dispatchDBEvent); oluacls_func(L, "hasDBEventListener", _olua_fun_dragonBones_IEventDispatcher_hasDBEventListener); diff --git a/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp b/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp index 98d43170..19900bd4 100644 --- a/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp @@ -91,18 +91,6 @@ static int _olua_fun_fairygui_VectorTreeNode___newindex(lua_State *L) return 0; } -static int _olua_fun_fairygui_VectorTreeNode___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::VectorTreeNode *)olua_toobj(L, 1, "fgui.VectorTreeNode"); - olua_push_object(L, self, "fgui.VectorTreeNode"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_VectorTreeNode_buffer(lua_State *L) { olua_startinvoke(L); @@ -400,13 +388,13 @@ static int _olua_fun_fairygui_VectorTreeNode_tostring(lua_State *L) olua_startinvoke(L); fairygui::VectorTreeNode *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "fgui.VectorTreeNode"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -479,7 +467,6 @@ static int _olua_cls_fgui_VectorTreeNode(lua_State *L) oluacls_func(L, "__gc", _olua_fun_fairygui_VectorTreeNode___gc); oluacls_func(L, "__index", _olua_fun_fairygui_VectorTreeNode___index); oluacls_func(L, "__newindex", _olua_fun_fairygui_VectorTreeNode___newindex); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_VectorTreeNode___olua_move); oluacls_func(L, "new", _olua_fun_fairygui_VectorTreeNode_new); oluacls_func(L, "slice", _olua_fun_fairygui_VectorTreeNode_slice); oluacls_func(L, "sub", _olua_fun_fairygui_VectorTreeNode_sub); @@ -515,18 +502,6 @@ static int _olua_fun_fairygui_Margin___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_Margin___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::Margin *)olua_toobj(L, 1, "fgui.Margin"); - olua_push_object(L, self, "fgui.Margin"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_Margin_bottom$1(lua_State *L) { olua_startinvoke(L); @@ -857,7 +832,6 @@ static int _olua_cls_fgui_Margin(lua_State *L) { oluacls_class(L, "fgui.Margin"); oluacls_func(L, "__gc", _olua_fun_fairygui_Margin___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_Margin___olua_move); oluacls_func(L, "equals", _olua_fun_fairygui_Margin_equals); oluacls_func(L, "new", _olua_fun_fairygui_Margin_new); oluacls_func(L, "setMargin", _olua_fun_fairygui_Margin_setMargin); @@ -893,18 +867,6 @@ static int _olua_fun_fairygui_HtmlParseOptions___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_HtmlParseOptions___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::HtmlParseOptions *)olua_toobj(L, 1, "fgui.HtmlParseOptions"); - olua_push_object(L, self, "fgui.HtmlParseOptions"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_HtmlParseOptions_defaultLinkColor$1(lua_State *L) { olua_startinvoke(L); @@ -1135,7 +1097,6 @@ static int _olua_cls_fgui_HtmlParseOptions(lua_State *L) { oluacls_class(L, "fgui.HtmlParseOptions"); oluacls_func(L, "__gc", _olua_fun_fairygui_HtmlParseOptions___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_HtmlParseOptions___olua_move); oluacls_func(L, "new", _olua_fun_fairygui_HtmlParseOptions_new); oluacls_prop(L, "defaultLinkColor", _olua_fun_fairygui_HtmlParseOptions_defaultLinkColor, _olua_fun_fairygui_HtmlParseOptions_defaultLinkColor); oluacls_prop(L, "defaultLinkUnderline", _olua_fun_fairygui_HtmlParseOptions_defaultLinkUnderline, _olua_fun_fairygui_HtmlParseOptions_defaultLinkUnderline); @@ -1168,18 +1129,6 @@ static int _olua_fun_fairygui_TweenValue___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_TweenValue___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::TweenValue *)olua_toobj(L, 1, "fgui.TweenValue"); - olua_push_object(L, self, "fgui.TweenValue"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_TweenValue_d$1(lua_State *L) { olua_startinvoke(L); @@ -1634,7 +1583,6 @@ static int _olua_cls_fgui_TweenValue(lua_State *L) { oluacls_class(L, "fgui.TweenValue"); oluacls_func(L, "__gc", _olua_fun_fairygui_TweenValue___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_TweenValue___olua_move); oluacls_func(L, "getColor", _olua_fun_fairygui_TweenValue_getColor); oluacls_func(L, "getVec2", _olua_fun_fairygui_TweenValue_getVec2); oluacls_func(L, "getVec3", _olua_fun_fairygui_TweenValue_getVec3); @@ -1681,24 +1629,11 @@ static int _olua_fun_fairygui_UIEventType___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_UIEventType___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::UIEventType *)olua_toobj(L, 1, "fgui.UIEventType"); - olua_push_object(L, self, "fgui.UIEventType"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_UIEventType(lua_State *L) { oluacls_class(L, "fgui.UIEventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__gc", _olua_fun_fairygui_UIEventType___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_UIEventType___olua_move); oluacls_const(L, "Changed", fairygui::UIEventType::Changed); oluacls_const(L, "Click", fairygui::UIEventType::Click); oluacls_const(L, "ClickItem", fairygui::UIEventType::ClickItem); @@ -2318,18 +2253,6 @@ static int _olua_fun_fairygui_EventContext___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_EventContext___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::EventContext *)olua_toobj(L, 1, "fgui.EventContext"); - olua_push_object(L, self, "fgui.EventContext"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_EventContext_captureTouch(lua_State *L) { olua_startinvoke(L); @@ -2514,7 +2437,6 @@ static int _olua_cls_fgui_EventContext(lua_State *L) { oluacls_class(L, "fgui.EventContext"); oluacls_func(L, "__gc", _olua_fun_fairygui_EventContext___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_EventContext___olua_move); oluacls_func(L, "captureTouch", _olua_fun_fairygui_EventContext_captureTouch); oluacls_func(L, "getData", _olua_fun_fairygui_EventContext_getData); oluacls_func(L, "getDataValue", _olua_fun_fairygui_EventContext_getDataValue); @@ -2559,18 +2481,6 @@ static int _olua_fun_fairygui_IHitTest___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_IHitTest___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::IHitTest *)olua_toobj(L, 1, "fgui.IHitTest"); - olua_push_object(L, self, "fgui.IHitTest"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_IHitTest_hitTest(lua_State *L) { olua_startinvoke(L); @@ -2596,7 +2506,6 @@ static int _olua_cls_fgui_IHitTest(lua_State *L) { oluacls_class(L, "fgui.IHitTest"); oluacls_func(L, "__gc", _olua_fun_fairygui_IHitTest___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_IHitTest___olua_move); oluacls_func(L, "hitTest", _olua_fun_fairygui_IHitTest_hitTest); return 1; @@ -2894,18 +2803,6 @@ static int _olua_fun_fairygui_PixelHitTestData___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_PixelHitTestData___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::PixelHitTestData *)olua_toobj(L, 1, "fgui.PixelHitTestData"); - olua_push_object(L, self, "fgui.PixelHitTestData"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_PixelHitTestData_new(lua_State *L) { olua_startinvoke(L); @@ -3148,7 +3045,6 @@ static int _olua_cls_fgui_PixelHitTestData(lua_State *L) { oluacls_class(L, "fgui.PixelHitTestData"); oluacls_func(L, "__gc", _olua_fun_fairygui_PixelHitTestData___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_PixelHitTestData___olua_move); oluacls_func(L, "new", _olua_fun_fairygui_PixelHitTestData_new); oluacls_prop(L, "pixelWidth", _olua_fun_fairygui_PixelHitTestData_pixelWidth, _olua_fun_fairygui_PixelHitTestData_pixelWidth); oluacls_prop(L, "pixels", _olua_fun_fairygui_PixelHitTestData_pixels, _olua_fun_fairygui_PixelHitTestData_pixels); @@ -3212,18 +3108,6 @@ static int _olua_fun_fairygui_InputProcessor___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_InputProcessor___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::InputProcessor *)olua_toobj(L, 1, "fgui.InputProcessor"); - olua_push_object(L, self, "fgui.InputProcessor"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_InputProcessor_addTouchMonitor(lua_State *L) { olua_startinvoke(L); @@ -3534,7 +3418,6 @@ static int _olua_cls_fgui_InputProcessor(lua_State *L) { oluacls_class(L, "fgui.InputProcessor"); oluacls_func(L, "__gc", _olua_fun_fairygui_InputProcessor___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_InputProcessor___olua_move); oluacls_func(L, "addTouchMonitor", _olua_fun_fairygui_InputProcessor_addTouchMonitor); oluacls_func(L, "cancelClick", _olua_fun_fairygui_InputProcessor_cancelClick); oluacls_func(L, "disableDefaultTouchEvent", _olua_fun_fairygui_InputProcessor_disableDefaultTouchEvent); @@ -3577,18 +3460,6 @@ static int _olua_fun_fairygui_InputEvent___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_InputEvent___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::InputEvent *)olua_toobj(L, 1, "fgui.InputEvent"); - olua_push_object(L, self, "fgui.InputEvent"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_InputEvent_getButton(lua_State *L) { olua_startinvoke(L); @@ -3845,7 +3716,6 @@ static int _olua_cls_fgui_InputEvent(lua_State *L) { oluacls_class(L, "fgui.InputEvent"); oluacls_func(L, "__gc", _olua_fun_fairygui_InputEvent___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_InputEvent___olua_move); oluacls_func(L, "getButton", _olua_fun_fairygui_InputEvent_getButton); oluacls_func(L, "getKeyCode", _olua_fun_fairygui_InputEvent_getKeyCode); oluacls_func(L, "getMouseWheelDelta", _olua_fun_fairygui_InputEvent_getMouseWheelDelta); @@ -3902,18 +3772,6 @@ static int _olua_fun_fairygui_TextFormat___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_TextFormat___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::TextFormat *)olua_toobj(L, 1, "fgui.TextFormat"); - olua_push_object(L, self, "fgui.TextFormat"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_TextFormat_align$1(lua_State *L) { olua_startinvoke(L); @@ -4957,7 +4815,6 @@ static int _olua_cls_fgui_TextFormat(lua_State *L) { oluacls_class(L, "fgui.TextFormat"); oluacls_func(L, "__gc", _olua_fun_fairygui_TextFormat___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_TextFormat___olua_move); oluacls_func(L, "disableEffect", _olua_fun_fairygui_TextFormat_disableEffect); oluacls_func(L, "enableEffect", _olua_fun_fairygui_TextFormat_enableEffect); oluacls_func(L, "hasEffect", _olua_fun_fairygui_TextFormat_hasEffect); @@ -4998,23 +4855,11 @@ OLUA_LIB int luaopen_fgui_TextFormat(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_EaseType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_EaseType(lua_State *L) { oluacls_class(L, "fgui.EaseType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_EaseType___call); oluacls_enum(L, "BackIn", (lua_Integer)fairygui::EaseType::BackIn); oluacls_enum(L, "BackInOut", (lua_Integer)fairygui::EaseType::BackInOut); oluacls_enum(L, "BackOut", (lua_Integer)fairygui::EaseType::BackOut); @@ -5074,18 +4919,6 @@ static int _olua_fun_fairygui_EaseManager___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_EaseManager___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::EaseManager *)olua_toobj(L, 1, "fgui.EaseManager"); - olua_push_object(L, self, "fgui.EaseManager"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_EaseManager_evaluate(lua_State *L) { olua_startinvoke(L); @@ -5115,7 +4948,6 @@ static int _olua_cls_fgui_EaseManager(lua_State *L) { oluacls_class(L, "fgui.EaseManager"); oluacls_func(L, "__gc", _olua_fun_fairygui_EaseManager___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_EaseManager___olua_move); oluacls_func(L, "evaluate", _olua_fun_fairygui_EaseManager_evaluate); return 1; @@ -5132,23 +4964,11 @@ OLUA_LIB int luaopen_fgui_EaseManager(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_TweenPropType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_TweenPropType(lua_State *L) { oluacls_class(L, "fgui.TweenPropType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_TweenPropType___call); oluacls_enum(L, "Alpha", (lua_Integer)fairygui::TweenPropType::Alpha); oluacls_enum(L, "Height", (lua_Integer)fairygui::TweenPropType::Height); oluacls_enum(L, "None", (lua_Integer)fairygui::TweenPropType::None); @@ -5189,23 +5009,10 @@ static int _olua_fun_fairygui_GPath___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_GPath___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::GPath *)olua_toobj(L, 1, "fgui.GPath"); - olua_push_object(L, self, "fgui.GPath"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_GPath(lua_State *L) { oluacls_class(L, "fgui.GPath"); oluacls_func(L, "__gc", _olua_fun_fairygui_GPath___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_GPath___olua_move); return 1; } @@ -6316,18 +6123,6 @@ static int _olua_fun_fairygui_GTween___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_GTween___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::GTween *)olua_toobj(L, 1, "fgui.GTween"); - olua_push_object(L, self, "fgui.GTween"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_GTween_clean(lua_State *L) { olua_startinvoke(L); @@ -6841,7 +6636,6 @@ static int _olua_cls_fgui_GTween(lua_State *L) { oluacls_class(L, "fgui.GTween"); oluacls_func(L, "__gc", _olua_fun_fairygui_GTween___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_GTween___olua_move); oluacls_func(L, "clean", _olua_fun_fairygui_GTween_clean); oluacls_func(L, "delayedCall", _olua_fun_fairygui_GTween_delayedCall); oluacls_func(L, "getTween", _olua_fun_fairygui_GTween_getTween); @@ -8561,23 +8355,11 @@ OLUA_LIB int luaopen_fgui_PackageItem(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_PackageItemType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_PackageItemType(lua_State *L) { oluacls_class(L, "fgui.PackageItemType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_PackageItemType___call); oluacls_enum(L, "ATLAS", (lua_Integer)fairygui::PackageItemType::ATLAS); oluacls_enum(L, "COMPONENT", (lua_Integer)fairygui::PackageItemType::COMPONENT); oluacls_enum(L, "DRAGONBONES", (lua_Integer)fairygui::PackageItemType::DRAGONBONES); @@ -8604,23 +8386,11 @@ OLUA_LIB int luaopen_fgui_PackageItemType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ObjectType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ObjectType(lua_State *L) { oluacls_class(L, "fgui.ObjectType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ObjectType___call); oluacls_enum(L, "BUTTON", (lua_Integer)fairygui::ObjectType::BUTTON); oluacls_enum(L, "COMBOBOX", (lua_Integer)fairygui::ObjectType::COMBOBOX); oluacls_enum(L, "COMPONENT", (lua_Integer)fairygui::ObjectType::COMPONENT); @@ -8655,23 +8425,11 @@ OLUA_LIB int luaopen_fgui_ObjectType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ButtonMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ButtonMode(lua_State *L) { oluacls_class(L, "fgui.ButtonMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ButtonMode___call); oluacls_enum(L, "CHECK", (lua_Integer)fairygui::ButtonMode::CHECK); oluacls_enum(L, "COMMON", (lua_Integer)fairygui::ButtonMode::COMMON); oluacls_enum(L, "RADIO", (lua_Integer)fairygui::ButtonMode::RADIO); @@ -8690,23 +8448,11 @@ OLUA_LIB int luaopen_fgui_ButtonMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ChildrenRenderOrder___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ChildrenRenderOrder(lua_State *L) { oluacls_class(L, "fgui.ChildrenRenderOrder"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ChildrenRenderOrder___call); oluacls_enum(L, "ARCH", (lua_Integer)fairygui::ChildrenRenderOrder::ARCH); oluacls_enum(L, "ASCENT", (lua_Integer)fairygui::ChildrenRenderOrder::ASCENT); oluacls_enum(L, "DESCENT", (lua_Integer)fairygui::ChildrenRenderOrder::DESCENT); @@ -8725,23 +8471,11 @@ OLUA_LIB int luaopen_fgui_ChildrenRenderOrder(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_OverflowType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_OverflowType(lua_State *L) { oluacls_class(L, "fgui.OverflowType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_OverflowType___call); oluacls_enum(L, "HIDDEN", (lua_Integer)fairygui::OverflowType::HIDDEN); oluacls_enum(L, "SCROLL", (lua_Integer)fairygui::OverflowType::SCROLL); oluacls_enum(L, "VISIBLE", (lua_Integer)fairygui::OverflowType::VISIBLE); @@ -8760,23 +8494,11 @@ OLUA_LIB int luaopen_fgui_OverflowType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ScrollType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ScrollType(lua_State *L) { oluacls_class(L, "fgui.ScrollType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ScrollType___call); oluacls_enum(L, "BOTH", (lua_Integer)fairygui::ScrollType::BOTH); oluacls_enum(L, "HORIZONTAL", (lua_Integer)fairygui::ScrollType::HORIZONTAL); oluacls_enum(L, "VERTICAL", (lua_Integer)fairygui::ScrollType::VERTICAL); @@ -8795,23 +8517,11 @@ OLUA_LIB int luaopen_fgui_ScrollType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ScrollBarDisplayType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ScrollBarDisplayType(lua_State *L) { oluacls_class(L, "fgui.ScrollBarDisplayType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ScrollBarDisplayType___call); oluacls_enum(L, "AUTO", (lua_Integer)fairygui::ScrollBarDisplayType::AUTO); oluacls_enum(L, "DEFAULT", (lua_Integer)fairygui::ScrollBarDisplayType::DEFAULT); oluacls_enum(L, "HIDDEN", (lua_Integer)fairygui::ScrollBarDisplayType::HIDDEN); @@ -8831,23 +8541,11 @@ OLUA_LIB int luaopen_fgui_ScrollBarDisplayType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_LoaderFillType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_LoaderFillType(lua_State *L) { oluacls_class(L, "fgui.LoaderFillType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_LoaderFillType___call); oluacls_enum(L, "NONE", (lua_Integer)fairygui::LoaderFillType::NONE); oluacls_enum(L, "SCALE", (lua_Integer)fairygui::LoaderFillType::SCALE); oluacls_enum(L, "SCALE_FREE", (lua_Integer)fairygui::LoaderFillType::SCALE_FREE); @@ -8869,23 +8567,11 @@ OLUA_LIB int luaopen_fgui_LoaderFillType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ProgressTitleType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ProgressTitleType(lua_State *L) { oluacls_class(L, "fgui.ProgressTitleType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ProgressTitleType___call); oluacls_enum(L, "MAX", (lua_Integer)fairygui::ProgressTitleType::MAX); oluacls_enum(L, "PERCENT", (lua_Integer)fairygui::ProgressTitleType::PERCENT); oluacls_enum(L, "VALUE", (lua_Integer)fairygui::ProgressTitleType::VALUE); @@ -8905,23 +8591,11 @@ OLUA_LIB int luaopen_fgui_ProgressTitleType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ListLayoutType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ListLayoutType(lua_State *L) { oluacls_class(L, "fgui.ListLayoutType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ListLayoutType___call); oluacls_enum(L, "FLOW_HORIZONTAL", (lua_Integer)fairygui::ListLayoutType::FLOW_HORIZONTAL); oluacls_enum(L, "FLOW_VERTICAL", (lua_Integer)fairygui::ListLayoutType::FLOW_VERTICAL); oluacls_enum(L, "PAGINATION", (lua_Integer)fairygui::ListLayoutType::PAGINATION); @@ -8942,23 +8616,11 @@ OLUA_LIB int luaopen_fgui_ListLayoutType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ListSelectionMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ListSelectionMode(lua_State *L) { oluacls_class(L, "fgui.ListSelectionMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ListSelectionMode___call); oluacls_enum(L, "MULTIPLE", (lua_Integer)fairygui::ListSelectionMode::MULTIPLE); oluacls_enum(L, "MULTIPLE_SINGLECLICK", (lua_Integer)fairygui::ListSelectionMode::MULTIPLE_SINGLECLICK); oluacls_enum(L, "NONE", (lua_Integer)fairygui::ListSelectionMode::NONE); @@ -8978,23 +8640,11 @@ OLUA_LIB int luaopen_fgui_ListSelectionMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_GroupLayoutType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_GroupLayoutType(lua_State *L) { oluacls_class(L, "fgui.GroupLayoutType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_GroupLayoutType___call); oluacls_enum(L, "HORIZONTAL", (lua_Integer)fairygui::GroupLayoutType::HORIZONTAL); oluacls_enum(L, "NONE", (lua_Integer)fairygui::GroupLayoutType::NONE); oluacls_enum(L, "VERTICAL", (lua_Integer)fairygui::GroupLayoutType::VERTICAL); @@ -9013,23 +8663,11 @@ OLUA_LIB int luaopen_fgui_GroupLayoutType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_PopupDirection___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_PopupDirection(lua_State *L) { oluacls_class(L, "fgui.PopupDirection"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_PopupDirection___call); oluacls_enum(L, "AUTO", (lua_Integer)fairygui::PopupDirection::AUTO); oluacls_enum(L, "DOWN", (lua_Integer)fairygui::PopupDirection::DOWN); oluacls_enum(L, "UP", (lua_Integer)fairygui::PopupDirection::UP); @@ -9048,23 +8686,11 @@ OLUA_LIB int luaopen_fgui_PopupDirection(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_AutoSizeType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_AutoSizeType(lua_State *L) { oluacls_class(L, "fgui.AutoSizeType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_AutoSizeType___call); oluacls_enum(L, "BOTH", (lua_Integer)fairygui::AutoSizeType::BOTH); oluacls_enum(L, "HEIGHT", (lua_Integer)fairygui::AutoSizeType::HEIGHT); oluacls_enum(L, "NONE", (lua_Integer)fairygui::AutoSizeType::NONE); @@ -9084,23 +8710,11 @@ OLUA_LIB int luaopen_fgui_AutoSizeType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_FlipType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_FlipType(lua_State *L) { oluacls_class(L, "fgui.FlipType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_FlipType___call); oluacls_enum(L, "BOTH", (lua_Integer)fairygui::FlipType::BOTH); oluacls_enum(L, "HORIZONTAL", (lua_Integer)fairygui::FlipType::HORIZONTAL); oluacls_enum(L, "NONE", (lua_Integer)fairygui::FlipType::NONE); @@ -9120,23 +8734,11 @@ OLUA_LIB int luaopen_fgui_FlipType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_TransitionActionType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_TransitionActionType(lua_State *L) { oluacls_class(L, "fgui.TransitionActionType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_TransitionActionType___call); oluacls_enum(L, "Alpha", (lua_Integer)fairygui::TransitionActionType::Alpha); oluacls_enum(L, "Animation", (lua_Integer)fairygui::TransitionActionType::Animation); oluacls_enum(L, "Color", (lua_Integer)fairygui::TransitionActionType::Color); @@ -9169,23 +8771,11 @@ OLUA_LIB int luaopen_fgui_TransitionActionType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_FillMethod___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_FillMethod(lua_State *L) { oluacls_class(L, "fgui.FillMethod"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_FillMethod___call); oluacls_enum(L, "Horizontal", (lua_Integer)fairygui::FillMethod::Horizontal); oluacls_enum(L, "None", (lua_Integer)fairygui::FillMethod::None); oluacls_enum(L, "Radial180", (lua_Integer)fairygui::FillMethod::Radial180); @@ -9207,23 +8797,11 @@ OLUA_LIB int luaopen_fgui_FillMethod(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_FillOrigin___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_FillOrigin(lua_State *L) { oluacls_class(L, "fgui.FillOrigin"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_FillOrigin___call); oluacls_enum(L, "Bottom", (lua_Integer)fairygui::FillOrigin::Bottom); oluacls_enum(L, "Left", (lua_Integer)fairygui::FillOrigin::Left); oluacls_enum(L, "Right", (lua_Integer)fairygui::FillOrigin::Right); @@ -9243,23 +8821,11 @@ OLUA_LIB int luaopen_fgui_FillOrigin(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_ObjectPropID___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_ObjectPropID(lua_State *L) { oluacls_class(L, "fgui.ObjectPropID"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_ObjectPropID___call); oluacls_enum(L, "Color", (lua_Integer)fairygui::ObjectPropID::Color); oluacls_enum(L, "DeltaTime", (lua_Integer)fairygui::ObjectPropID::DeltaTime); oluacls_enum(L, "FontSize", (lua_Integer)fairygui::ObjectPropID::FontSize); @@ -22245,18 +21811,6 @@ static int _olua_fun_fairygui_Relations___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_Relations___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::Relations *)olua_toobj(L, 1, "fgui.Relations"); - olua_push_object(L, self, "fgui.Relations"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_Relations_add$1(lua_State *L) { olua_startinvoke(L); @@ -22525,7 +22079,6 @@ static int _olua_cls_fgui_Relations(lua_State *L) { oluacls_class(L, "fgui.Relations"); oluacls_func(L, "__gc", _olua_fun_fairygui_Relations___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_Relations___olua_move); oluacls_func(L, "add", _olua_fun_fairygui_Relations_add); oluacls_func(L, "clearAll", _olua_fun_fairygui_Relations_clearAll); oluacls_func(L, "clearFor", _olua_fun_fairygui_Relations_clearFor); @@ -22552,23 +22105,11 @@ OLUA_LIB int luaopen_fgui_Relations(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_RelationType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_RelationType(lua_State *L) { oluacls_class(L, "fgui.RelationType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_RelationType___call); oluacls_enum(L, "BottomExt_Bottom", (lua_Integer)fairygui::RelationType::BottomExt_Bottom); oluacls_enum(L, "BottomExt_Top", (lua_Integer)fairygui::RelationType::BottomExt_Top); oluacls_enum(L, "Bottom_Bottom", (lua_Integer)fairygui::RelationType::Bottom_Bottom); @@ -22621,18 +22162,6 @@ static int _olua_fun_fairygui_RelationItem___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_RelationItem___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::RelationItem *)olua_toobj(L, 1, "fgui.RelationItem"); - olua_push_object(L, self, "fgui.RelationItem"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_RelationItem_add(lua_State *L) { olua_startinvoke(L); @@ -22806,7 +22335,6 @@ static int _olua_cls_fgui_RelationItem(lua_State *L) { oluacls_class(L, "fgui.RelationItem"); oluacls_func(L, "__gc", _olua_fun_fairygui_RelationItem___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_RelationItem___olua_move); oluacls_func(L, "add", _olua_fun_fairygui_RelationItem_add); oluacls_func(L, "applyOnSelfSizeChanged", _olua_fun_fairygui_RelationItem_applyOnSelfSizeChanged); oluacls_func(L, "copyFrom", _olua_fun_fairygui_RelationItem_copyFrom); @@ -25610,18 +25138,6 @@ static int _olua_fun_fairygui_UIConfig___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_UIConfig___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::UIConfig *)olua_toobj(L, 1, "fgui.UIConfig"); - olua_push_object(L, self, "fgui.UIConfig"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_UIConfig_bringWindowToFrontOnClick$1(lua_State *L) { olua_startinvoke(L); @@ -26753,7 +26269,6 @@ static int _olua_cls_fgui_UIConfig(lua_State *L) { oluacls_class(L, "fgui.UIConfig"); oluacls_func(L, "__gc", _olua_fun_fairygui_UIConfig___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_UIConfig___olua_move); oluacls_func(L, "getRealFontName", _olua_fun_fairygui_UIConfig_getRealFontName); oluacls_func(L, "registerFont", _olua_fun_fairygui_UIConfig_registerFont); oluacls_prop(L, "bringWindowToFrontOnClick", _olua_fun_fairygui_UIConfig_bringWindowToFrontOnClick, _olua_fun_fairygui_UIConfig_bringWindowToFrontOnClick); @@ -27626,18 +27141,6 @@ static int _olua_fun_fairygui_DragDropManager___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_DragDropManager___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::DragDropManager *)olua_toobj(L, 1, "fgui.DragDropManager"); - olua_push_object(L, self, "fgui.DragDropManager"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_DragDropManager_cancel(lua_State *L) { olua_startinvoke(L); @@ -27809,7 +27312,6 @@ static int _olua_cls_fgui_DragDropManager(lua_State *L) { oluacls_class(L, "fgui.DragDropManager"); oluacls_func(L, "__gc", _olua_fun_fairygui_DragDropManager___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_DragDropManager___olua_move); oluacls_func(L, "cancel", _olua_fun_fairygui_DragDropManager_cancel); oluacls_func(L, "getAgent", _olua_fun_fairygui_DragDropManager_getAgent); oluacls_func(L, "getInstance", _olua_fun_fairygui_DragDropManager_getInstance); @@ -27908,18 +27410,6 @@ static int _olua_fun_fairygui_UIObjectFactory___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_UIObjectFactory___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::UIObjectFactory *)olua_toobj(L, 1, "fgui.UIObjectFactory"); - olua_push_object(L, self, "fgui.UIObjectFactory"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_UIObjectFactory_newObject$1(lua_State *L) { olua_startinvoke(L); @@ -28059,7 +27549,6 @@ static int _olua_cls_fgui_UIObjectFactory(lua_State *L) { oluacls_class(L, "fgui.UIObjectFactory"); oluacls_func(L, "__gc", _olua_fun_fairygui_UIObjectFactory___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_UIObjectFactory___olua_move); oluacls_func(L, "newObject", _olua_fun_fairygui_UIObjectFactory_newObject); oluacls_func(L, "setLoaderExtension", _olua_fun_fairygui_UIObjectFactory_setLoaderExtension); oluacls_func(L, "setPackageItemExtension", _olua_fun_fairygui_UIObjectFactory_setPackageItemExtension); @@ -28090,18 +27579,6 @@ static int _olua_fun_fairygui_GearBase___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_GearBase___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::GearBase *)olua_toobj(L, 1, "fgui.GearBase"); - olua_push_object(L, self, "fgui.GearBase"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_GearBase_create(lua_State *L) { olua_startinvoke(L); @@ -28193,7 +27670,6 @@ static int _olua_cls_fgui_GearBase(lua_State *L) { oluacls_class(L, "fgui.GearBase"); oluacls_func(L, "__gc", _olua_fun_fairygui_GearBase___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_GearBase___olua_move); oluacls_func(L, "create", _olua_fun_fairygui_GearBase_create); oluacls_func(L, "new", _olua_fun_fairygui_GearBase_new); oluacls_prop(L, "disableAllTweenEffect", _olua_fun_fairygui_GearBase_disableAllTweenEffect, _olua_fun_fairygui_GearBase_disableAllTweenEffect); @@ -31059,18 +30535,6 @@ static int _olua_fun_fairygui_HtmlObject___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_HtmlObject___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::HtmlObject *)olua_toobj(L, 1, "fgui.HtmlObject"); - olua_push_object(L, self, "fgui.HtmlObject"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_HtmlObject_buttonResource$1(lua_State *L) { olua_startinvoke(L); @@ -31430,7 +30894,6 @@ static int _olua_cls_fgui_HtmlObject(lua_State *L) { oluacls_class(L, "fgui.HtmlObject"); oluacls_func(L, "__gc", _olua_fun_fairygui_HtmlObject___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_HtmlObject___olua_move); oluacls_func(L, "create", _olua_fun_fairygui_HtmlObject_create); oluacls_func(L, "destroy", _olua_fun_fairygui_HtmlObject_destroy); oluacls_func(L, "getElement", _olua_fun_fairygui_HtmlObject_getElement); @@ -31460,23 +30923,11 @@ OLUA_LIB int luaopen_fgui_HtmlObject(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_fairygui_HtmlElement_Type___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_fgui_HtmlElement_Type(lua_State *L) { oluacls_class(L, "fgui.HtmlElement.Type"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_fairygui_HtmlElement_Type___call); oluacls_enum(L, "IMAGE", (lua_Integer)fairygui::HtmlElement::Type::IMAGE); oluacls_enum(L, "INPUT", (lua_Integer)fairygui::HtmlElement::Type::INPUT); oluacls_enum(L, "LINK", (lua_Integer)fairygui::HtmlElement::Type::LINK); @@ -31510,18 +30961,6 @@ static int _olua_fun_fairygui_HtmlElement___gc(lua_State *L) return 0; } -static int _olua_fun_fairygui_HtmlElement___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (fairygui::HtmlElement *)olua_toobj(L, 1, "fgui.HtmlElement"); - olua_push_object(L, self, "fgui.HtmlElement"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_fairygui_HtmlElement_attrs$1(lua_State *L) { olua_startinvoke(L); @@ -32081,7 +31520,6 @@ static int _olua_cls_fgui_HtmlElement(lua_State *L) { oluacls_class(L, "fgui.HtmlElement"); oluacls_func(L, "__gc", _olua_fun_fairygui_HtmlElement___gc); - oluacls_func(L, "__olua_move", _olua_fun_fairygui_HtmlElement___olua_move); oluacls_func(L, "getArray", _olua_fun_fairygui_HtmlElement_getArray); oluacls_func(L, "getInt", _olua_fun_fairygui_HtmlElement_getInt); oluacls_func(L, "getString", _olua_fun_fairygui_HtmlElement_getString); diff --git a/frameworks/cclua/src/lua-bindings/lua_spine.cpp b/frameworks/cclua/src/lua-bindings/lua_spine.cpp index 7e1cb50f..071aa81d 100644 --- a/frameworks/cclua/src/lua-bindings/lua_spine.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_spine.cpp @@ -9,23 +9,11 @@ static int _olua_module_spine(lua_State *L); -static int _olua_fun_spine_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_EventType(lua_State *L) { oluacls_class(L, "spine.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_EventType___call); oluacls_enum(L, "Complete", (lua_Integer)spine::EventType::EventType_Complete); oluacls_enum(L, "Dispose", (lua_Integer)spine::EventType::EventType_Dispose); oluacls_enum(L, "End", (lua_Integer)spine::EventType::EventType_End); @@ -47,23 +35,11 @@ OLUA_LIB int luaopen_spine_EventType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_AttachmentType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_AttachmentType(lua_State *L) { oluacls_class(L, "spine.AttachmentType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_AttachmentType___call); oluacls_enum(L, "Boundingbox", (lua_Integer)spine::AttachmentType::AttachmentType_Boundingbox); oluacls_enum(L, "Clipping", (lua_Integer)spine::AttachmentType::AttachmentType_Clipping); oluacls_enum(L, "Linkedmesh", (lua_Integer)spine::AttachmentType::AttachmentType_Linkedmesh); @@ -86,23 +62,11 @@ OLUA_LIB int luaopen_spine_AttachmentType(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_BlendMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_BlendMode(lua_State *L) { oluacls_class(L, "spine.BlendMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_BlendMode___call); oluacls_enum(L, "Additive", (lua_Integer)spine::BlendMode::BlendMode_Additive); oluacls_enum(L, "Multiply", (lua_Integer)spine::BlendMode::BlendMode_Multiply); oluacls_enum(L, "Normal", (lua_Integer)spine::BlendMode::BlendMode_Normal); @@ -122,23 +86,11 @@ OLUA_LIB int luaopen_spine_BlendMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_PositionMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_PositionMode(lua_State *L) { oluacls_class(L, "spine.PositionMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_PositionMode___call); oluacls_enum(L, "Fixed", (lua_Integer)spine::PositionMode::PositionMode_Fixed); oluacls_enum(L, "Percent", (lua_Integer)spine::PositionMode::PositionMode_Percent); @@ -156,23 +108,11 @@ OLUA_LIB int luaopen_spine_PositionMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_SpacingMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_SpacingMode(lua_State *L) { oluacls_class(L, "spine.SpacingMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_SpacingMode___call); oluacls_enum(L, "Fixed", (lua_Integer)spine::SpacingMode::SpacingMode_Fixed); oluacls_enum(L, "Length", (lua_Integer)spine::SpacingMode::SpacingMode_Length); oluacls_enum(L, "Percent", (lua_Integer)spine::SpacingMode::SpacingMode_Percent); @@ -192,23 +132,11 @@ OLUA_LIB int luaopen_spine_SpacingMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_RotateMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_RotateMode(lua_State *L) { oluacls_class(L, "spine.RotateMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_RotateMode___call); oluacls_enum(L, "Chain", (lua_Integer)spine::RotateMode::RotateMode_Chain); oluacls_enum(L, "ChainScale", (lua_Integer)spine::RotateMode::RotateMode_ChainScale); oluacls_enum(L, "Tangent", (lua_Integer)spine::RotateMode::RotateMode_Tangent); @@ -227,23 +155,11 @@ OLUA_LIB int luaopen_spine_RotateMode(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_MixBlend___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_MixBlend(lua_State *L) { oluacls_class(L, "spine.MixBlend"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_MixBlend___call); oluacls_enum(L, "Add", (lua_Integer)spine::MixBlend::MixBlend_Add); oluacls_enum(L, "First", (lua_Integer)spine::MixBlend::MixBlend_First); oluacls_enum(L, "Replace", (lua_Integer)spine::MixBlend::MixBlend_Replace); @@ -263,23 +179,11 @@ OLUA_LIB int luaopen_spine_MixBlend(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_MixDirection___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_MixDirection(lua_State *L) { oluacls_class(L, "spine.MixDirection"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_MixDirection___call); oluacls_enum(L, "In", (lua_Integer)spine::MixDirection::MixDirection_In); oluacls_enum(L, "Out", (lua_Integer)spine::MixDirection::MixDirection_Out); @@ -297,23 +201,11 @@ OLUA_LIB int luaopen_spine_MixDirection(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_Physics___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_Physics(lua_State *L) { oluacls_class(L, "spine.Physics"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_Physics___call); oluacls_enum(L, "None", (lua_Integer)spine::Physics::Physics_None); oluacls_enum(L, "Pose", (lua_Integer)spine::Physics::Physics_Pose); oluacls_enum(L, "Reset", (lua_Integer)spine::Physics::Physics_Reset); @@ -333,23 +225,11 @@ OLUA_LIB int luaopen_spine_Physics(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_Inherit___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_Inherit(lua_State *L) { oluacls_class(L, "spine.Inherit"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_Inherit___call); oluacls_enum(L, "NoRotationOrReflection", (lua_Integer)spine::Inherit::Inherit_NoRotationOrReflection); oluacls_enum(L, "NoScale", (lua_Integer)spine::Inherit::Inherit_NoScale); oluacls_enum(L, "NoScaleOrReflection", (lua_Integer)spine::Inherit::Inherit_NoScaleOrReflection); @@ -382,23 +262,167 @@ static int _olua_fun_spine_SpineObject___gc(lua_State *L) return 0; } -static int _olua_fun_spine_SpineObject___olua_move(lua_State *L) +static int _olua_fun_spine_SpineObject_operator$1(lua_State *L) { olua_startinvoke(L); - auto self = (spine::SpineObject *)olua_toobj(L, 1, "spine.SpineObject"); - olua_push_object(L, self, "spine.SpineObject"); + size_t arg1 = 0; /** sz */ + + olua_check_integer(L, 1, &arg1); + + // static void *operator new(size_t sz) + void *ret = spine::SpineObject::operator new(arg1); + int num_ret = olua_push_object(L, ret, "void *"); olua_endinvoke(L); - return 1; + return num_ret; +} + +static int _olua_fun_spine_SpineObject_operator$2(lua_State *L) +{ + olua_startinvoke(L); + + size_t arg1 = 0; /** sz */ + const char *arg2 = nullptr; /** file */ + int arg3 = 0; /** line */ + + olua_check_integer(L, 1, &arg1); + olua_check_string(L, 2, &arg2); + olua_check_integer(L, 3, &arg3); + + // static void *operator new(size_t sz, const char *file, int line) + void *ret = spine::SpineObject::operator new(arg1, arg2, arg3); + int num_ret = olua_push_object(L, ret, "void *"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_spine_SpineObject_operator$3(lua_State *L) +{ + olua_startinvoke(L); + + size_t arg1 = 0; /** sz */ + void *arg2 = nullptr; /** ptr */ + + olua_check_integer(L, 1, &arg1); + olua_check_object(L, 2, &arg2, "void *"); + + // static void *operator new(size_t sz, void *ptr) + void *ret = spine::SpineObject::operator new(arg1, arg2); + int num_ret = olua_push_object(L, ret, "void *"); + + olua_endinvoke(L); + + return num_ret; +} + +static int _olua_fun_spine_SpineObject_operator$4(lua_State *L) +{ + olua_startinvoke(L); + + void *arg1 = nullptr; /** p */ + const char *arg2 = nullptr; /** file */ + int arg3 = 0; /** line */ + + olua_check_object(L, 1, &arg1, "void *"); + olua_check_string(L, 2, &arg2); + olua_check_integer(L, 3, &arg3); + + // static void operator delete(void *p, const char *file, int line) + spine::SpineObject::operator delete(arg1, arg2, arg3); + + olua_endinvoke(L); + + return 0; +} + +static int _olua_fun_spine_SpineObject_operator$5(lua_State *L) +{ + olua_startinvoke(L); + + void *arg1 = nullptr; /** p */ + void *arg2 = nullptr; /** mem */ + + olua_check_object(L, 1, &arg1, "void *"); + olua_check_object(L, 2, &arg2, "void *"); + + // static void operator delete(void *p, void *mem) + spine::SpineObject::operator delete(arg1, arg2); + + olua_endinvoke(L); + + return 0; +} + +static int _olua_fun_spine_SpineObject_operator$6(lua_State *L) +{ + olua_startinvoke(L); + + void *arg1 = nullptr; /** p */ + + olua_check_object(L, 1, &arg1, "void *"); + + // static void operator delete(void *p) + spine::SpineObject::operator delete(arg1); + + olua_endinvoke(L); + + return 0; +} + +static int _olua_fun_spine_SpineObject_operator(lua_State *L) +{ + int num_args = lua_gettop(L); + + if (num_args == 1) { + if ((olua_is_integer(L, 1))) { + // static void *operator new(size_t sz) + return _olua_fun_spine_SpineObject_operator$1(L); + } + + // if ((olua_is_object(L, 1, "void *"))) { + // static void operator delete(void *p) + return _olua_fun_spine_SpineObject_operator$6(L); + // } + } + + if (num_args == 2) { + if ((olua_is_integer(L, 1)) && (olua_is_object(L, 2, "void *"))) { + // static void *operator new(size_t sz, void *ptr) + return _olua_fun_spine_SpineObject_operator$3(L); + } + + // if ((olua_is_object(L, 1, "void *")) && (olua_is_object(L, 2, "void *"))) { + // static void operator delete(void *p, void *mem) + return _olua_fun_spine_SpineObject_operator$5(L); + // } + } + + if (num_args == 3) { + if ((olua_is_integer(L, 1)) && (olua_is_string(L, 2)) && (olua_is_integer(L, 3))) { + // static void *operator new(size_t sz, const char *file, int line) + return _olua_fun_spine_SpineObject_operator$2(L); + } + + // if ((olua_is_object(L, 1, "void *")) && (olua_is_string(L, 2)) && (olua_is_integer(L, 3))) { + // static void operator delete(void *p, const char *file, int line) + return _olua_fun_spine_SpineObject_operator$4(L); + // } + } + + luaL_error(L, "method 'spine::SpineObject::operator' not support '%d' arguments", num_args); + + return 0; } static int _olua_cls_spine_SpineObject(lua_State *L) { oluacls_class(L, "spine.SpineObject"); oluacls_func(L, "__gc", _olua_fun_spine_SpineObject___gc); - oluacls_func(L, "__olua_move", _olua_fun_spine_SpineObject___olua_move); + oluacls_func(L, "operator", _olua_fun_spine_SpineObject_operator); return 1; } @@ -2278,23 +2302,11 @@ OLUA_LIB int luaopen_spine_Sequence(lua_State *L) } OLUA_END_DECLS -static int _olua_fun_spine_SequenceMode___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_spine_SequenceMode(lua_State *L) { oluacls_class(L, "spine.SequenceMode"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_spine_SequenceMode___call); oluacls_enum(L, "hold", (lua_Integer)spine::SequenceMode::hold); oluacls_enum(L, "loop", (lua_Integer)spine::SequenceMode::loop); oluacls_enum(L, "loopReverse", (lua_Integer)spine::SequenceMode::loopReverse); @@ -14420,16 +14432,16 @@ static int _olua_fun_spine_SkeletonData_create$1(lua_State *L) { olua_startinvoke(L); - const char *arg2 = nullptr; /** skelPath */ - const char *arg3 = nullptr; /** atlasPath */ - float arg4 = 0; /** scale */ + const char *arg1 = nullptr; /** skelPath */ + const char *arg2 = nullptr; /** atlasPath */ + float arg3 = 0; /** scale */ - olua_check_string(L, 1, &arg2); - olua_check_string(L, 2, &arg3); - olua_check_number(L, 3, &arg4); + olua_check_string(L, 1, &arg1); + olua_check_string(L, 2, &arg2); + olua_check_number(L, 3, &arg3); // @extend(spine::SkeletonDataExtend) static olua_Return create(lua_State *L, const char *skelPath, const char *atlasPath, @optional float scale) - olua_Return ret = spine::SkeletonDataExtend::create(L, arg2, arg3, arg4); + olua_Return ret = spine::SkeletonDataExtend::create(L, arg1, arg2, arg3); olua_endinvoke(L); @@ -14440,14 +14452,14 @@ static int _olua_fun_spine_SkeletonData_create$2(lua_State *L) { olua_startinvoke(L); - const char *arg2 = nullptr; /** skelPath */ - const char *arg3 = nullptr; /** atlasPath */ + const char *arg1 = nullptr; /** skelPath */ + const char *arg2 = nullptr; /** atlasPath */ - olua_check_string(L, 1, &arg2); - olua_check_string(L, 2, &arg3); + olua_check_string(L, 1, &arg1); + olua_check_string(L, 2, &arg2); // @extend(spine::SkeletonDataExtend) static olua_Return create(lua_State *L, const char *skelPath, const char *atlasPath) - olua_Return ret = spine::SkeletonDataExtend::create(L, arg2, arg3); + olua_Return ret = spine::SkeletonDataExtend::create(L, arg1, arg2); olua_endinvoke(L); diff --git a/frameworks/cclua/src/lua-bindings/lua_types.cpp b/frameworks/cclua/src/lua-bindings/lua_types.cpp index 03ae25f7..8d0d17fc 100644 --- a/frameworks/cclua/src/lua-bindings/lua_types.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_types.cpp @@ -61,18 +61,6 @@ static int _olua_fun_olua_bool___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_bool___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_bool *)olua_toobj(L, 1, "olua.bool"); - olua_push_object(L, self, "olua.bool"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_bool_buffer(lua_State *L) { olua_startinvoke(L); @@ -370,13 +358,13 @@ static int _olua_fun_olua_bool_tostring(lua_State *L) olua_startinvoke(L); olua_bool *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.bool"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -445,7 +433,6 @@ static int _olua_cls_olua_bool(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_bool___gc); oluacls_func(L, "__index", _olua_fun_olua_bool___index); oluacls_func(L, "__newindex", _olua_fun_olua_bool___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_bool___olua_move); oluacls_func(L, "new", _olua_fun_olua_bool_new); oluacls_func(L, "slice", _olua_fun_olua_bool_slice); oluacls_func(L, "sub", _olua_fun_olua_bool_sub); @@ -524,18 +511,6 @@ static int _olua_fun_olua_string___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_string___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_string *)olua_toobj(L, 1, "olua.string"); - olua_push_object(L, self, "olua.string"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_string_buffer(lua_State *L) { olua_startinvoke(L); @@ -833,13 +808,13 @@ static int _olua_fun_olua_string_tostring(lua_State *L) olua_startinvoke(L); olua_string *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.string"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -908,7 +883,6 @@ static int _olua_cls_olua_string(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_string___gc); oluacls_func(L, "__index", _olua_fun_olua_string___index); oluacls_func(L, "__newindex", _olua_fun_olua_string___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_string___olua_move); oluacls_func(L, "new", _olua_fun_olua_string_new); oluacls_func(L, "slice", _olua_fun_olua_string_slice); oluacls_func(L, "sub", _olua_fun_olua_string_sub); @@ -987,18 +961,6 @@ static int _olua_fun_olua_int8___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_int8___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_int8 *)olua_toobj(L, 1, "olua.int8"); - olua_push_object(L, self, "olua.int8"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_int8_buffer(lua_State *L) { olua_startinvoke(L); @@ -1296,13 +1258,13 @@ static int _olua_fun_olua_int8_tostring(lua_State *L) olua_startinvoke(L); olua_int8 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.int8"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -1371,7 +1333,6 @@ static int _olua_cls_olua_int8(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_int8___gc); oluacls_func(L, "__index", _olua_fun_olua_int8___index); oluacls_func(L, "__newindex", _olua_fun_olua_int8___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_int8___olua_move); oluacls_func(L, "new", _olua_fun_olua_int8_new); oluacls_func(L, "slice", _olua_fun_olua_int8_slice); oluacls_func(L, "sub", _olua_fun_olua_int8_sub); @@ -1450,18 +1411,6 @@ static int _olua_fun_olua_int16___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_int16___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_int16 *)olua_toobj(L, 1, "olua.int16"); - olua_push_object(L, self, "olua.int16"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_int16_buffer(lua_State *L) { olua_startinvoke(L); @@ -1759,13 +1708,13 @@ static int _olua_fun_olua_int16_tostring(lua_State *L) olua_startinvoke(L); olua_int16 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.int16"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -1834,7 +1783,6 @@ static int _olua_cls_olua_int16(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_int16___gc); oluacls_func(L, "__index", _olua_fun_olua_int16___index); oluacls_func(L, "__newindex", _olua_fun_olua_int16___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_int16___olua_move); oluacls_func(L, "new", _olua_fun_olua_int16_new); oluacls_func(L, "slice", _olua_fun_olua_int16_slice); oluacls_func(L, "sub", _olua_fun_olua_int16_sub); @@ -1913,18 +1861,6 @@ static int _olua_fun_olua_int32___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_int32___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_int32 *)olua_toobj(L, 1, "olua.int32"); - olua_push_object(L, self, "olua.int32"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_int32_buffer(lua_State *L) { olua_startinvoke(L); @@ -2222,13 +2158,13 @@ static int _olua_fun_olua_int32_tostring(lua_State *L) olua_startinvoke(L); olua_int32 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.int32"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -2297,7 +2233,6 @@ static int _olua_cls_olua_int32(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_int32___gc); oluacls_func(L, "__index", _olua_fun_olua_int32___index); oluacls_func(L, "__newindex", _olua_fun_olua_int32___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_int32___olua_move); oluacls_func(L, "new", _olua_fun_olua_int32_new); oluacls_func(L, "slice", _olua_fun_olua_int32_slice); oluacls_func(L, "sub", _olua_fun_olua_int32_sub); @@ -2376,18 +2311,6 @@ static int _olua_fun_olua_int64___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_int64___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_int64 *)olua_toobj(L, 1, "olua.int64"); - olua_push_object(L, self, "olua.int64"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_int64_buffer(lua_State *L) { olua_startinvoke(L); @@ -2685,13 +2608,13 @@ static int _olua_fun_olua_int64_tostring(lua_State *L) olua_startinvoke(L); olua_int64 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.int64"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -2760,7 +2683,6 @@ static int _olua_cls_olua_int64(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_int64___gc); oluacls_func(L, "__index", _olua_fun_olua_int64___index); oluacls_func(L, "__newindex", _olua_fun_olua_int64___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_int64___olua_move); oluacls_func(L, "new", _olua_fun_olua_int64_new); oluacls_func(L, "slice", _olua_fun_olua_int64_slice); oluacls_func(L, "sub", _olua_fun_olua_int64_sub); @@ -2839,18 +2761,6 @@ static int _olua_fun_olua_uint8___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_uint8___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_uint8 *)olua_toobj(L, 1, "olua.uint8"); - olua_push_object(L, self, "olua.uint8"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_uint8_buffer(lua_State *L) { olua_startinvoke(L); @@ -3148,13 +3058,13 @@ static int _olua_fun_olua_uint8_tostring(lua_State *L) olua_startinvoke(L); olua_uint8 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.uint8"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -3223,7 +3133,6 @@ static int _olua_cls_olua_uint8(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_uint8___gc); oluacls_func(L, "__index", _olua_fun_olua_uint8___index); oluacls_func(L, "__newindex", _olua_fun_olua_uint8___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_uint8___olua_move); oluacls_func(L, "new", _olua_fun_olua_uint8_new); oluacls_func(L, "slice", _olua_fun_olua_uint8_slice); oluacls_func(L, "sub", _olua_fun_olua_uint8_sub); @@ -3302,18 +3211,6 @@ static int _olua_fun_olua_uint16___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_uint16___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_uint16 *)olua_toobj(L, 1, "olua.uint16"); - olua_push_object(L, self, "olua.uint16"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_uint16_buffer(lua_State *L) { olua_startinvoke(L); @@ -3611,13 +3508,13 @@ static int _olua_fun_olua_uint16_tostring(lua_State *L) olua_startinvoke(L); olua_uint16 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.uint16"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -3686,7 +3583,6 @@ static int _olua_cls_olua_uint16(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_uint16___gc); oluacls_func(L, "__index", _olua_fun_olua_uint16___index); oluacls_func(L, "__newindex", _olua_fun_olua_uint16___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_uint16___olua_move); oluacls_func(L, "new", _olua_fun_olua_uint16_new); oluacls_func(L, "slice", _olua_fun_olua_uint16_slice); oluacls_func(L, "sub", _olua_fun_olua_uint16_sub); @@ -3765,18 +3661,6 @@ static int _olua_fun_olua_uint32___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_uint32___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_uint32 *)olua_toobj(L, 1, "olua.uint32"); - olua_push_object(L, self, "olua.uint32"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_uint32_buffer(lua_State *L) { olua_startinvoke(L); @@ -4074,13 +3958,13 @@ static int _olua_fun_olua_uint32_tostring(lua_State *L) olua_startinvoke(L); olua_uint32 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.uint32"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -4149,7 +4033,6 @@ static int _olua_cls_olua_uint32(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_uint32___gc); oluacls_func(L, "__index", _olua_fun_olua_uint32___index); oluacls_func(L, "__newindex", _olua_fun_olua_uint32___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_uint32___olua_move); oluacls_func(L, "new", _olua_fun_olua_uint32_new); oluacls_func(L, "slice", _olua_fun_olua_uint32_slice); oluacls_func(L, "sub", _olua_fun_olua_uint32_sub); @@ -4228,18 +4111,6 @@ static int _olua_fun_olua_uint64___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_uint64___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_uint64 *)olua_toobj(L, 1, "olua.uint64"); - olua_push_object(L, self, "olua.uint64"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_uint64_buffer(lua_State *L) { olua_startinvoke(L); @@ -4537,13 +4408,13 @@ static int _olua_fun_olua_uint64_tostring(lua_State *L) olua_startinvoke(L); olua_uint64 *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.uint64"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -4612,7 +4483,6 @@ static int _olua_cls_olua_uint64(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_uint64___gc); oluacls_func(L, "__index", _olua_fun_olua_uint64___index); oluacls_func(L, "__newindex", _olua_fun_olua_uint64___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_uint64___olua_move); oluacls_func(L, "new", _olua_fun_olua_uint64_new); oluacls_func(L, "slice", _olua_fun_olua_uint64_slice); oluacls_func(L, "sub", _olua_fun_olua_uint64_sub); @@ -4691,18 +4561,6 @@ static int _olua_fun_olua_char___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_char___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_char *)olua_toobj(L, 1, "olua.char"); - olua_push_object(L, self, "olua.char"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_char_buffer(lua_State *L) { olua_startinvoke(L); @@ -5000,13 +4858,13 @@ static int _olua_fun_olua_char_tostring(lua_State *L) olua_startinvoke(L); olua_char *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.char"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -5075,7 +4933,6 @@ static int _olua_cls_olua_char(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_char___gc); oluacls_func(L, "__index", _olua_fun_olua_char___index); oluacls_func(L, "__newindex", _olua_fun_olua_char___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_char___olua_move); oluacls_func(L, "new", _olua_fun_olua_char_new); oluacls_func(L, "slice", _olua_fun_olua_char_slice); oluacls_func(L, "sub", _olua_fun_olua_char_sub); @@ -5154,18 +5011,6 @@ static int _olua_fun_olua_short___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_short___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_short *)olua_toobj(L, 1, "olua.short"); - olua_push_object(L, self, "olua.short"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_short_buffer(lua_State *L) { olua_startinvoke(L); @@ -5463,13 +5308,13 @@ static int _olua_fun_olua_short_tostring(lua_State *L) olua_startinvoke(L); olua_short *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.short"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -5538,7 +5383,6 @@ static int _olua_cls_olua_short(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_short___gc); oluacls_func(L, "__index", _olua_fun_olua_short___index); oluacls_func(L, "__newindex", _olua_fun_olua_short___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_short___olua_move); oluacls_func(L, "new", _olua_fun_olua_short_new); oluacls_func(L, "slice", _olua_fun_olua_short_slice); oluacls_func(L, "sub", _olua_fun_olua_short_sub); @@ -5617,18 +5461,6 @@ static int _olua_fun_olua_int___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_int___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_int *)olua_toobj(L, 1, "olua.int"); - olua_push_object(L, self, "olua.int"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_int_buffer(lua_State *L) { olua_startinvoke(L); @@ -5926,13 +5758,13 @@ static int _olua_fun_olua_int_tostring(lua_State *L) olua_startinvoke(L); olua_int *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.int"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -6001,7 +5833,6 @@ static int _olua_cls_olua_int(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_int___gc); oluacls_func(L, "__index", _olua_fun_olua_int___index); oluacls_func(L, "__newindex", _olua_fun_olua_int___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_int___olua_move); oluacls_func(L, "new", _olua_fun_olua_int_new); oluacls_func(L, "slice", _olua_fun_olua_int_slice); oluacls_func(L, "sub", _olua_fun_olua_int_sub); @@ -6080,18 +5911,6 @@ static int _olua_fun_olua_long___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_long___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_long *)olua_toobj(L, 1, "olua.long"); - olua_push_object(L, self, "olua.long"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_long_buffer(lua_State *L) { olua_startinvoke(L); @@ -6389,13 +6208,13 @@ static int _olua_fun_olua_long_tostring(lua_State *L) olua_startinvoke(L); olua_long *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.long"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -6464,7 +6283,6 @@ static int _olua_cls_olua_long(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_long___gc); oluacls_func(L, "__index", _olua_fun_olua_long___index); oluacls_func(L, "__newindex", _olua_fun_olua_long___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_long___olua_move); oluacls_func(L, "new", _olua_fun_olua_long_new); oluacls_func(L, "slice", _olua_fun_olua_long_slice); oluacls_func(L, "sub", _olua_fun_olua_long_sub); @@ -6543,18 +6361,6 @@ static int _olua_fun_olua_llong___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_llong___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_llong *)olua_toobj(L, 1, "olua.llong"); - olua_push_object(L, self, "olua.llong"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_llong_buffer(lua_State *L) { olua_startinvoke(L); @@ -6852,13 +6658,13 @@ static int _olua_fun_olua_llong_tostring(lua_State *L) olua_startinvoke(L); olua_llong *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.llong"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -6927,7 +6733,6 @@ static int _olua_cls_olua_llong(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_llong___gc); oluacls_func(L, "__index", _olua_fun_olua_llong___index); oluacls_func(L, "__newindex", _olua_fun_olua_llong___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_llong___olua_move); oluacls_func(L, "new", _olua_fun_olua_llong_new); oluacls_func(L, "slice", _olua_fun_olua_llong_slice); oluacls_func(L, "sub", _olua_fun_olua_llong_sub); @@ -7006,18 +6811,6 @@ static int _olua_fun_olua_uchar___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_uchar___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_uchar *)olua_toobj(L, 1, "olua.uchar"); - olua_push_object(L, self, "olua.uchar"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_uchar_buffer(lua_State *L) { olua_startinvoke(L); @@ -7315,13 +7108,13 @@ static int _olua_fun_olua_uchar_tostring(lua_State *L) olua_startinvoke(L); olua_uchar *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.uchar"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -7390,7 +7183,6 @@ static int _olua_cls_olua_uchar(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_uchar___gc); oluacls_func(L, "__index", _olua_fun_olua_uchar___index); oluacls_func(L, "__newindex", _olua_fun_olua_uchar___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_uchar___olua_move); oluacls_func(L, "new", _olua_fun_olua_uchar_new); oluacls_func(L, "slice", _olua_fun_olua_uchar_slice); oluacls_func(L, "sub", _olua_fun_olua_uchar_sub); @@ -7469,18 +7261,6 @@ static int _olua_fun_olua_ushort___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_ushort___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_ushort *)olua_toobj(L, 1, "olua.ushort"); - olua_push_object(L, self, "olua.ushort"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_ushort_buffer(lua_State *L) { olua_startinvoke(L); @@ -7778,13 +7558,13 @@ static int _olua_fun_olua_ushort_tostring(lua_State *L) olua_startinvoke(L); olua_ushort *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.ushort"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -7853,7 +7633,6 @@ static int _olua_cls_olua_ushort(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_ushort___gc); oluacls_func(L, "__index", _olua_fun_olua_ushort___index); oluacls_func(L, "__newindex", _olua_fun_olua_ushort___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_ushort___olua_move); oluacls_func(L, "new", _olua_fun_olua_ushort_new); oluacls_func(L, "slice", _olua_fun_olua_ushort_slice); oluacls_func(L, "sub", _olua_fun_olua_ushort_sub); @@ -7932,18 +7711,6 @@ static int _olua_fun_olua_uint___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_uint___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_uint *)olua_toobj(L, 1, "olua.uint"); - olua_push_object(L, self, "olua.uint"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_uint_buffer(lua_State *L) { olua_startinvoke(L); @@ -8241,13 +8008,13 @@ static int _olua_fun_olua_uint_tostring(lua_State *L) olua_startinvoke(L); olua_uint *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.uint"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -8316,7 +8083,6 @@ static int _olua_cls_olua_uint(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_uint___gc); oluacls_func(L, "__index", _olua_fun_olua_uint___index); oluacls_func(L, "__newindex", _olua_fun_olua_uint___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_uint___olua_move); oluacls_func(L, "new", _olua_fun_olua_uint_new); oluacls_func(L, "slice", _olua_fun_olua_uint_slice); oluacls_func(L, "sub", _olua_fun_olua_uint_sub); @@ -8395,18 +8161,6 @@ static int _olua_fun_olua_ulong___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_ulong___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_ulong *)olua_toobj(L, 1, "olua.ulong"); - olua_push_object(L, self, "olua.ulong"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_ulong_buffer(lua_State *L) { olua_startinvoke(L); @@ -8704,13 +8458,13 @@ static int _olua_fun_olua_ulong_tostring(lua_State *L) olua_startinvoke(L); olua_ulong *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.ulong"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -8779,7 +8533,6 @@ static int _olua_cls_olua_ulong(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_ulong___gc); oluacls_func(L, "__index", _olua_fun_olua_ulong___index); oluacls_func(L, "__newindex", _olua_fun_olua_ulong___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_ulong___olua_move); oluacls_func(L, "new", _olua_fun_olua_ulong_new); oluacls_func(L, "slice", _olua_fun_olua_ulong_slice); oluacls_func(L, "sub", _olua_fun_olua_ulong_sub); @@ -8858,18 +8611,6 @@ static int _olua_fun_olua_ullong___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_ullong___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_ullong *)olua_toobj(L, 1, "olua.ullong"); - olua_push_object(L, self, "olua.ullong"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_ullong_buffer(lua_State *L) { olua_startinvoke(L); @@ -9167,13 +8908,13 @@ static int _olua_fun_olua_ullong_tostring(lua_State *L) olua_startinvoke(L); olua_ullong *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.ullong"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -9242,7 +8983,6 @@ static int _olua_cls_olua_ullong(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_ullong___gc); oluacls_func(L, "__index", _olua_fun_olua_ullong___index); oluacls_func(L, "__newindex", _olua_fun_olua_ullong___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_ullong___olua_move); oluacls_func(L, "new", _olua_fun_olua_ullong_new); oluacls_func(L, "slice", _olua_fun_olua_ullong_slice); oluacls_func(L, "sub", _olua_fun_olua_ullong_sub); @@ -9321,18 +9061,6 @@ static int _olua_fun_olua_float___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_float___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_float *)olua_toobj(L, 1, "olua.float"); - olua_push_object(L, self, "olua.float"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_float_buffer(lua_State *L) { olua_startinvoke(L); @@ -9630,13 +9358,13 @@ static int _olua_fun_olua_float_tostring(lua_State *L) olua_startinvoke(L); olua_float *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.float"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -9705,7 +9433,6 @@ static int _olua_cls_olua_float(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_float___gc); oluacls_func(L, "__index", _olua_fun_olua_float___index); oluacls_func(L, "__newindex", _olua_fun_olua_float___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_float___olua_move); oluacls_func(L, "new", _olua_fun_olua_float_new); oluacls_func(L, "slice", _olua_fun_olua_float_slice); oluacls_func(L, "sub", _olua_fun_olua_float_sub); @@ -9784,18 +9511,6 @@ static int _olua_fun_olua_double___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_double___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_double *)olua_toobj(L, 1, "olua.double"); - olua_push_object(L, self, "olua.double"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_double_buffer(lua_State *L) { olua_startinvoke(L); @@ -10093,13 +9808,13 @@ static int _olua_fun_olua_double_tostring(lua_State *L) olua_startinvoke(L); olua_double *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.double"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -10168,7 +9883,6 @@ static int _olua_cls_olua_double(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_double___gc); oluacls_func(L, "__index", _olua_fun_olua_double___index); oluacls_func(L, "__newindex", _olua_fun_olua_double___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_double___olua_move); oluacls_func(L, "new", _olua_fun_olua_double_new); oluacls_func(L, "slice", _olua_fun_olua_double_slice); oluacls_func(L, "sub", _olua_fun_olua_double_sub); @@ -10247,18 +9961,6 @@ static int _olua_fun_olua_ldouble___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_ldouble___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_ldouble *)olua_toobj(L, 1, "olua.ldouble"); - olua_push_object(L, self, "olua.ldouble"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_ldouble_buffer(lua_State *L) { olua_startinvoke(L); @@ -10556,13 +10258,13 @@ static int _olua_fun_olua_ldouble_tostring(lua_State *L) olua_startinvoke(L); olua_ldouble *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.ldouble"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -10631,7 +10333,6 @@ static int _olua_cls_olua_ldouble(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_ldouble___gc); oluacls_func(L, "__index", _olua_fun_olua_ldouble___index); oluacls_func(L, "__newindex", _olua_fun_olua_ldouble___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_ldouble___olua_move); oluacls_func(L, "new", _olua_fun_olua_ldouble_new); oluacls_func(L, "slice", _olua_fun_olua_ldouble_slice); oluacls_func(L, "sub", _olua_fun_olua_ldouble_sub); @@ -10710,18 +10411,6 @@ static int _olua_fun_olua_size_t___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_size_t___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_size_t *)olua_toobj(L, 1, "olua.size_t"); - olua_push_object(L, self, "olua.size_t"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_size_t_buffer(lua_State *L) { olua_startinvoke(L); @@ -11019,13 +10708,13 @@ static int _olua_fun_olua_size_t_tostring(lua_State *L) olua_startinvoke(L); olua_size_t *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.size_t"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -11094,7 +10783,6 @@ static int _olua_cls_olua_size_t(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_size_t___gc); oluacls_func(L, "__index", _olua_fun_olua_size_t___index); oluacls_func(L, "__newindex", _olua_fun_olua_size_t___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_size_t___olua_move); oluacls_func(L, "new", _olua_fun_olua_size_t_new); oluacls_func(L, "slice", _olua_fun_olua_size_t_slice); oluacls_func(L, "sub", _olua_fun_olua_size_t_sub); @@ -11173,18 +10861,6 @@ static int _olua_fun_olua_ssize_t___newindex(lua_State *L) return 0; } -static int _olua_fun_olua_ssize_t___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (olua_ssize_t *)olua_toobj(L, 1, "olua.ssize_t"); - olua_push_object(L, self, "olua.ssize_t"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_olua_ssize_t_buffer(lua_State *L) { olua_startinvoke(L); @@ -11482,13 +11158,13 @@ static int _olua_fun_olua_ssize_t_tostring(lua_State *L) olua_startinvoke(L); olua_ssize_t *self = nullptr; - size_t arg2 = 0; /** len */ + size_t arg1 = 0; /** len */ olua_to_object(L, 1, &self, "olua.ssize_t"); - olua_check_integer(L, 2, &arg2); + olua_check_integer(L, 2, &arg1); // olua_Return tostring(lua_State *L, size_t len) - olua_Return ret = self->tostring(L, arg2); + olua_Return ret = self->tostring(L, arg1); olua_endinvoke(L); @@ -11557,7 +11233,6 @@ static int _olua_cls_olua_ssize_t(lua_State *L) oluacls_func(L, "__gc", _olua_fun_olua_ssize_t___gc); oluacls_func(L, "__index", _olua_fun_olua_ssize_t___index); oluacls_func(L, "__newindex", _olua_fun_olua_ssize_t___newindex); - oluacls_func(L, "__olua_move", _olua_fun_olua_ssize_t___olua_move); oluacls_func(L, "new", _olua_fun_olua_ssize_t_new); oluacls_func(L, "slice", _olua_fun_olua_ssize_t_slice); oluacls_func(L, "sub", _olua_fun_olua_ssize_t_sub); diff --git a/frameworks/cclua/src/olua/olua.c b/frameworks/cclua/src/olua/olua.c index 26415dea..5c60b841 100644 --- a/frameworks/cclua/src/olua/olua.c +++ b/frameworks/cclua/src/olua/olua.c @@ -71,12 +71,10 @@ typedef struct { typedef struct { void *self; - uint16_t flags; - void *extra; + uintptr_t flags; } olua_Object; static int luaopen_olua(lua_State *L); -static int luaopen_enum(lua_State *L); static int luaopen_voidp(lua_State *L); static olua_Object *olua_toluaobj(lua_State *L, int idx); @@ -445,7 +443,7 @@ OLUA_API void *olua_newrawobj(lua_State *L, void *obj, size_t extra) lua_newuserdata(L, sizeof(olua_Object) + extra); luaobj = olua_toluaobj(L, -1); luaobj->flags = 0; - ptr = extra > 0 ? ((char *)luaobj) + offsetof(olua_Object, extra) : NULL; + ptr = extra > 0 ? ((char *)luaobj) + sizeof(olua_Object) : NULL; luaobj->self = obj ? obj : ptr; return ptr; } @@ -475,13 +473,13 @@ OLUA_API bool olua_getrawobj(lua_State *L, void *obj) } } -OLUA_API void olua_setobjflag(lua_State *L, int idx, int flag) +OLUA_API void olua_setobjflag(lua_State *L, int idx, unsigned flag) { olua_Object *luaobj = olua_toluaobj(L, idx); luaobj->flags |= flag; } -OLUA_API bool olua_hasobjflag(lua_State *L, int idx, int flag) +OLUA_API bool olua_hasobjflag(lua_State *L, int idx, unsigned flag) { olua_Object *luaobj = olua_toluaobj(L, idx); return (luaobj->flags & flag) == flag; @@ -1251,7 +1249,6 @@ OLUA_API void oluacls_class(lua_State *L, const char *cls, const char *supercls) } else if (olua_getmetatable(L, supercls) != LUA_TTABLE) { if (olua_strequal(supercls, OLUA_VOIDCLS)) { olua_require(L, OLUA_VOIDCLS, luaopen_voidp); - olua_require(L, OLUA_ENUMCLS, luaopen_enum); olua_require(L, OLUA_OLUALIB, luaopen_olua); olua_getmetatable(L, OLUA_VOIDCLS); lua_replace(L, -2); @@ -1382,7 +1379,7 @@ OLUA_API void oluacls_func(lua_State *L, const char *name, lua_CFunction func) OLUA_API void oluacls_enum(lua_State *L, const char *name, lua_Integer value) { - olua_pushenum(L, value); + olua_pushinteger(L, value); oluacls_const(L, name); } @@ -1574,15 +1571,15 @@ static int l_olua_take(lua_State *L) static int l_olua_move(lua_State *L) { + lua_settop(L, 1); luaL_checktype(L, 1, LUA_TUSERDATA); - olua_getfield(L, 1, "__olua_move"); - if (!olua_isfunction(L, -1)) { - luaL_error(L, "method '__olua_move' not found in '%s'", olua_objstring(L, 1)); + if (olua_hasobjflag(L, 1, OLUA_FLAG_IN_POOL)) { + const char *cls = olua_checkfieldstring(L, 1, "classname"); + void *obj = olua_toobj(L, 1, cls); + olua_pushobj(L, obj, cls); + olua_setrawobj(L, 1, NULL); } - lua_insert(L, 1); - // maybe move object from object pool to the object table - lua_call(L, lua_gettop(L) - 1, LUA_MULTRET); - return lua_gettop(L); + return 1; } static int l_olua_debug(lua_State *L) @@ -1615,18 +1612,6 @@ static int l_olua_class(lua_State *L) return 1; } -static int l_olua_enum(lua_State *L) -{ - if (lua_isinteger(L, 1)) { - olua_pushenum(L, olua_tointeger(L, 1)); - } else if (lua_islightuserdata(L, 1)) { - lua_pushinteger(L, (lua_Integer)(intptr_t)lua_touserdata(L, 1)); - } else { - luaL_error(L, "expect integer or lightuserdata"); - } - return 1; -} - static int l_olua_setmetatable(lua_State *L) { luaL_checktype(L, 1, LUA_TUSERDATA); @@ -1719,7 +1704,6 @@ int luaopen_olua(lua_State *L) {"move", l_olua_move}, {"debug", l_olua_debug}, {"class", l_olua_class}, - {"enum", l_olua_enum}, {"iscfunc", l_olua_iscfunc}, {"setmetatable", l_olua_setmetatable}, {"getmetatable", l_lua_getmetatable}, @@ -1769,134 +1753,6 @@ int luaopen_voidp(lua_State *L) return 1; } -static lua_Integer aux_toenum(lua_State *L, int idx) { - switch(lua_type(L, idx)) { - case LUA_TLIGHTUSERDATA: - return (lua_Integer)lua_touserdata(L, idx); - case LUA_TNUMBER: - return (lua_Integer)olua_checkinteger(L, idx); - default: - luaL_checktype(L, idx, LUA_TLIGHTUSERDATA); - break; - } - return 0; -} - -static int l_enum_tostring(lua_State *L) -{ - lua_pushfstring(L, "lightuserdata: %p", lua_topointer(L, 1)); - return 1; -} - -static int l_enum_eq(lua_State *L) -{ - return aux_toenum(L, 1) == aux_toenum(L, 2); -} - -static int l_enum_lt(lua_State *L) -{ - return aux_toenum(L, 1) < aux_toenum(L, 2); -} - -static int l_enum_le(lua_State *L) -{ - return aux_toenum(L, 1) <= aux_toenum(L, 2); -} - -static int l_enum_band(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) & aux_toenum(L, 2)); - return 1; -} - -static int l_enum_bor(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) | aux_toenum(L, 2)); - return 1; -} - -static int l_enum_xor(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) ^ aux_toenum(L, 2)); - return 1; -} - -static int l_enum_bnot(lua_State *L) -{ - olua_pushenum(L, ~aux_toenum(L, 1)); - return 1; -} - -static int l_enum_shl(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) << aux_toenum(L, 2)); - return 1; -} - -static int l_enum_shr(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) >> aux_toenum(L, 2)); - return 1; -} - -static int l_enum_add(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) + aux_toenum(L, 2)); - return 1; -} - -static int l_enum_sub(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) - aux_toenum(L, 2)); - return 1; -} - -static int l_enum_mul(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) * aux_toenum(L, 2)); - return 1; -} - -static int l_enum_div(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) / aux_toenum(L, 2)); - return 1; -} - -static int l_enum_mod(lua_State *L) -{ - olua_pushenum(L, aux_toenum(L, 1) % aux_toenum(L, 2)); - return 1; -} - -int luaopen_enum(lua_State *L) -{ - oluacls_class(L, OLUA_ENUMCLS, NULL); - oluacls_func(L, "__tostring", l_enum_tostring); - oluacls_func(L, "__eq", l_enum_eq); - oluacls_func(L, "__lt", l_enum_lt); - oluacls_func(L, "__le", l_enum_le); - oluacls_func(L, "__band", l_enum_band); - oluacls_func(L, "__bor", l_enum_bor); - oluacls_func(L, "__bxor", l_enum_xor); - oluacls_func(L, "__bnot", l_enum_bnot); - oluacls_func(L, "__shl", l_enum_shl); - oluacls_func(L, "__shr", l_enum_shr); - oluacls_func(L, "__add", l_enum_add); - oluacls_func(L, "__sub", l_enum_sub); - oluacls_func(L, "__mul", l_enum_mul); - oluacls_func(L, "__div", l_enum_div); - oluacls_func(L, "__idiv", l_enum_div); - oluacls_func(L, "__mod", l_enum_mod); - - lua_pushlightuserdata(L, NULL); - olua_getmetatable(L, OLUA_ENUMCLS); - lua_setmetatable(L, -2); - lua_pop(L, 1); - - return 1; -} - #if LUA_VERSION_NUM == 501 OLUA_API void lua_copy(lua_State *L, int fromidx, int toidx) diff --git a/frameworks/cclua/src/olua/olua.h b/frameworks/cclua/src/olua/olua.h index e5f2a35a..06530023 100644 --- a/frameworks/cclua/src/olua/olua.h +++ b/frameworks/cclua/src/olua/olua.h @@ -131,7 +131,6 @@ OLUA_BEGIN_DECLS // default super class of object #define OLUA_VOIDCLS "void *" -#define OLUA_ENUMCLS "enum *" #define OLUA_OLUALIB "olua.c" // any type @@ -167,7 +166,6 @@ OLUA_API bool olua_isinteger(lua_State *L, int idx); #define olua_pushnumber(L, v) (lua_pushnumber(L, (v))) #define olua_pushstring(L, v) (lua_pushstring(L, (v))) #define olua_pushlstring(L, v, l) (lua_pushlstring(L, (v), (l))) -#define olua_pushenum(L, v) (lua_pushlightuserdata(L, (void *)(intptr_t)(v))) #define olua_tonumber(L, i) (lua_tonumber(L, (i))) #define olua_tointeger(L, i) (lua_tointeger(L, (i))) #define olua_tostring(L, i) (lua_tostring(L, (i))) @@ -211,8 +209,8 @@ OLUA_API bool olua_getrawobj(lua_State *L, void *obj); #define OLUA_FLAG_IN_POOL 1 << 10 // object in pool #define OLUA_FLAG_IN_SMARTPRT 1 << 11 // object in smartptr -OLUA_API void olua_setobjflag(lua_State *L, int idx, int flag); -OLUA_API bool olua_hasobjflag(lua_State *L, int idx, int flag); +OLUA_API void olua_setobjflag(lua_State *L, int idx, unsigned flag); +OLUA_API bool olua_hasobjflag(lua_State *L, int idx, unsigned flag); // manipulate userdata api OLUA_API const char *olua_typename(lua_State *L, int idx); diff --git a/frameworks/cclua/src/olua/olua.hpp b/frameworks/cclua/src/olua/olua.hpp old mode 100644 new mode 100755 index 16bdca8c..4529c297 --- a/frameworks/cclua/src/olua/olua.hpp +++ b/frameworks/cclua/src/olua/olua.hpp @@ -29,6 +29,8 @@ #include "olua.h" #include +#include +#include #include #include #include @@ -399,8 +401,7 @@ void oluacls_const(lua_State *L, const char *name, const T value) template ::value, bool> = true> inline void oluacls_const(lua_State *L, const char *name, const T value) { - olua_pushenum(L, value); - oluacls_const(L, name); + oluacls_enum(L, name, (lua_Integer)value); } static inline @@ -546,24 +547,19 @@ int olua_push_string(lua_State *L, const std::string_view &val static inline bool olua_is_enum(lua_State *L, int idx) { - return olua_islightuserdata(L, idx); + return olua_isinteger(L, idx); } template ::value, bool> = true> inline void olua_check_enum(lua_State *L, int idx, T *value) { - if (!olua_islightuserdata(L, idx)) { - luaL_error(L, "expect enum '%s', got '%s'", - olua_getluatype>(L), - lua_typename(L, lua_type(L, idx))); - } - *value = (T)(intptr_t)lua_touserdata(L, idx); + *value = (T)olua_checkinteger(L, idx); } template ::value, bool> = true> inline int olua_push_enum(lua_State *L, T value) { - olua_pushenum(L, value); + olua_pushinteger(L, (lua_Integer)value); return 1; } diff --git a/frameworks/plugins/alipay/lua_alipay.cpp b/frameworks/plugins/alipay/lua_alipay.cpp index aa7604e9..c8c42475 100644 --- a/frameworks/plugins/alipay/lua_alipay.cpp +++ b/frameworks/plugins/alipay/lua_alipay.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_alipay___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_alipay___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::alipay *)olua_toobj(L, 1, "cclua.plugin.alipay"); - olua_push_object(L, self, "cclua.plugin.alipay"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_alipay_dispatch(lua_State *L) { olua_startinvoke(L); @@ -112,7 +100,6 @@ static int _olua_cls_cclua_plugin_alipay(lua_State *L) { oluacls_class(L, "cclua.plugin.alipay"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_alipay___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_alipay___olua_move); oluacls_func(L, "dispatch", _olua_fun_cclua_plugin_alipay_dispatch); oluacls_func(L, "pay", _olua_fun_cclua_plugin_alipay_pay); oluacls_func(L, "setDispatcher", _olua_fun_cclua_plugin_alipay_setDispatcher); diff --git a/frameworks/plugins/apple/lua_apple.cpp b/frameworks/plugins/apple/lua_apple.cpp index 398bfac8..0c768280 100644 --- a/frameworks/plugins/apple/lua_apple.cpp +++ b/frameworks/plugins/apple/lua_apple.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_apple___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_apple___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::apple *)olua_toobj(L, 1, "cclua.plugin.apple"); - olua_push_object(L, self, "cclua.plugin.apple"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_apple_auth(lua_State *L) { olua_startinvoke(L); @@ -287,7 +275,6 @@ static int _olua_cls_cclua_plugin_apple(lua_State *L) { oluacls_class(L, "cclua.plugin.apple"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_apple___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_apple___olua_move); oluacls_func(L, "auth", _olua_fun_cclua_plugin_apple_auth); oluacls_func(L, "canMakeAuth", _olua_fun_cclua_plugin_apple_canMakeAuth); oluacls_func(L, "canMakePayments", _olua_fun_cclua_plugin_apple_canMakePayments); diff --git a/frameworks/plugins/huawei/lua_huawei.cpp b/frameworks/plugins/huawei/lua_huawei.cpp index f6d02890..86cb5b9d 100644 --- a/frameworks/plugins/huawei/lua_huawei.cpp +++ b/frameworks/plugins/huawei/lua_huawei.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_huawei___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_huawei___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::huawei *)olua_toobj(L, 1, "cclua.plugin.huawei"); - olua_push_object(L, self, "cclua.plugin.huawei"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_huawei_dispatch(lua_State *L) { olua_startinvoke(L); @@ -176,7 +164,6 @@ static int _olua_cls_cclua_plugin_huawei(lua_State *L) { oluacls_class(L, "cclua.plugin.huawei"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_huawei___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_huawei___olua_move); oluacls_func(L, "dispatch", _olua_fun_cclua_plugin_huawei_dispatch); oluacls_func(L, "init", _olua_fun_cclua_plugin_huawei_init); oluacls_func(L, "login", _olua_fun_cclua_plugin_huawei_login); diff --git a/frameworks/plugins/janalytics/lua_janalytics.cpp b/frameworks/plugins/janalytics/lua_janalytics.cpp index bf2bbfeb..85441a11 100644 --- a/frameworks/plugins/janalytics/lua_janalytics.cpp +++ b/frameworks/plugins/janalytics/lua_janalytics.cpp @@ -9,23 +9,11 @@ static int _olua_module_janalytics(lua_State *L); #ifdef CCLUA_BUILD_JANALYTICS -static int _olua_fun_cclua_plugin_janalytics_EventType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_plugin_janalytics_EventType(lua_State *L) { oluacls_class(L, "cclua.plugin.janalytics.EventType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_plugin_janalytics_EventType___call); oluacls_enum(L, "BROWSE", (lua_Integer)cclua::plugin::janalytics::EventType::BROWSE); oluacls_enum(L, "CALCULATE", (lua_Integer)cclua::plugin::janalytics::EventType::CALCULATE); oluacls_enum(L, "COUNT", (lua_Integer)cclua::plugin::janalytics::EventType::COUNT); @@ -61,18 +49,6 @@ static int _olua_fun_cclua_plugin_janalytics___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_janalytics___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::janalytics *)olua_toobj(L, 1, "cclua.plugin.janalytics"); - olua_push_object(L, self, "cclua.plugin.janalytics"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_janalytics_detachAccount(lua_State *L) { olua_startinvoke(L); @@ -205,7 +181,6 @@ static int _olua_cls_cclua_plugin_janalytics(lua_State *L) { oluacls_class(L, "cclua.plugin.janalytics"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_janalytics___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_janalytics___olua_move); oluacls_func(L, "detachAccount", _olua_fun_cclua_plugin_janalytics_detachAccount); oluacls_func(L, "identifyAccount", _olua_fun_cclua_plugin_janalytics_identifyAccount); oluacls_func(L, "init", _olua_fun_cclua_plugin_janalytics_init); diff --git a/frameworks/plugins/jauth/lua_jauth.cpp b/frameworks/plugins/jauth/lua_jauth.cpp index ffc7c3b5..ae542a26 100644 --- a/frameworks/plugins/jauth/lua_jauth.cpp +++ b/frameworks/plugins/jauth/lua_jauth.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_jauth___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_jauth___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::jauth *)olua_toobj(L, 1, "cclua.plugin.jauth"); - olua_push_object(L, self, "cclua.plugin.jauth"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_jauth_checkVerifyEnable(lua_State *L) { olua_startinvoke(L); @@ -358,7 +346,6 @@ static int _olua_cls_cclua_plugin_jauth(lua_State *L) { oluacls_class(L, "cclua.plugin.jauth"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_jauth___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_jauth___olua_move); oluacls_func(L, "checkVerifyEnable", _olua_fun_cclua_plugin_jauth_checkVerifyEnable); oluacls_func(L, "clearPreLoginCache", _olua_fun_cclua_plugin_jauth_clearPreLoginCache); oluacls_func(L, "configUI", _olua_fun_cclua_plugin_jauth_configUI); diff --git a/frameworks/plugins/jpush/lua_jpush.cpp b/frameworks/plugins/jpush/lua_jpush.cpp index b085c6eb..c43023b6 100644 --- a/frameworks/plugins/jpush/lua_jpush.cpp +++ b/frameworks/plugins/jpush/lua_jpush.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_jpush___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_jpush___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::jpush *)olua_toobj(L, 1, "cclua.plugin.jpush"); - olua_push_object(L, self, "cclua.plugin.jpush"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_jpush_addTags(lua_State *L) { olua_startinvoke(L); @@ -231,7 +219,6 @@ static int _olua_cls_cclua_plugin_jpush(lua_State *L) { oluacls_class(L, "cclua.plugin.jpush"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_jpush___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_jpush___olua_move); oluacls_func(L, "addTags", _olua_fun_cclua_plugin_jpush_addTags); oluacls_func(L, "cleanTags", _olua_fun_cclua_plugin_jpush_cleanTags); oluacls_func(L, "deleteAlias", _olua_fun_cclua_plugin_jpush_deleteAlias); diff --git a/frameworks/plugins/oppo/lua_oppo.cpp b/frameworks/plugins/oppo/lua_oppo.cpp index b1de0e73..cedaf2da 100644 --- a/frameworks/plugins/oppo/lua_oppo.cpp +++ b/frameworks/plugins/oppo/lua_oppo.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_oppo___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_oppo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::oppo *)olua_toobj(L, 1, "cclua.plugin.oppo"); - olua_push_object(L, self, "cclua.plugin.oppo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_oppo_dispatch(lua_State *L) { olua_startinvoke(L); @@ -134,7 +122,6 @@ static int _olua_cls_cclua_plugin_oppo(lua_State *L) { oluacls_class(L, "cclua.plugin.oppo"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_oppo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_oppo___olua_move); oluacls_func(L, "dispatch", _olua_fun_cclua_plugin_oppo_dispatch); oluacls_func(L, "init", _olua_fun_cclua_plugin_oppo_init); oluacls_func(L, "pay", _olua_fun_cclua_plugin_oppo_pay); diff --git a/frameworks/plugins/talkingdata/lua_talkingdata.cpp b/frameworks/plugins/talkingdata/lua_talkingdata.cpp index 74c30226..4451e5e8 100644 --- a/frameworks/plugins/talkingdata/lua_talkingdata.cpp +++ b/frameworks/plugins/talkingdata/lua_talkingdata.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_talkingdata___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_talkingdata___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::talkingdata *)olua_toobj(L, 1, "cclua.plugin.talkingdata"); - olua_push_object(L, self, "cclua.plugin.talkingdata"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_talkingdata_backgroundSessionEnabled(lua_State *L) { olua_startinvoke(L); @@ -465,7 +453,6 @@ static int _olua_cls_cclua_plugin_talkingdata(lua_State *L) { oluacls_class(L, "cclua.plugin.talkingdata"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_talkingdata___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_talkingdata___olua_move); oluacls_func(L, "backgroundSessionEnabled", _olua_fun_cclua_plugin_talkingdata_backgroundSessionEnabled); oluacls_func(L, "getDeviceId", _olua_fun_cclua_plugin_talkingdata_getDeviceId); oluacls_func(L, "init", _olua_fun_cclua_plugin_talkingdata_init); diff --git a/frameworks/plugins/vivo/lua_vivo.cpp b/frameworks/plugins/vivo/lua_vivo.cpp index e59f4d9a..5bfbc92a 100644 --- a/frameworks/plugins/vivo/lua_vivo.cpp +++ b/frameworks/plugins/vivo/lua_vivo.cpp @@ -21,18 +21,6 @@ static int _olua_fun_cclua_plugin_vivo___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_vivo___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::vivo *)olua_toobj(L, 1, "cclua.plugin.vivo"); - olua_push_object(L, self, "cclua.plugin.vivo"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_vivo_dispatch(lua_State *L) { olua_startinvoke(L); @@ -136,7 +124,6 @@ static int _olua_cls_cclua_plugin_vivo(lua_State *L) { oluacls_class(L, "cclua.plugin.vivo"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_vivo___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_vivo___olua_move); oluacls_func(L, "dispatch", _olua_fun_cclua_plugin_vivo_dispatch); oluacls_func(L, "init", _olua_fun_cclua_plugin_vivo_init); oluacls_func(L, "pay", _olua_fun_cclua_plugin_vivo_pay); diff --git a/frameworks/plugins/wechat/lua_wechat.cpp b/frameworks/plugins/wechat/lua_wechat.cpp index ba346587..71c76ce2 100644 --- a/frameworks/plugins/wechat/lua_wechat.cpp +++ b/frameworks/plugins/wechat/lua_wechat.cpp @@ -9,23 +9,11 @@ static int _olua_module_wechat(lua_State *L); #ifdef CCLUA_BUILD_WECHAT -static int _olua_fun_cclua_plugin_wechat_ShareType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_plugin_wechat_ShareType(lua_State *L) { oluacls_class(L, "cclua.plugin.wechat.ShareType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_plugin_wechat_ShareType___call); oluacls_enum(L, "IMAGE", (lua_Integer)cclua::plugin::wechat::ShareType::IMAGE); oluacls_enum(L, "MUSIC", (lua_Integer)cclua::plugin::wechat::ShareType::MUSIC); oluacls_enum(L, "NONE", (lua_Integer)cclua::plugin::wechat::ShareType::NONE); @@ -49,23 +37,11 @@ OLUA_END_DECLS #endif #ifdef CCLUA_BUILD_WECHAT -static int _olua_fun_cclua_plugin_wechat_ProgramType___call(lua_State *L) -{ - olua_startinvoke(L); - - olua_pushenum(L, olua_checkinteger(L, -1)); - - olua_endinvoke(L); - - return 1; -} - static int _olua_cls_cclua_plugin_wechat_ProgramType(lua_State *L) { oluacls_class(L, "cclua.plugin.wechat.ProgramType"); oluacls_func(L, "__index", olua_indexerror); oluacls_func(L, "__newindex", olua_newindexerror); - oluacls_func(L, "__call", _olua_fun_cclua_plugin_wechat_ProgramType___call); oluacls_enum(L, "PREVIEW", (lua_Integer)cclua::plugin::wechat::ProgramType::PREVIEW); oluacls_enum(L, "RELEASE", (lua_Integer)cclua::plugin::wechat::ProgramType::RELEASE); oluacls_enum(L, "TEST", (lua_Integer)cclua::plugin::wechat::ProgramType::TEST); @@ -98,18 +74,6 @@ static int _olua_fun_cclua_plugin_wechat___gc(lua_State *L) return 0; } -static int _olua_fun_cclua_plugin_wechat___olua_move(lua_State *L) -{ - olua_startinvoke(L); - - auto self = (cclua::plugin::wechat *)olua_toobj(L, 1, "cclua.plugin.wechat"); - olua_push_object(L, self, "cclua.plugin.wechat"); - - olua_endinvoke(L); - - return 1; -} - static int _olua_fun_cclua_plugin_wechat_auth(lua_State *L) { olua_startinvoke(L); @@ -410,7 +374,6 @@ static int _olua_cls_cclua_plugin_wechat(lua_State *L) { oluacls_class(L, "cclua.plugin.wechat"); oluacls_func(L, "__gc", _olua_fun_cclua_plugin_wechat___gc); - oluacls_func(L, "__olua_move", _olua_fun_cclua_plugin_wechat___olua_move); oluacls_func(L, "auth", _olua_fun_cclua_plugin_wechat_auth); oluacls_func(L, "authQRCode", _olua_fun_cclua_plugin_wechat_authQRCode); oluacls_func(L, "dispatch", _olua_fun_cclua_plugin_wechat_dispatch); diff --git a/tools/lua-bindings/olua b/tools/lua-bindings/olua index fda5f69f..2ec9023a 160000 --- a/tools/lua-bindings/olua +++ b/tools/lua-bindings/olua @@ -1 +1 @@ -Subproject commit fda5f69f9abf0f95ee3d2325954a98dca748548b +Subproject commit 2ec9023ab4e78400775f2c2de0d1b834603ec1f2